jz4740-battery: Use devm_kzalloc
authorMarcos Paulo de Souza <marcos.souza.org@gmail.com>
Tue, 6 Nov 2012 23:11:11 +0000 (21:11 -0200)
committerAnton Vorontsov <anton.vorontsov@linaro.org>
Mon, 19 Nov 2012 00:10:36 +0000 (16:10 -0800)
commitec073c9b319fee6564dcb9f1fb7a70eb6a8a06b5
treeaa49d2301d012d3dd07567410339b6a784fcee49
parente59ec4a1899dfff007d91b30f00e7211731b816b
jz4740-battery: Use devm_kzalloc

This is just a small cleanup, makes a logic a little bit more simplier.

Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
drivers/power/jz4740-battery.c