diff options
author | Andrew Lunn <andrew@lunn.ch> | 2013-01-09 22:28:09 +0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-01-18 23:31:41 +0400 |
commit | 16fa36be89305f06a217509fcce4f4aed5df0627 (patch) | |
tree | bb153ed2299fb23d94e6f2b3d8e9827a8172d581 /drivers/pinctrl/mvebu/pinctrl-dove.c | |
parent | 4b090d8dffd2a036f894c3fa6da3c5cc0e20536c (diff) | |
download | linux-16fa36be89305f06a217509fcce4f4aed5df0627.tar.xz |
pinctrl: mvebu: Fix compiler warnings
match->data is const void * where as dev.platform_data is just void *.
Add a cast to remove the const, which is causing the compiler warning:
drivers/pinctrl/mvebu/pinctrl-kirkwood.c:461:26: warning: assignment
discards 'const' qualifier from pointer target type
Dove has the exact same warning, so gets the same cast.
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Acked-by: Jason Cooper <jason@lakedaemon.net>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/mvebu/pinctrl-dove.c')
-rw-r--r-- | drivers/pinctrl/mvebu/pinctrl-dove.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/mvebu/pinctrl-dove.c b/drivers/pinctrl/mvebu/pinctrl-dove.c index 69aba3697287..428ea96a94d3 100644 --- a/drivers/pinctrl/mvebu/pinctrl-dove.c +++ b/drivers/pinctrl/mvebu/pinctrl-dove.c @@ -588,7 +588,7 @@ static int dove_pinctrl_probe(struct platform_device *pdev) { const struct of_device_id *match = of_match_device(dove_pinctrl_of_match, &pdev->dev); - pdev->dev.platform_data = match->data; + pdev->dev.platform_data = (void *)match->data; /* * General MPP Configuration Register is part of pdma registers. |