]> git.baikalelectronics.ru Git - kernel.git/commit
backlight: pwm_bl: Free PWM requested by legacy API on error path
authorVladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
Sun, 14 Jun 2015 14:32:14 +0000 (17:32 +0300)
committerLee Jones <lee.jones@linaro.org>
Mon, 11 Jan 2016 10:45:24 +0000 (10:45 +0000)
commit6a394a75ad9f00908aac2909dc339ded81ae30c9
tree83a079993be7b6f9ddc195afade1d9eae3153036
parentfd68afc8a183eee7e6903cba1e609ff1a157d686
backlight: pwm_bl: Free PWM requested by legacy API on error path

If pwm is requested by legacy pwm_request() and if the following
backlight_device_register() call fails, add pwm_free() clean-up.

Signed-off-by: Vladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/video/backlight/pwm_bl.c