jz4740-battery: Add missing kfree(jz_battery) in jz_battery_remove()
authorAxel Lin <axel.lin@gmail.com>
Mon, 27 Sep 2010 07:08:31 +0000 (15:08 +0800)
committerAnton Vorontsov <cbouatmailru@gmail.com>
Tue, 28 Sep 2010 11:52:23 +0000 (15:52 +0400)
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-By: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
drivers/power/jz4740-battery.c

index 20c4b95..a8108a7 100644 (file)
@@ -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;
 }