Commit a01bce6a authored by Axel Lin's avatar Axel Lin Committed by Anton Vorontsov

ds2760_battery: Add missing kfree(di) in ds2760_battery_remove()

Signed-off-by: default avatarAxel Lin <axel.lin@gmail.com>
Signed-off-by: default avatarAnton Vorontsov <cbouatmailru@gmail.com>
parent 7cfbb294
...@@ -586,6 +586,7 @@ static int ds2760_battery_remove(struct platform_device *pdev) ...@@ -586,6 +586,7 @@ static int ds2760_battery_remove(struct platform_device *pdev)
&di->set_charged_work); &di->set_charged_work);
destroy_workqueue(di->monitor_wqueue); destroy_workqueue(di->monitor_wqueue);
power_supply_unregister(&di->bat); power_supply_unregister(&di->bat);
kfree(di);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment