regmap: Fix lock used for regcache_cache_only()
Subsystems (2)
PATCH 1/1 regmap: Fix lock used for regcache_cache_only()
Reported-by Stephen Rothwell <[email protected]>
Signed-off-by Mark Brown <[email protected]>
--- drivers/base/regmap/regcache.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/base/regmap/regcache.c +2 -2
@@ -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