commit | 04553e925baaa815025c6fd3cdc301a794fa2c74 | [log] [tgz] |
---|---|---|
author | Roland Stigge <stigge@antcom.de> | Sun Oct 28 08:34:59 2012 -0700 |
committer | Bryan Wu <cooloney@gmail.com> | Mon Nov 26 14:28:49 2012 -0800 |
tree | 39d49a08fca20eccdb2dc308a15e81f41096fc7d | |
parent | e8941928faf248530c0eff95462e9fee0b1cc8da [diff] |
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>