Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 267005
b: refs/heads/master
c: 13753a9
h: refs/heads/master
i:
  267003: 4829ed3
v: v3
  • Loading branch information
Dimitris Papastamos authored and Mark Brown committed Sep 30, 2011
1 parent 8982174 commit 20a2ce5
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5fcd2560767cead8f0c741340e132c5417d9f73b
refs/heads/master: 13753a9088af23c61e2f5c10a8f3ea136d8ebab5
4 changes: 2 additions & 2 deletions trunk/drivers/base/regmap/regcache-indexed.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/base/regmap/regcache-lzo.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/base/regmap/regcache-rbtree.c
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ static int regcache_rbtree_sync(struct regmap *map)
if (val == def)
continue;
map->cache_bypass = 1;
ret = regmap_write(map, regtmp, val);
ret = _regmap_write(map, regtmp, val);
map->cache_bypass = 0;
if (ret)
return ret;
Expand Down
4 changes: 3 additions & 1 deletion trunk/drivers/base/regmap/regcache.c
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ int regcache_sync(struct regmap *map)

BUG_ON(!map->cache_ops);

mutex_lock(&map->lock);
dev_dbg(map->dev, "Syncing %s cache\n",
map->cache_ops->name);
name = map->cache_ops->name;
Expand All @@ -242,7 +243,7 @@ int regcache_sync(struct regmap *map)
if (ret < 0)
goto out;
map->cache_bypass = 1;
ret = regmap_write(map, i, val);
ret = _regmap_write(map, i, val);
map->cache_bypass = 0;
if (ret < 0)
goto out;
Expand All @@ -254,6 +255,7 @@ int regcache_sync(struct regmap *map)
}
out:
trace_regcache_sync(map->dev, name, "stop");
mutex_unlock(&map->lock);

return ret;
}
Expand Down

0 comments on commit 20a2ce5

Please sign in to comment.