git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
regmap: Fix lock used for regcache_cache_only()
[pandora-kernel.git]
/
drivers
/
base
/
regmap
/
regcache.c
diff --git
a/drivers/base/regmap/regcache.c
b/drivers/base/regmap/regcache.c
index
744ed14
..
4dfab41
100644
(file)
--- a/
drivers/base/regmap/regcache.c
+++ b/
drivers/base/regmap/regcache.c
@@
-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);