gpio: Return -EPROBE_DEFER on gpio_get_num()
GPIO drivers can be registered quite late in registration process
causing dependant devices to fail probing. If we know gpio_get_num
will be called with a non-NULL device, return -EPROBE_DEFER instead
of -ENODEV to allow re-probing later.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent ab3da15 commit 9744da2e2b073102bf84438f073352339c1047ce
@Sebastian Hesselbarth Sebastian Hesselbarth authored on 14 Apr 2015
Sascha Hauer committed on 17 Apr 2015
Showing 1 changed file
View
drivers/gpio/gpiolib.c