summaryrefslogtreecommitdiffstats
path: root/drivers/base/regmap/regcache-indexed.c
diff options
context:
space:
mode:
authorDimitris Papastamos <dp@opensource.wolfsonmicro.com>2011-09-29 14:36:25 +0100
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-09-30 13:57:47 +0100
commit13753a9088af23c61e2f5c10a8f3ea136d8ebab5 (patch)
tree44c7a109f98995800f55ffd8b0cf0cefca158caf /drivers/base/regmap/regcache-indexed.c
parent5fcd2560767cead8f0c741340e132c5417d9f73b (diff)
downloadlinux-13753a9088af23c61e2f5c10a8f3ea136d8ebab5.tar.gz
linux-13753a9088af23c61e2f5c10a8f3ea136d8ebab5.tar.bz2
linux-13753a9088af23c61e2f5c10a8f3ea136d8ebab5.zip
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>
Diffstat (limited to 'drivers/base/regmap/regcache-indexed.c')
-rw-r--r--drivers/base/regmap/regcache-indexed.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/base/regmap/regcache-indexed.c b/drivers/base/regmap/regcache-indexed.c
index 268497aee46d..2e10bb13bfc4 100644
--- a/drivers/base/regmap/regcache-indexed.c
+++ b/drivers/base/regmap/regcache-indexed.c
@@ -45,8 +45,8 @@ static int regcache_indexed_sync(struct regmap *map)
int ret;
for (i = 0; i < map->num_reg_defaults; i++) {
- ret = regmap_write(map, map->reg_defaults[i].reg,
- map->reg_defaults[i].def);
+ ret = _regmap_write(map, map->reg_defaults[i].reg,
+ map->reg_defaults[i].def);
if (ret < 0)
return ret;
dev_dbg(map->dev, "Synced register %#x, value %#x\n",