[PATCH] pinctrl: mvebu: Fix compiler warnings

Jason Cooper jason at lakedaemon.net
Wed Jan 9 15:55:05 EST 2013


On Wed, Jan 09, 2013 at 07:28:09PM +0100, Andrew Lunn 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>

Acked-by: Jason Cooper <jason at lakedaemon.net>

thx,

Jason.



More information about the linux-arm-kernel mailing list