From a01bce6ad970d181797dffff5649e1e6989aa88b Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Mon, 27 Sep 2010 15:07:12 +0800 Subject: 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(+) (limited to 'drivers/power/ds2760_battery.c') diff --git a/drivers/power/ds2760_battery.c b/drivers/power/ds2760_battery.c index 4d3b27228a2..b3c01c16a16 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; } -- cgit v1.2.3-70-g09d2