Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 294160
b: refs/heads/master
c: 8a892d6
h: refs/heads/master
v: v3
  • Loading branch information
Mark Brown committed Jan 25, 2012
1 parent 255a80a commit 7a828e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d9db762708e27c2892db9d8a54e735a8e506e16e
refs/heads/master: 8a892d6996b60c822f19ad1844eb15b96ce393c7
2 changes: 2 additions & 0 deletions trunk/drivers/base/regmap/regcache.c
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ int regcache_sync(struct regmap *map)
goto out;

/* Apply any patch first */
map->cache_bypass = 1;
for (i = 0; i < map->patch_regs; i++) {
ret = _regmap_write(map, map->patch[i].reg, map->patch[i].def);
if (ret != 0) {
Expand All @@ -281,6 +282,7 @@ int regcache_sync(struct regmap *map)
goto out;
}
}
map->cache_bypass = 0;

if (map->cache_ops->sync) {
ret = map->cache_ops->sync(map);
Expand Down

0 comments on commit 7a828e9

Please sign in to comment.