diff options
-rw-r--r-- | drivers/base/regmap/regcache.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/base/regmap/regcache.c b/drivers/base/regmap/regcache.c index f46e247912cb..744ed145bfa4 100644 --- a/drivers/base/regmap/regcache.c +++ b/drivers/base/regmap/regcache.c | |||
@@ -273,7 +273,9 @@ EXPORT_SYMBOL_GPL(regcache_sync); | |||
273 | */ | 273 | */ |
274 | void regcache_cache_only(struct regmap *map, bool enable) | 274 | void regcache_cache_only(struct regmap *map, bool enable) |
275 | { | 275 | { |
276 | mutex_lock(&map->sync_lock); | ||
276 | map->cache_only = enable; | 277 | map->cache_only = enable; |
278 | mutex_unlock(&map->sync_lock); | ||
277 | } | 279 | } |
278 | EXPORT_SYMBOL_GPL(regcache_cache_only); | 280 | EXPORT_SYMBOL_GPL(regcache_cache_only); |
279 | 281 | ||