diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2012-10-27 13:53:11 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2012-10-28 15:02:56 -0400 |
commit | dffa91230f5202a78ccc97960ae1c84e533b036a (patch) | |
tree | df6900d73a39e103a2dedf1e0c06ba45ce6de244 /drivers/pinctrl/pinctrl-at91.c | |
parent | a728c7cdd033f0cbeacc302d2409a2428e68e1be (diff) |
pinctrl/: at91: fix warnings
/opt/work/linux-2.6/drivers/pinctrl/pinctrl-at91.c: In function 'at91_pinctrl_probe_dt':
/opt/work/linux-2.6/drivers/pinctrl/pinctrl-at91.c:952:12: warning: assignment discards qualifiers from pointer target type
/opt/work/linux-2.6/drivers/pinctrl/pinctrl-at91.c: In function 'at91_gpio_probe':
/opt/work/linux-2.6/drivers/pinctrl/pinctrl-at91.c:1517:17: warning: assignment discards qualifiers from pointer target type
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/pinctrl-at91.c')
-rw-r--r-- | drivers/pinctrl/pinctrl-at91.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pinctrl/pinctrl-at91.c b/drivers/pinctrl/pinctrl-at91.c index 676b199d6d22..5bb7d515e24c 100644 --- a/drivers/pinctrl/pinctrl-at91.c +++ b/drivers/pinctrl/pinctrl-at91.c | |||
@@ -838,7 +838,7 @@ static int __devinit at91_pinctrl_probe_dt(struct platform_device *pdev, | |||
838 | return -ENODEV; | 838 | return -ENODEV; |
839 | 839 | ||
840 | info->dev = &pdev->dev; | 840 | info->dev = &pdev->dev; |
841 | info->ops = | 841 | info->ops = (struct at91_pinctrl_mux_ops*) |
842 | of_match_device(at91_pinctrl_of_match, &pdev->dev)->data; | 842 | of_match_device(at91_pinctrl_of_match, &pdev->dev)->data; |
843 | at91_pinctrl_child_count(info, np); | 843 | at91_pinctrl_child_count(info, np); |
844 | 844 | ||
@@ -1403,7 +1403,7 @@ static int __devinit at91_gpio_probe(struct platform_device *pdev) | |||
1403 | goto err; | 1403 | goto err; |
1404 | } | 1404 | } |
1405 | 1405 | ||
1406 | at91_chip->ops = | 1406 | at91_chip->ops = (struct at91_pinctrl_mux_ops*) |
1407 | of_match_device(at91_gpio_of_match, &pdev->dev)->data; | 1407 | of_match_device(at91_gpio_of_match, &pdev->dev)->data; |
1408 | at91_chip->pioc_virq = irq; | 1408 | at91_chip->pioc_virq = irq; |
1409 | at91_chip->pioc_idx = alias_idx; | 1409 | at91_chip->pioc_idx = alias_idx; |