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

Commit 38f69169 authored by Dimitris Papastamos's avatar Dimitris Papastamos Committed by Mark Brown
Browse files

regmap: Grab the lock in regcache_cache_only()

parent ec8a365f
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -273,7 +273,9 @@ EXPORT_SYMBOL_GPL(regcache_sync);
 */
 */
void regcache_cache_only(struct regmap *map, bool enable)
void regcache_cache_only(struct regmap *map, bool enable)
{
{
	mutex_lock(&map->sync_lock);
	map->cache_only = enable;
	map->cache_only = enable;
	mutex_unlock(&map->sync_lock);
}
}
EXPORT_SYMBOL_GPL(regcache_cache_only);
EXPORT_SYMBOL_GPL(regcache_cache_only);