diff options
author | Axel Lin <axel.lin@gmail.com> | 2010-09-27 07:07:12 (GMT) |
---|---|---|
committer | Anton Vorontsov <cbouatmailru@gmail.com> | 2010-09-28 11:16:23 (GMT) |
commit | a01bce6ad970d181797dffff5649e1e6989aa88b (patch) | |
tree | 25b981b6a69939276f3d551b77b34589ba936e7b /drivers/power | |
parent | 7cfbb29466633e6ecdc14f76a693c8478c2b22af (diff) | |
download | linux-fsl-qoriq-a01bce6ad970d181797dffff5649e1e6989aa88b.tar.xz |
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')
-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 4d3b272..b3c01c1 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; } |