regulator: ab8500-ext: Don't update info->update_val if set_mode() fails
authorAxel Lin <axel.lin@ingics.com>
Tue, 16 Apr 2013 15:29:12 +0000 (23:29 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 17 Apr 2013 14:08:33 +0000 (15:08 +0100)
This ensures info->update_val status is still correct if set_mode() call fails.
Otherwise, get_mode() may return wrong status if a set_mode() call 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>

No differences found