diff options
-rw-r--r-- | drivers/base/regmap/regcache.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/base/regmap/regcache.c b/drivers/base/regmap/regcache.c index 4d43ed363481..46c42d3a4655 100644 --- a/drivers/base/regmap/regcache.c +++ b/drivers/base/regmap/regcache.c | |||
@@ -285,6 +285,9 @@ int regcache_sync(struct regmap *map) | |||
285 | 285 | ||
286 | ret = map->cache_ops->sync(map); | 286 | ret = map->cache_ops->sync(map); |
287 | 287 | ||
288 | if (ret == 0) | ||
289 | map->cache_dirty = false; | ||
290 | |||
288 | out: | 291 | out: |
289 | trace_regcache_sync(map->dev, name, "stop"); | 292 | trace_regcache_sync(map->dev, name, "stop"); |
290 | /* Restore the bypass state */ | 293 | /* Restore the bypass state */ |