From: Mark Brown Date: Thu, 29 Sep 2011 09:40:55 +0000 (+0100) Subject: regmap: Fix lock used for regcache_cache_only() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=2cd148f1599a425f0f3ac6753da96a1a1aa3ce76;p=linux-beck.git regmap: Fix lock used for regcache_cache_only() Reported-by: Stephen Rothwell Signed-off-by: Mark Brown --- diff --git a/drivers/base/regmap/regcache.c b/drivers/base/regmap/regcache.c index 744ed145bfa4..4dfab4107bfe 100644 --- a/drivers/base/regmap/regcache.c +++ b/drivers/base/regmap/regcache.c @@ -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);