power: sbs-battery: Use devm_kzalloc to alloc data
authorPhil Reid <preid@electromag.com.au>
Mon, 25 Jul 2016 02:42:57 +0000 (10:42 +0800)
committerSebastian Reichel <sre@kernel.org>
Mon, 15 Aug 2016 19:51:30 +0000 (21:51 +0200)
commit9239a86f0976b58d3da7a2261ed659ac9eba0f25
tree917d0919326c49f6625eb48ba2b374b95076e06a
parente4a404a081df1abe95a06ab24b7c76d8cf02402f
power: sbs-battery: Use devm_kzalloc to alloc data

Use devm_kzalloc to allow memory to be freed automatically on
driver probe failure or removal.

Signed-off-by: Phil Reid <preid@electromag.com.au>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/supply/sbs-battery.c