|
@@ -377,7 +377,7 @@ static int regcache_rbtree_sync(struct regmap *map)
|
|
|
|
|
|
/* Is this the hardware default? If so skip. */
|
|
/* Is this the hardware default? If so skip. */
|
|
ret = regcache_lookup_reg(map, i);
|
|
ret = regcache_lookup_reg(map, i);
|
|
- if (ret > 0 && val == map->reg_defaults[ret].def)
|
|
|
|
|
|
+ if (ret >= 0 && val == map->reg_defaults[ret].def)
|
|
continue;
|
|
continue;
|
|
|
|
|
|
map->cache_bypass = 1;
|
|
map->cache_bypass = 1;
|