bq2415x_charger: Use devm_kzalloc()
authorSachin Kamat <sachin.kamat@linaro.org>
Tue, 27 Nov 2012 05:58:46 +0000 (11:28 +0530)
committerAnton Vorontsov <anton@enomsg.org>
Sun, 6 Jan 2013 02:41:12 +0000 (18:41 -0800)
commita9672e1356471b0a1d63a303cc1dfc53b739efb9
treea6ad8febb6ae14b9bb9ad26418843aa7f4a3b3ed
parent463df5147edb2d8e3df1300b02c192a5642e72c4
bq2415x_charger: Use devm_kzalloc()

devm_kzalloc is device managed and makes error handling and code cleanup a
bit simpler.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Anton Vorontsov <anton@enomsg.org>
drivers/power/bq2415x_charger.c