diff options
Diffstat (limited to 'drivers/base/regmap/internal.h')
-rw-r--r-- | drivers/base/regmap/internal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/regmap/internal.h b/drivers/base/regmap/internal.h index 29c83160ca29..5308e3e870ba 100644 --- a/drivers/base/regmap/internal.h +++ b/drivers/base/regmap/internal.h | |||
@@ -223,7 +223,7 @@ int regcache_set_reg_present(struct regmap *map, unsigned int reg); | |||
223 | static inline bool regcache_reg_present(struct regmap *map, unsigned int reg) | 223 | static inline bool regcache_reg_present(struct regmap *map, unsigned int reg) |
224 | { | 224 | { |
225 | if (!map->cache_present) | 225 | if (!map->cache_present) |
226 | return true; | 226 | return false; |
227 | if (reg > map->cache_present_nbits) | 227 | if (reg > map->cache_present_nbits) |
228 | return false; | 228 | return false; |
229 | return map->cache_present[BIT_WORD(reg)] & BIT_MASK(reg); | 229 | return map->cache_present[BIT_WORD(reg)] & BIT_MASK(reg); |