regulator: ab8500: Don't update is_enabled flag in error paths
authorAxel Lin <axel.lin@ingics.com>
Tue, 26 Mar 2013 08:13:14 +0000 (16:13 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 26 Mar 2013 14:04:22 +0000 (14:04 +0000)
commitf71bf52808e7089a5a6df9b32ffa13e93e51f1ca
tree2a553c3f38092fe0e0ed409b488ffbf06ffbdc0c
parent5689e830745b39dbab895e5e8df3f962cb7eecac
regulator: ab8500: Don't update is_enabled flag in error paths

This avoid setting is_enabled flag to wrong status if enable/disable fails.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Bengt Jonsson <bengt.g.jonsson@stericsson.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/ab8500.c