]> git.karo-electronics.de Git - karo-tx-linux.git/commit
pinctrl: mvebu: Fix compiler warnings
authorAndrew Lunn <andrew@lunn.ch>
Wed, 9 Jan 2013 18:28:09 +0000 (19:28 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 18 Jan 2013 19:31:41 +0000 (20:31 +0100)
commit16fa36be89305f06a217509fcce4f4aed5df0627
treebb153ed2299fb23d94e6f2b3d8e9827a8172d581
parent4b090d8dffd2a036f894c3fa6da3c5cc0e20536c
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>
drivers/pinctrl/mvebu/pinctrl-dove.c
drivers/pinctrl/mvebu/pinctrl-kirkwood.c