From: Axel Lin Date: Mon, 27 Sep 2010 07:10:11 +0000 (+0800) Subject: wm831x_power: Add missing kfree(wm831x_power) in wm831x_power_remove() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9c99f08991b38bf6ab62ffe9013ee46ff41d66d0;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git wm831x_power: Add missing kfree(wm831x_power) in wm831x_power_remove() Signed-off-by: Axel Lin Acked-by: Mark Brown Signed-off-by: Anton Vorontsov --- diff --git a/drivers/power/wm831x_power.c b/drivers/power/wm831x_power.c index a57a94150cb8..ddf8cf5f3204 100644 --- a/drivers/power/wm831x_power.c +++ b/drivers/power/wm831x_power.c @@ -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->wall); power_supply_unregister(&wm831x_power->usb); + kfree(wm831x_power); return 0; }