regulator: max77686: Don't update max77686->opmode if update register fails
authorAxel Lin <axel.lin@ingics.com>
Sat, 27 Apr 2013 08:18:16 +0000 (16:18 +0800)
committerMark Brown <broonie@sirena.org.uk>
Sun, 28 Apr 2013 01:07:52 +0000 (02:07 +0100)
commit3ecf198eab145d45624010e03db2e9dfd284cced
tree25b8ceb3a74aae677b19c46d0878865dc59038c7
parent60d509fa6a9c4653a86ad830e4c4b30360b23f0e
regulator: max77686: Don't update max77686->opmode if update register fails

Ensure max77686->opmode always has correct status.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@sirena.org.uk>
drivers/regulator/max77686.c