diff options
author | Axel Lin <axel.lin@gmail.com> | 2010-09-27 09:10:11 +0200 |
---|---|---|
committer | Anton Vorontsov <cbouatmailru@gmail.com> | 2010-09-28 13:52:34 +0200 |
commit | 9c99f08991b38bf6ab62ffe9013ee46ff41d66d0 (patch) | |
tree | 4667f21e5164386e71b6bdaac7818db959d691af /drivers/power | |
parent | jz4740-battery: Add missing kfree(jz_battery) in jz_battery_remove() (diff) | |
download | linux-9c99f08991b38bf6ab62ffe9013ee46ff41d66d0.tar.xz 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/power')
-rw-r--r-- | drivers/power/wm831x_power.c | 1 |
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; } |