@@ -464,7 +464,6 @@ static const struct regmap_config cy8c9520_i2c_regmap = {
.ranges = NULL, /* Updated at runtime */
.num_ranges = 1,
.max_register = 0, /* Updated at runtime */
- .num_reg_defaults_raw = 0, /* Updated at runtime */
.use_single_read = true, /* Workaround for regcache bug */
#if IS_ENABLED(CONFIG_DEBUG_PINCTRL)
.disable_locking = false,
@@ -1475,7 +1474,6 @@ static int cy8c95x0_probe(struct i2c_client *client)
memcpy(®map_conf, &cy8c9520_i2c_regmap, sizeof(regmap_conf));
regmap_conf.ranges = ®map_range_conf;
regmap_conf.max_register = regmap_range_conf.range_max;
- regmap_conf.num_reg_defaults_raw = regmap_range_conf.range_max;
chip->regmap = devm_regmap_init_i2c(client, ®map_conf);
if (IS_ERR(chip->regmap))
We don't provide defaults for the regmap, we shouldn't provide the number of them either. Remove incorrectly set fields in regmap configuration. Fixes: 8670de9fae49 ("pinctrl: cy8c95x0: Use regmap ranges") Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> --- drivers/pinctrl/pinctrl-cy8c95x0.c | 2 -- 1 file changed, 2 deletions(-)