aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/regulator/mc13892-regulator.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/regulator/mc13892-regulator.c b/drivers/regulator/mc13892-regulator.c
index 9891aec47b57..cc76c526f5c9 100644
--- a/drivers/regulator/mc13892-regulator.c
+++ b/drivers/regulator/mc13892-regulator.c
@@ -465,13 +465,13 @@ static int mc13892_sw_regulator_set_voltage_sel(struct regulator_dev *rdev,
465 */ 465 */
466 466
467 if (mc13892_regulators[id].vsel_reg != MC13892_SWITCHERS0) { 467 if (mc13892_regulators[id].vsel_reg != MC13892_SWITCHERS0) {
468 mask |= MC13892_SWITCHERS0_SWxHI;
469
468 if (volt > 1375000) { 470 if (volt > 1375000) {
469 reg_value -= MC13892_SWxHI_SEL_OFFSET; 471 reg_value -= MC13892_SWxHI_SEL_OFFSET;
470 reg_value |= MC13892_SWITCHERS0_SWxHI; 472 reg_value |= MC13892_SWITCHERS0_SWxHI;
471 mask |= MC13892_SWITCHERS0_SWxHI; 473 } else {
472 } else if (volt < 1100000) {
473 reg_value &= ~MC13892_SWITCHERS0_SWxHI; 474 reg_value &= ~MC13892_SWITCHERS0_SWxHI;
474 mask |= MC13892_SWITCHERS0_SWxHI;
475 } 475 }
476 } 476 }
477 477