summaryrefslogtreecommitdiff
path: root/drivers/power/jz4740-battery.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2010-09-27 15:08:31 +0800
committerAnton Vorontsov <cbouatmailru@gmail.com>2010-09-28 15:52:23 +0400
commit5f29895f3e8cd4c4b25613c3dd64b68124a1762f (patch)
tree984e59204651da8be408c28ef87a8d8e31c2a1c8 /drivers/power/jz4740-battery.c
parenta01bce6ad970d181797dffff5649e1e6989aa88b (diff)
downloadlinux-3.10-5f29895f3e8cd4c4b25613c3dd64b68124a1762f.tar.gz
linux-3.10-5f29895f3e8cd4c4b25613c3dd64b68124a1762f.tar.bz2
linux-3.10-5f29895f3e8cd4c4b25613c3dd64b68124a1762f.zip
jz4740-battery: Add missing kfree(jz_battery) in jz_battery_remove()
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>
Diffstat (limited to 'drivers/power/jz4740-battery.c')
-rw-r--r--drivers/power/jz4740-battery.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/power/jz4740-battery.c b/drivers/power/jz4740-battery.c
index 20c4b952e9b..a8108a73593 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;
}