can: pch_can: fix sparse warning
authorMarc Kleine-Budde <mkl@pengutronix.de>
Sat, 30 Oct 2010 23:27:48 +0000 (16:27 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 30 Oct 2010 23:27:48 +0000 (16:27 -0700)
commit526de53cf78d325351904eefb9624f933924df75
tree031287eeb83a98a21d7e2f58aff34139fbd8f9ea
parentc117e4a2bb49116b0b51df06bbabe638d28dfae7
can: pch_can: fix sparse warning

This patch fixes the following sparse warning:

drivers/net/can/pch_can.c:231:26: warning: incorrect type in argument 1 (different address spaces)
drivers/net/can/pch_can.c:231:26:    expected unsigned int [usertype] *addr
drivers/net/can/pch_can.c:231:26:    got unsigned int [noderef] <asn:2>*<noident>

Let pch_can_bit_{set,clear} first parameter be a void __iomem pointer.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/can/pch_can.c