jz4740-battery: Add missing kfree(jz_battery) in jz_battery_remove()

Signed-off-by: Axel Lin <[email protected]>
Acked-By: Lars-Peter Clausen <[email protected]>
Signed-off-by: Anton Vorontsov <[email protected]>
This commit is contained in:
Axel Lin 2010-09-27 15:08:31 +08:00 • committed by Anton Vorontsov
commit 5f29895f3e

View 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;
}