aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/can
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/can')
-rw-r--r--drivers/net/can/at91_can.c2
-rw-r--r--drivers/net/can/pch_can.c10
2 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/can/at91_can.c b/drivers/net/can/at91_can.c
index cee98fa668bd..7ef83d06f7ed 100644
--- a/drivers/net/can/at91_can.c
+++ b/drivers/net/can/at91_can.c
@@ -1,7 +1,7 @@
1/* 1/*
2 * at91_can.c - CAN network driver for AT91 SoC CAN controller 2 * at91_can.c - CAN network driver for AT91 SoC CAN controller
3 * 3 *
4 * (C) 2007 by Hans J. Koch <hjk@linutronix.de> 4 * (C) 2007 by Hans J. Koch <hjk@hansjkoch.de>
5 * (C) 2008, 2009, 2010 by Marc Kleine-Budde <kernel@pengutronix.de> 5 * (C) 2008, 2009, 2010 by Marc Kleine-Budde <kernel@pengutronix.de>
6 * 6 *
7 * This software may be distributed under the terms of the GNU General 7 * This software may be distributed under the terms of the GNU General
diff --git a/drivers/net/can/pch_can.c b/drivers/net/can/pch_can.c
index 55ec324caaf4..672718261c68 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};
214MODULE_DEVICE_TABLE(pci, pch_pci_tbl); 214MODULE_DEVICE_TABLE(pci, pch_pci_tbl);
215 215
216static inline void pch_can_bit_set(u32 *addr, u32 mask) 216static 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
221static inline void pch_can_bit_clear(u32 *addr, u32 mask) 221static 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}
@@ -1437,7 +1437,7 @@ probe_exit_endev:
1437 return rc; 1437 return rc;
1438} 1438}
1439 1439
1440static struct pci_driver pch_can_pcidev = { 1440static struct pci_driver pch_can_pci_driver = {
1441 .name = "pch_can", 1441 .name = "pch_can",
1442 .id_table = pch_pci_tbl, 1442 .id_table = pch_pci_tbl,
1443 .probe = pch_can_probe, 1443 .probe = pch_can_probe,
@@ -1448,13 +1448,13 @@ static struct pci_driver pch_can_pcidev = {
1448 1448
1449static int __init pch_can_pci_init(void) 1449static int __init pch_can_pci_init(void)
1450{ 1450{
1451 return pci_register_driver(&pch_can_pcidev); 1451 return pci_register_driver(&pch_can_pci_driver);
1452} 1452}
1453module_init(pch_can_pci_init); 1453module_init(pch_can_pci_init);
1454 1454
1455static void __exit pch_can_pci_exit(void) 1455static void __exit pch_can_pci_exit(void)
1456{ 1456{
1457 pci_unregister_driver(&pch_can_pcidev); 1457 pci_unregister_driver(&pch_can_pci_driver);
1458} 1458}
1459module_exit(pch_can_pci_exit); 1459module_exit(pch_can_pci_exit);
1460 1460