backlight: pwm: Handle EPROBE_DEFER while requesting the PWM
authorNicolas Ferre <nicolas.ferre@atmel.com>
Thu, 19 Feb 2015 09:30:14 +0000 (10:30 +0100)
committerLee Jones <lee.jones@linaro.org>
Tue, 26 May 2015 07:44:59 +0000 (08:44 +0100)
commit68feaca0b13e453aa14ee064c1736202b48b342f
tree14a9289678430eebe4c6bfb33bcdd6f39b440083
parentb787f68c36d49bb1d9236f403813641efa74a031
backlight: pwm: Handle EPROBE_DEFER while requesting the PWM

When trying to request the PWM device with devm_pwm_get(), the EPROBE_DEFER
flag is not handled properly. It can lead to the PWM not being found.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Acked-by: Thierry Reding <thierry.reding@gmail.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/video/backlight/pwm_bl.c