diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2010-10-30 19:27:48 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-10-30 19:27:48 -0400 |
commit | 526de53cf78d325351904eefb9624f933924df75 (patch) | |
tree | 031287eeb83a98a21d7e2f58aff34139fbd8f9ea /drivers | |
parent | c117e4a2bb49116b0b51df06bbabe638d28dfae7 (diff) |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/can/pch_can.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/can/pch_can.c b/drivers/net/can/pch_can.c index 55ec324caaf4..c63209f4e73c 100644 --- a/drivers/net/can/pch_can.c +++ b/drivers/net/can/pch_can.c | |||
@@ -213,12 +213,12 @@ static DEFINE_PCI_DEVICE_TABLE(pch_pci_tbl) = { | |||
213 | }; | 213 | }; |
214 | MODULE_DEVICE_TABLE(pci, pch_pci_tbl); | 214 | MODULE_DEVICE_TABLE(pci, pch_pci_tbl); |
215 | 215 | ||
216 | static inline void pch_can_bit_set(u32 *addr, u32 mask) | 216 | static inline void pch_can_bit_set(void __iomem *addr, u32 mask) |
217 | { | 217 | { |
218 | iowrite32(ioread32(addr) | mask, addr); | 218 | iowrite32(ioread32(addr) | mask, addr); |
219 | } | 219 | } |
220 | 220 | ||
221 | static inline void pch_can_bit_clear(u32 *addr, u32 mask) | 221 | static inline void pch_can_bit_clear(void __iomem *addr, u32 mask) |
222 | { | 222 | { |
223 | iowrite32(ioread32(addr) & ~mask, addr); | 223 | iowrite32(ioread32(addr) & ~mask, addr); |
224 | } | 224 | } |