File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -4149,6 +4149,7 @@ static int __init ingenic_pinctrl_probe(struct platform_device *pdev)
4149
4149
void __iomem * base ;
4150
4150
const struct ingenic_chip_info * chip_info ;
4151
4151
struct device_node * node ;
4152
+ struct regmap_config regmap_config ;
4152
4153
unsigned int i ;
4153
4154
int err ;
4154
4155
@@ -4166,8 +4167,10 @@ static int __init ingenic_pinctrl_probe(struct platform_device *pdev)
4166
4167
if (IS_ERR (base ))
4167
4168
return PTR_ERR (base );
4168
4169
4169
- jzpc -> map = devm_regmap_init_mmio (dev , base ,
4170
- & ingenic_pinctrl_regmap_config );
4170
+ regmap_config = ingenic_pinctrl_regmap_config ;
4171
+ regmap_config .max_register = chip_info -> num_chips * chip_info -> reg_offset ;
4172
+
4173
+ jzpc -> map = devm_regmap_init_mmio (dev , base , & regmap_config );
4171
4174
if (IS_ERR (jzpc -> map )) {
4172
4175
dev_err (dev , "Failed to create regmap\n" );
4173
4176
return PTR_ERR (jzpc -> map );
You can’t perform that action at this time.
0 commit comments