mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-11-07 04:09:21 +00:00
wm831x_power: Add missing kfree(wm831x_power) in wm831x_power_remove()
Signed-off-by: Axel Lin <axel.lin@gmail.com> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
This commit is contained in:
parent
5f29895f3e
commit
9c99f08991
1 changed files with 1 additions and 0 deletions
|
@ -611,6 +611,7 @@ static __devexit int wm831x_power_remove(struct platform_device *pdev)
|
||||||
power_supply_unregister(&wm831x_power->battery);
|
power_supply_unregister(&wm831x_power->battery);
|
||||||
power_supply_unregister(&wm831x_power->wall);
|
power_supply_unregister(&wm831x_power->wall);
|
||||||
power_supply_unregister(&wm831x_power->usb);
|
power_supply_unregister(&wm831x_power->usb);
|
||||||
|
kfree(wm831x_power);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue