mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
regmap: Grab the lock in regcache_cache_only()
Signed-off-by: Dimitris Papastamos <[email protected]> Signed-off-by: Mark Brown <[email protected]>
This commit is contained in:
parent
ec8a365fe6
commit
38f6916976
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue