leds: leds-gpio: Defer probing in case of deferred gpio probing
authorRoland Stigge <stigge@antcom.de>
Sun, 28 Oct 2012 15:34:59 +0000 (08:34 -0700)
committerBryan Wu <cooloney@gmail.com>
Mon, 26 Nov 2012 22:28:49 +0000 (14:28 -0800)
This patch makes leds-gpio's probe() return -EPROBE_DEFER if any of the gpios
to register are deferred themselves. This makes a change of
gpio_leds_create_of()'s return value necessary: Instead of returning NULL on
error, we now use ERR_PTR() error coding.

Signed-off-by: Roland Stigge <stigge@antcom.de>
Signed-off-by: Bryan Wu <cooloney@gmail.com>

No differences found