I am using Linux 4.14.98 Ga release source.
Here when I tried to requets a gpio in 'arch/arm/mach-imx/mach-imx6q.c', it fails with EPROBE_DEFER (517) error.
But able to export same gpio using SYSFS using "echo * > /sys/class/gpio/export" command.
Why it is not able to access it in mach-imx6q.c file? is there any driver dependency?