regulator: ab8500: Don't update info->update_val if write to register fails
authorAxel Lin <axel.lin@ingics.com>
Tue, 9 Apr 2013 12:15:06 +0000 (20:15 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 17 Apr 2013 14:08:22 +0000 (15:08 +0100)
commitf04adc5ab3b70ad9b7d17d6a6fc2113669134a4d
treee2d2abca0f6de8060440b49799de66c448d0325b
parent241896ce8d112f10dae5538be41fad9eeb9e5e46
regulator: ab8500: Don't update info->update_val if write to register fails

This patch ensures info->update_val is consistent with current register value.

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