From a01bce6ad970d181797dffff5649e1e6989aa88b Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Mon, 27 Sep 2010 15:07:12 +0800 Subject: [PATCH] ds2760_battery: Add missing kfree(di) in ds2760_battery_remove() Signed-off-by: Axel Lin Signed-off-by: Anton Vorontsov --- drivers/power/ds2760_battery.c | 1 + 1 file changed, 1 insertion(+) 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; }