diff options
author | Axel Lin <axel.lin@gmail.com> | 2010-09-27 03:07:12 -0400 |
---|---|---|
committer | Anton Vorontsov <cbouatmailru@gmail.com> | 2010-09-28 07:16:23 -0400 |
commit | a01bce6ad970d181797dffff5649e1e6989aa88b (patch) | |
tree | 25b981b6a69939276f3d551b77b34589ba936e7b /drivers/power/ds2760_battery.c | |
parent | 7cfbb29466633e6ecdc14f76a693c8478c2b22af (diff) |
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) | |||
586 | &di->set_charged_work); | 586 | &di->set_charged_work); |
587 | destroy_workqueue(di->monitor_wqueue); | 587 | destroy_workqueue(di->monitor_wqueue); |
588 | power_supply_unregister(&di->bat); | 588 | power_supply_unregister(&di->bat); |
589 | kfree(di); | ||
589 | 590 | ||
590 | return 0; | 591 | return 0; |
591 | } | 592 | } |