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)
commit04553e925baaa815025c6fd3cdc301a794fa2c74
tree39d49a08fca20eccdb2dc308a15e81f41096fc7d
parente8941928faf248530c0eff95462e9fee0b1cc8da
leds: leds-gpio: Defer probing in case of deferred gpio probing

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>
drivers/leds/leds-gpio.c