ds2760_battery: Add missing kfree(di) in ds2760_battery_remove()
authorAxel Lin <axel.lin@gmail.com>
Mon, 27 Sep 2010 07:07:12 +0000 (15:07 +0800)
committerAnton Vorontsov <cbouatmailru@gmail.com>
Tue, 28 Sep 2010 11:16:23 +0000 (15:16 +0400)
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
drivers/power/ds2760_battery.c

index 4d3b27228a2e0ea6bd844f9ae9fbb4161059a3eb..b3c01c16a1640773ade9a1d09b813e9356c30c8b 100644 (file)
@@ -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;
 }