ab8500_charger: Use devm_regulator_get API
authorSachin Kamat <sachin.kamat@linaro.org>
Fri, 7 Dec 2012 11:53:28 +0000 (17:23 +0530)
committerAnton Vorontsov <anton@enomsg.org>
Sun, 6 Jan 2013 03:07:22 +0000 (19:07 -0800)
commit8feffd109977c045669913f4e80e8811f2212cd9
treef228b1304530d1e65467f99241ee7853209940ea
parentbde83b9a6b44c1e0fd872e57ecc869cfcf88538f
ab8500_charger: Use devm_regulator_get API

devm_regulator_get() is device managed and makes error handling and code
cleanup simpler.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Acked-by: Arun Murthy <arun.murthy@stericsson.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Anton Vorontsov <anton@enomsg.org>
drivers/power/ab8500_charger.c