From 6228cc8aed9e51afa56727b11001b37913e4dda6 Mon Sep 17 00:00:00 2001 From: ChiYuan Huang Date: Wed, 30 Sep 2020 18:18:52 +0800 Subject: [PATCH] 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 Link: https://lore.kernel.org/r/1601461132-15251-1-git-send-email-u0084500@gmail.com Signed-off-by: Mark Brown --- drivers/regulator/rtmv20-regulator.c | 1 + 1 file changed, 1 insertion(+) 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);