From 62780102a97ec81f8db2b3e9ceacf99843fb6530 Mon Sep 17 00:00:00 2001 From: Jinyoung Park Date: Wed, 28 Mar 2012 12:32:41 +0900 Subject: regulator: max77663: fix fps update condition Fix fps update condition in max77663_regulator_set_fps(). Bug 930883 Change-Id: I2f57603320a91b2727932586fc3c66d9de347d64 signed-off-by: Jinyoung Park Reviewed-on: http://git-master/r/92707 Reviewed-by: Simone Willett Tested-by: Simone Willett --- drivers/regulator/max77663-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/regulator') 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, ®->regs[FPS_REG].val); -- cgit v1.2.3