max17040_battery: Use devm_kzalloc
authorDevendra Naga <devendra.aaru@gmail.com>
Sun, 6 Jan 2013 04:53:25 +0000 (23:53 -0500)
committerAnton Vorontsov <anton@enomsg.org>
Sun, 6 Jan 2013 22:18:58 +0000 (14:18 -0800)
commit00edfc65c2ce7d039ea45f1b3cc120db01ddcce9
tree5ab89c67d3e96e5932ae073356d0b45defe34dcf
parentd5c2b14cb2b9b6a099e22f39ae2196a8403994e9
max17040_battery: Use devm_kzalloc

use devm_kzalloc and no need of error path and unload frees.

Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: Anton Vorontsov <anton@enomsg.org>
drivers/power/max17040_battery.c