From 9c99f08991b38bf6ab62ffe9013ee46ff41d66d0 Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Mon, 27 Sep 2010 15:10:11 +0800 Subject: 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 --- drivers/power/wm831x_power.c | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/power/wm831x_power.c') 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; } -- cgit v1.2.3