Skip to content

Commit

Permalink
jz4740-battery: Add missing kfree(jz_battery) in jz_battery_remove()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Axel Lin authored and Anton Vorontsov committed Sep 28, 2010
1 parent a01bce6 commit 5f29895
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/power/jz4740-battery.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 5f29895

Please sign in to comment.