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)
commit742a73259d2d07ad6870736749aa8d6821ed96d9
tree611eec8737682846eecd01c2049b30513d561aba
parentda0b0c47dcfd92317e2ece4c3434e1f82b55cf8a
regulator: ab8500: Update info->update_val only when successfully update register

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>
drivers/regulator/ab8500.c