Commit 6228cc8a authored by ChiYuan Huang's avatar ChiYuan Huang Committed by Mark Brown

regulator: rtmv20: Add missing regcache cache only before marked as dirty

Add missing regcache cache only before masked as dirty.
Signed-off-by: default avatarChiYuan Huang <cy_huang@richtek.com>
Link: https://lore.kernel.org/r/1601461132-15251-1-git-send-email-u0084500@gmail.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 89a5f77e
...@@ -325,6 +325,7 @@ static int rtmv20_probe(struct i2c_client *i2c) ...@@ -325,6 +325,7 @@ static int rtmv20_probe(struct i2c_client *i2c)
* keep in shutdown mode to minimize the current consumption * keep in shutdown mode to minimize the current consumption
* and also mark regcache as dirty * and also mark regcache as dirty
*/ */
regcache_cache_only(priv->regmap, true);
regcache_mark_dirty(priv->regmap); regcache_mark_dirty(priv->regmap);
gpiod_set_value(priv->enable_gpio, 0); gpiod_set_value(priv->enable_gpio, 0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment