regulator: qcom_rpm: Don't update vreg->uV/mV if rpm_reg_write fails
authorAxel Lin <axel.lin@ingics.com>
Sat, 24 Jan 2015 04:01:12 +0000 (12:01 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 26 Jan 2015 19:11:35 +0000 (19:11 +0000)
commitc6515d2f00dc45d6bf5b6e56c9a7d4dc2e271563
treef6f44a8baa061f56d1cfcbf65bd30fb86a3a9df3
parent97bf6af1f928216fd6c5a66e8a57bfa95a659672
regulator: qcom_rpm: Don't update vreg->uV/mV if rpm_reg_write fails

Ensure get_voltage return correct voltage if set_voltage fails.

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