diff options
author | Axel Lin <axel.lin@gmail.com> | 2010-09-27 03:10:11 -0400 |
---|---|---|
committer | Anton Vorontsov <cbouatmailru@gmail.com> | 2010-09-28 07:52:34 -0400 |
commit | 9c99f08991b38bf6ab62ffe9013ee46ff41d66d0 (patch) | |
tree | 4667f21e5164386e71b6bdaac7818db959d691af /drivers/power | |
parent | 5f29895f3e8cd4c4b25613c3dd64b68124a1762f (diff) |
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) | |||
611 | power_supply_unregister(&wm831x_power->battery); | 611 | power_supply_unregister(&wm831x_power->battery); |
612 | power_supply_unregister(&wm831x_power->wall); | 612 | power_supply_unregister(&wm831x_power->wall); |
613 | power_supply_unregister(&wm831x_power->usb); | 613 | power_supply_unregister(&wm831x_power->usb); |
614 | kfree(wm831x_power); | ||
614 | return 0; | 615 | return 0; |
615 | } | 616 | } |
616 | 617 | ||