regmap: Lock the sync path, ensure we use the lockless _regmap_write()

Signed-off-by: Dimitris Papastamos <dp@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
Dimitris Papastamos
2011-09-29 14:36:25 +01:00
committed by Mark Brown
parent 5fcd256076
commit 13753a9088
4 changed files with 7 additions and 5 deletions

View File

@@ -339,7 +339,7 @@ static int regcache_lzo_sync(struct regmap *map)
if (ret)
return ret;
map->cache_bypass = 1;
ret = regmap_write(map, i, val);
ret = _regmap_write(map, i, val);
map->cache_bypass = 0;
if (ret)
return ret;