From 5f29895f3e8cd4c4b25613c3dd64b68124a1762f Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Mon, 27 Sep 2010 15:08:31 +0800 Subject: [PATCH] jz4740-battery: Add missing kfree(jz_battery) in jz_battery_remove() Signed-off-by: Axel Lin Acked-By: Lars-Peter Clausen Signed-off-by: Anton Vorontsov --- drivers/power/jz4740-battery.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/power/jz4740-battery.c b/drivers/power/jz4740-battery.c index 20c4b952e9bd..a8108a73593e 100644 --- a/drivers/power/jz4740-battery.c +++ b/drivers/power/jz4740-battery.c @@ -383,6 +383,7 @@ static int __devexit jz_battery_remove(struct platform_device *pdev) iounmap(jz_battery->base); release_mem_region(jz_battery->mem->start, resource_size(jz_battery->mem)); + kfree(jz_battery); return 0; }