summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2010-09-27 15:10:11 +0800
committerAnton Vorontsov <cbouatmailru@gmail.com>2010-09-28 15:52:34 +0400
commit9c99f08991b38bf6ab62ffe9013ee46ff41d66d0 (patch)
tree4667f21e5164386e71b6bdaac7818db959d691af /drivers
parent5f29895f3e8cd4c4b25613c3dd64b68124a1762f (diff)
downloadlinux-9c99f08991b38bf6ab62ffe9013ee46ff41d66d0.tar.gz
linux-9c99f08991b38bf6ab62ffe9013ee46ff41d66d0.tar.bz2
linux-9c99f08991b38bf6ab62ffe9013ee46ff41d66d0.zip
wm831x_power: Add missing kfree(wm831x_power) in wm831x_power_remove()
Signed-off-by: Axel Lin <axel.lin@gmail.com> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/power/wm831x_power.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/power/wm831x_power.c b/drivers/power/wm831x_power.c
index a57a94150cb8..ddf8cf5f3204 100644
--- a/drivers/power/wm831x_power.c
+++ b/drivers/power/wm831x_power.c
@@ -611,6 +611,7 @@ static __devexit int wm831x_power_remove(struct platform_device *pdev)
power_supply_unregister(&wm831x_power->battery);
power_supply_unregister(&wm831x_power->wall);
power_supply_unregister(&wm831x_power->usb);
+ kfree(wm831x_power);
return 0;
}