]> 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)
commit6e758d99b012759b59d02d63b5c4e03ad939c085
tree83a079993be7b6f9ddc195afade1d9eae3153036
parentb550dc91c790a351626ab634a8afe56dc6245826
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