backlight: pwm: Clean-up pwm requested using legacy API
authorVladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
Sat, 11 Oct 2014 13:46:26 +0000 (16:46 +0300)
committerLee Jones <lee.jones@linaro.org>
Mon, 10 Nov 2014 14:42:18 +0000 (14:42 +0000)
If PWM device is requested by means of legacy API pwm_request(), its
resources are not freed on module unbind, which may cause an oops on
access, e.g. by reading /sys/kernel/debug/pwm.

Reported-by: Dmitry Eremin-Solenikov <dmitry_eremin@mentor.com>
Signed-off-by: Vladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>

No differences found