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

regmap: Grab the lock in regcache_cache_only()

Signed-off-by: default avatarDimitris Papastamos <dp@opensource.wolfsonmicro.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent ec8a365f
......@@ -273,7 +273,9 @@ EXPORT_SYMBOL_GPL(regcache_sync);
*/
void regcache_cache_only(struct regmap *map, bool enable)
{
mutex_lock(&map->sync_lock);
map->cache_only = enable;
mutex_unlock(&map->sync_lock);
}
EXPORT_SYMBOL_GPL(regcache_cache_only);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment