diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-04-04 13:10:14 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-04-04 13:10:14 -0400 |
commit | 3ff8f932bce11fc89e435acb30263a06cb8bd084 (patch) | |
tree | 690ae19fd4f6f24da48cedf926f56a3996dfc68a | |
parent | 4a1e8ebc5e5918079109cc1cd1c44c2f0fd0e11b (diff) | |
parent | 4b4e9e43fd210e0cd2a5d29357e7c000e13e08ae (diff) |
Merge tag 'regmap-3.4' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap
Pull a single regmap fix from Mark Brown:
"A simple bug that's been lurking for a while but not terribly visible
since a high proportion of chips have no register 0 so the normal
failure is that we end up doing a bit of extra I/O."
* tag 'regmap-3.4' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap:
regmap: rbtree: Fix register default look-up in sync
-rw-r--r-- | drivers/base/regmap/regcache-rbtree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/regmap/regcache-rbtree.c b/drivers/base/regmap/regcache-rbtree.c index 5157fa04c2f0..fb14a6343d4f 100644 --- a/drivers/base/regmap/regcache-rbtree.c +++ b/drivers/base/regmap/regcache-rbtree.c | |||
@@ -396,7 +396,7 @@ static int regcache_rbtree_sync(struct regmap *map, unsigned int min, | |||
396 | map->cache_word_size); | 396 | map->cache_word_size); |
397 | 397 | ||
398 | /* Is this the hardware default? If so skip. */ | 398 | /* Is this the hardware default? If so skip. */ |
399 | ret = regcache_lookup_reg(map, i); | 399 | ret = regcache_lookup_reg(map, regtmp); |
400 | if (ret >= 0 && val == map->reg_defaults[ret].def) | 400 | if (ret >= 0 && val == map->reg_defaults[ret].def) |
401 | continue; | 401 | continue; |
402 | 402 | ||