diff options
Diffstat (limited to 'drivers/base/regmap/regmap.c')
-rw-r--r-- | drivers/base/regmap/regmap.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/base/regmap/regmap.c b/drivers/base/regmap/regmap.c index 579e85b8a684..44606f7c8ec8 100644 --- a/drivers/base/regmap/regmap.c +++ b/drivers/base/regmap/regmap.c | |||
@@ -147,12 +147,6 @@ struct regmap *regmap_init(struct device *dev, | |||
147 | map->volatile_reg = config->volatile_reg; | 147 | map->volatile_reg = config->volatile_reg; |
148 | map->precious_reg = config->precious_reg; | 148 | map->precious_reg = config->precious_reg; |
149 | map->cache_type = config->cache_type; | 149 | map->cache_type = config->cache_type; |
150 | map->reg_defaults = config->reg_defaults; | ||
151 | map->num_reg_defaults = config->num_reg_defaults; | ||
152 | map->num_reg_defaults_raw = config->num_reg_defaults_raw; | ||
153 | map->reg_defaults_raw = config->reg_defaults_raw; | ||
154 | map->cache_size_raw = (config->val_bits / 8) * config->num_reg_defaults_raw; | ||
155 | map->cache_word_size = config->val_bits / 8; | ||
156 | 150 | ||
157 | if (config->read_flag_mask || config->write_flag_mask) { | 151 | if (config->read_flag_mask || config->write_flag_mask) { |
158 | map->read_flag_mask = config->read_flag_mask; | 152 | map->read_flag_mask = config->read_flag_mask; |
@@ -215,7 +209,7 @@ struct regmap *regmap_init(struct device *dev, | |||
215 | goto err_map; | 209 | goto err_map; |
216 | } | 210 | } |
217 | 211 | ||
218 | ret = regcache_init(map); | 212 | ret = regcache_init(map, config); |
219 | if (ret < 0) | 213 | if (ret < 0) |
220 | goto err_map; | 214 | goto err_map; |
221 | 215 | ||