提交 5f29895f 编写于 作者: A Axel Lin 提交者: Anton Vorontsov

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

Signed-off-by: NAxel Lin <axel.lin@gmail.com>
Acked-By: NLars-Peter Clausen <lars@metafoo.de>
Signed-off-by: NAnton Vorontsov <cbouatmailru@gmail.com>
上级 a01bce6a
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册