Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2cd148f1 authored by Mark Brown's avatar Mark Brown
Browse files

regmap: Fix lock used for regcache_cache_only()

parent 38f69169
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);