aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2011-09-29 05:40:55 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-09-29 05:40:55 -0400
commit2cd148f1599a425f0f3ac6753da96a1a1aa3ce76 (patch)
tree9f0a980ca2839023d9f537c123730987c2f4e2f9
parent38f6916976f9e964748f097be3688e334fb60f3d (diff)
regmap: Fix lock used for regcache_cache_only()
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
-rw-r--r--drivers/base/regmap/regcache.c4
1 files changed, 2 insertions, 2 deletions
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);
273 */ 273 */
274void regcache_cache_only(struct regmap *map, bool enable) 274void regcache_cache_only(struct regmap *map, bool enable)
275{ 275{
276 mutex_lock(&map->sync_lock); 276 mutex_lock(&map->lock);
277 map->cache_only = enable; 277 map->cache_only = enable;
278 mutex_unlock(&map->sync_lock); 278 mutex_unlock(&map->lock);
279} 279}
280EXPORT_SYMBOL_GPL(regcache_cache_only); 280EXPORT_SYMBOL_GPL(regcache_cache_only);
281 281