leds: pwm: Fix for deferred probe in DT booted mode
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Thu, 28 Nov 2013 09:06:38 +0000 (01:06 -0800)
committerBryan Wu <cooloney@gmail.com>
Mon, 2 Dec 2013 19:53:17 +0000 (11:53 -0800)
We need to make sure that the error code from devm_of_pwm_get() is the one
the module returns in case of failure.
Restructure the code to make this possible for DT booted case.
With this patch the driver can ask for deferred probing when the board is
booted with DT.
Fixes for example omap4-sdp board's keyboard backlight led.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Bryan Wu <cooloney@gmail.com>

No differences found