aboutsummaryrefslogtreecommitdiff
path: root/drivers/regulator/rtmv20-regulator.c
diff options
context:
space:
mode:
authorGravatar ChiYuan Huang <cy_huang@richtek.com> 2020-09-30 18:18:52 +0800
committerGravatar Mark Brown <broonie@kernel.org> 2020-09-30 12:58:09 +0100
commit6228cc8aed9e51afa56727b11001b37913e4dda6 (patch)
tree3a6c78896ff7af395372e2199fc581cca283ee6f /drivers/regulator/rtmv20-regulator.c
parentregulator: rtmv20: Update DT binding document and property name parsing (diff)
downloadlinux-6228cc8aed9e51afa56727b11001b37913e4dda6.tar.gz
linux-6228cc8aed9e51afa56727b11001b37913e4dda6.tar.bz2
linux-6228cc8aed9e51afa56727b11001b37913e4dda6.zip
regulator: rtmv20: Add missing regcache cache only before marked as dirty
Add missing regcache cache only before masked as dirty. Signed-off-by: ChiYuan Huang <cy_huang@richtek.com> Link: https://lore.kernel.org/r/1601461132-15251-1-git-send-email-u0084500@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/rtmv20-regulator.c')
-rw-r--r--drivers/regulator/rtmv20-regulator.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/regulator/rtmv20-regulator.c b/drivers/regulator/rtmv20-regulator.c
index 05fd8e7ccea5..852fb2596ffd 100644
--- a/drivers/regulator/rtmv20-regulator.c
+++ b/drivers/regulator/rtmv20-regulator.c
@@ -325,6 +325,7 @@ static int rtmv20_probe(struct i2c_client *i2c)
* keep in shutdown mode to minimize the current consumption
* and also mark regcache as dirty
*/
+ regcache_cache_only(priv->regmap, true);
regcache_mark_dirty(priv->regmap);
gpiod_set_value(priv->enable_gpio, 0);