forked from luck/tmp_suning_uos_patched
regmap: Fix lock used for regcache_cache_only()
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
parent
38f6916976
commit
2cd148f159
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user