diff options
author | Axel Lin <axel.lin@gmail.com> | 2010-09-27 09:07:12 +0200 |
---|---|---|
committer | Anton Vorontsov <cbouatmailru@gmail.com> | 2010-09-28 13:16:23 +0200 |
commit | a01bce6ad970d181797dffff5649e1e6989aa88b (patch) | |
tree | 25b981b6a69939276f3d551b77b34589ba936e7b /drivers/power/ds2760_battery.c | |
parent | olpc_battery: Fix endian neutral breakage for s16 values (diff) | |
download | linux-a01bce6ad970d181797dffff5649e1e6989aa88b.tar.xz linux-a01bce6ad970d181797dffff5649e1e6989aa88b.zip |
ds2760_battery: Add missing kfree(di) in ds2760_battery_remove()
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
Diffstat (limited to 'drivers/power/ds2760_battery.c')
-rw-r--r-- | drivers/power/ds2760_battery.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/power/ds2760_battery.c b/drivers/power/ds2760_battery.c index 4d3b27228a2e..b3c01c16a164 100644 --- a/drivers/power/ds2760_battery.c +++ b/drivers/power/ds2760_battery.c @@ -586,6 +586,7 @@ static int ds2760_battery_remove(struct platform_device *pdev) &di->set_charged_work); destroy_workqueue(di->monitor_wqueue); power_supply_unregister(&di->bat); + kfree(di); return 0; } |