regulator: lp8755: Use devm_regulator_register
authorHimangi Saraogi <himangi774@gmail.com>
Mon, 7 Jul 2014 15:42:14 +0000 (21:12 +0530)
committerMark Brown <broonie@linaro.org>
Wed, 9 Jul 2014 09:44:01 +0000 (11:44 +0200)
commit57135250358e54c237450f30474616f3d850b8de
tree0328dbaccdd1e1a0aab18fa341b14bfe5571e4b2
parent7171511eaec5bf23fb06078f59784a3a0626b38f
regulator: lp8755: Use devm_regulator_register

This patch moves data allocated using regulator_register to
devm_regulator_register and does away with the calls to
regulator_unregister. Also some labels are removed and a new labelerr is
introduced which is less specific to context.

Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/regulator/lp8755.c