[PATCH] pinctrl: mvebu: Fix compiler warnings

Linus Walleij linus.walleij at linaro.org
Fri Jan 18 14:32:18 EST 2013


On Wed, Jan 9, 2013 at 7:28 PM, Andrew Lunn <andrew at lunn.ch> wrote:

> 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 at lunn.ch>

Applied with Jason's ACK.

Thanks!
Linus Walleij



More information about the linux-arm-kernel mailing list