summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/regulator/max77663-regulator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/max77663-regulator.c b/drivers/regulator/max77663-regulator.c
index c9001c0a3e9f..55d2526b4490 100644
--- a/drivers/regulator/max77663-regulator.c
+++ b/drivers/regulator/max77663-regulator.c
@@ -280,7 +280,7 @@ static int max77663_regulator_set_fps(struct max77663_regulator *reg)
fps_mask |= FPS_PD_PERIOD_MASK;
}
- if (fps_val)
+ if (fps_val || fps_mask)
ret = max77663_regulator_cache_write(reg,
reg->regs[FPS_REG].addr, fps_mask,
fps_val, &reg->regs[FPS_REG].val);