aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/power/ds2760_battery.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2010-09-27 15:07:12 +0800
committerAnton Vorontsov <cbouatmailru@gmail.com>2010-09-28 15:16:23 +0400
commita01bce6ad970d181797dffff5649e1e6989aa88b (patch)
tree25b981b6a69939276f3d551b77b34589ba936e7b /drivers/power/ds2760_battery.c
parentolpc_battery: Fix endian neutral breakage for s16 values (diff)
downloadlinux-dev-a01bce6ad970d181797dffff5649e1e6989aa88b.tar.xz
linux-dev-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.c1
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;
}