]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit61c08f66362c576baadcecda6f83c2b30f9dbbd8
tree9e24e51ae5540d12b9460126fa1616257a71e8be
parent454d2ec1a8794b750201bc96e4f9d8e06d17827c
leds: pwm: Fix for deferred probe in DT booted mode

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