regulator: palmas: Drop regulator_unregister while using devm_regulator_register
authorAxel Lin <axel.lin@ingics.com>
Thu, 5 Sep 2013 03:31:25 +0000 (11:31 +0800)
committerMark Brown <broonie@linaro.org>
Mon, 16 Sep 2013 23:28:44 +0000 (00:28 +0100)
commitcb2e45e31615bc37b31b44fc257042a860ce82b8
treeada1f8fe328e42d672cf3b4bc6da25d424a23eb4
parentcab87f062d0c57c9734257e4079ced489a3189b1
regulator: palmas: Drop regulator_unregister while using devm_regulator_register

Commmit af40a94aba "regulator: palmas: Use devm_regulator_register" missed
removing a regulator_unregister() call if palmas_extreg_init falis. Fix it.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/regulator/palmas-regulator.c