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)
commit60d613d6aef4ae49988eeb3ad38af948c561db1e
tree83a079993be7b6f9ddc195afade1d9eae3153036
parent02f22c004ff2ab0ce1f2fa3cc6a87cf20a4fed40
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