|
@@ -838,7 +838,7 @@ static int __devinit at91_pinctrl_probe_dt(struct platform_device *pdev,
|
|
|
return -ENODEV;
|
|
|
|
|
|
info->dev = &pdev->dev;
|
|
|
- info->ops =
|
|
|
+ info->ops = (struct at91_pinctrl_mux_ops*)
|
|
|
of_match_device(at91_pinctrl_of_match, &pdev->dev)->data;
|
|
|
at91_pinctrl_child_count(info, np);
|
|
|
|
|
@@ -1403,7 +1403,7 @@ static int __devinit at91_gpio_probe(struct platform_device *pdev)
|
|
|
goto err;
|
|
|
}
|
|
|
|
|
|
- at91_chip->ops =
|
|
|
+ at91_chip->ops = (struct at91_pinctrl_mux_ops*)
|
|
|
of_match_device(at91_gpio_of_match, &pdev->dev)->data;
|
|
|
at91_chip->pioc_virq = irq;
|
|
|
at91_chip->pioc_idx = alias_idx;
|