regulator: ab8500: Update info->update_val only when successfully update register
authorAxel Lin <axel.lin@ingics.com>
Thu, 28 Mar 2013 09:23:00 +0000 (17:23 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 29 Mar 2013 17:52:55 +0000 (17:52 +0000)
Don't update info->update_val if write to the register 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