Skip to contentSkip to conversation

regmap: Fix lock used for regcache_cache_only()

PATCH New Mark Brown 1 participant 1 message Sep 29, 2011

Subsystems (2)
lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 regmap: Fix lock used for regcache_cache_only()

---
 drivers/base/regmap/regcache.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/base/regmap/regcache.c +2 -2
index 744ed145..4dfab41 100644
@@ -273,9 +273,9 @@ EXPORT_SYMBOL_GPL(regcache_sync);
  */
 void regcache_cache_only(struct regmap *map, bool enable)
 {
-	mutex_lock(&map->sync_lock);
+	mutex_lock(&map->lock);
 	map->cache_only = enable;
-	mutex_unlock(&map->sync_lock);
+	mutex_unlock(&map->lock);
 }
 EXPORT_SYMBOL_GPL(regcache_cache_only);
 
Signature · 1 line
1.7.6.3