提交 38f69169 编写于 作者: D Dimitris Papastamos 提交者: Mark Brown

regmap: Grab the lock in regcache_cache_only()

Signed-off-by: NDimitris Papastamos <dp@opensource.wolfsonmicro.com>
Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册