aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/can/at91_can.c8
-rw-r--r--drivers/net/can/bfin_can.c6
-rw-r--r--drivers/net/can/c_can/c_can_pci.c6
-rw-r--r--drivers/net/can/c_can/c_can_platform.c6
-rw-r--r--drivers/net/can/cc770/cc770_isa.c18
-rw-r--r--drivers/net/can/cc770/cc770_platform.c12
-rw-r--r--drivers/net/can/flexcan.c10
-rw-r--r--drivers/net/can/grcan.c8
-rw-r--r--drivers/net/can/janz-ican3.c24
-rw-r--r--drivers/net/can/mcp251x.c6
-rw-r--r--drivers/net/can/mscan/mpc5xxx_can.c24
-rw-r--r--drivers/net/can/pch_can.c6
-rw-r--r--drivers/net/can/sja1000/ems_pci.c2
-rw-r--r--drivers/net/can/sja1000/ems_pcmcia.c4
-rw-r--r--drivers/net/can/sja1000/kvaser_pci.c6
-rw-r--r--drivers/net/can/sja1000/peak_pci.c6
-rw-r--r--drivers/net/can/sja1000/peak_pcmcia.c2
-rw-r--r--drivers/net/can/sja1000/plx_pci.c20
-rw-r--r--drivers/net/can/sja1000/sja1000_isa.c16
-rw-r--r--drivers/net/can/sja1000/sja1000_of_platform.c8
-rw-r--r--drivers/net/can/sja1000/tscan1.c8
-rw-r--r--drivers/net/can/softing/softing_cs.c10
-rw-r--r--drivers/net/can/softing/softing_main.c12
-rw-r--r--drivers/net/can/ti_hecc.c4
24 files changed, 116 insertions, 116 deletions
diff --git a/drivers/net/can/at91_can.c b/drivers/net/can/at91_can.c
index 14b166bdbeaf..b8e81eb6df13 100644
--- a/drivers/net/can/at91_can.c
+++ b/drivers/net/can/at91_can.c
@@ -155,7 +155,7 @@ struct at91_priv {
155 canid_t mb0_id; 155 canid_t mb0_id;
156}; 156};
157 157
158static const struct at91_devtype_data at91_devtype_data[] __devinitconst = { 158static const struct at91_devtype_data at91_devtype_data[] = {
159 [AT91_DEVTYPE_SAM9263] = { 159 [AT91_DEVTYPE_SAM9263] = {
160 .rx_first = 1, 160 .rx_first = 1,
161 .rx_split = 8, 161 .rx_split = 8,
@@ -1242,7 +1242,7 @@ static struct attribute_group at91_sysfs_attr_group = {
1242 .attrs = at91_sysfs_attrs, 1242 .attrs = at91_sysfs_attrs,
1243}; 1243};
1244 1244
1245static int __devinit at91_can_probe(struct platform_device *pdev) 1245static int at91_can_probe(struct platform_device *pdev)
1246{ 1246{
1247 const struct at91_devtype_data *devtype_data; 1247 const struct at91_devtype_data *devtype_data;
1248 enum at91_devtype devtype; 1248 enum at91_devtype devtype;
@@ -1339,7 +1339,7 @@ static int __devinit at91_can_probe(struct platform_device *pdev)
1339 return err; 1339 return err;
1340} 1340}
1341 1341
1342static int __devexit at91_can_remove(struct platform_device *pdev) 1342static int at91_can_remove(struct platform_device *pdev)
1343{ 1343{
1344 struct net_device *dev = platform_get_drvdata(pdev); 1344 struct net_device *dev = platform_get_drvdata(pdev);
1345 struct at91_priv *priv = netdev_priv(dev); 1345 struct at91_priv *priv = netdev_priv(dev);
@@ -1376,7 +1376,7 @@ MODULE_DEVICE_TABLE(platform, at91_can_id_table);
1376 1376
1377static struct platform_driver at91_can_driver = { 1377static struct platform_driver at91_can_driver = {
1378 .probe = at91_can_probe, 1378 .probe = at91_can_probe,
1379 .remove = __devexit_p(at91_can_remove), 1379 .remove = at91_can_remove,
1380 .driver = { 1380 .driver = {
1381 .name = KBUILD_MODNAME, 1381 .name = KBUILD_MODNAME,
1382 .owner = THIS_MODULE, 1382 .owner = THIS_MODULE,
diff --git a/drivers/net/can/bfin_can.c b/drivers/net/can/bfin_can.c
index a3f8de962258..6a0532176b69 100644
--- a/drivers/net/can/bfin_can.c
+++ b/drivers/net/can/bfin_can.c
@@ -531,7 +531,7 @@ static const struct net_device_ops bfin_can_netdev_ops = {
531 .ndo_start_xmit = bfin_can_start_xmit, 531 .ndo_start_xmit = bfin_can_start_xmit,
532}; 532};
533 533
534static int __devinit bfin_can_probe(struct platform_device *pdev) 534static int bfin_can_probe(struct platform_device *pdev)
535{ 535{
536 int err; 536 int err;
537 struct net_device *dev; 537 struct net_device *dev;
@@ -611,7 +611,7 @@ exit:
611 return err; 611 return err;
612} 612}
613 613
614static int __devexit bfin_can_remove(struct platform_device *pdev) 614static int bfin_can_remove(struct platform_device *pdev)
615{ 615{
616 struct net_device *dev = dev_get_drvdata(&pdev->dev); 616 struct net_device *dev = dev_get_drvdata(&pdev->dev);
617 struct bfin_can_priv *priv = netdev_priv(dev); 617 struct bfin_can_priv *priv = netdev_priv(dev);
@@ -677,7 +677,7 @@ static int bfin_can_resume(struct platform_device *pdev)
677 677
678static struct platform_driver bfin_can_driver = { 678static struct platform_driver bfin_can_driver = {
679 .probe = bfin_can_probe, 679 .probe = bfin_can_probe,
680 .remove = __devexit_p(bfin_can_remove), 680 .remove = bfin_can_remove,
681 .suspend = bfin_can_suspend, 681 .suspend = bfin_can_suspend,
682 .resume = bfin_can_resume, 682 .resume = bfin_can_resume,
683 .driver = { 683 .driver = {
diff --git a/drivers/net/can/c_can/c_can_pci.c b/drivers/net/can/c_can/c_can_pci.c
index 3d7830bcd2bf..a1f263170683 100644
--- a/drivers/net/can/c_can/c_can_pci.c
+++ b/drivers/net/can/c_can/c_can_pci.c
@@ -63,7 +63,7 @@ static void c_can_pci_write_reg_aligned_to_32bit(struct c_can_priv *priv,
63 writew(val, priv->base + 2 * priv->regs[index]); 63 writew(val, priv->base + 2 * priv->regs[index]);
64} 64}
65 65
66static int __devinit c_can_pci_probe(struct pci_dev *pdev, 66static int c_can_pci_probe(struct pci_dev *pdev,
67 const struct pci_device_id *ent) 67 const struct pci_device_id *ent)
68{ 68{
69 struct c_can_pci_data *c_can_pci_data = (void *)ent->driver_data; 69 struct c_can_pci_data *c_can_pci_data = (void *)ent->driver_data;
@@ -174,7 +174,7 @@ out:
174 return ret; 174 return ret;
175} 175}
176 176
177static void __devexit c_can_pci_remove(struct pci_dev *pdev) 177static void c_can_pci_remove(struct pci_dev *pdev)
178{ 178{
179 struct net_device *dev = pci_get_drvdata(pdev); 179 struct net_device *dev = pci_get_drvdata(pdev);
180 struct c_can_priv *priv = netdev_priv(dev); 180 struct c_can_priv *priv = netdev_priv(dev);
@@ -210,7 +210,7 @@ static struct pci_driver c_can_pci_driver = {
210 .name = KBUILD_MODNAME, 210 .name = KBUILD_MODNAME,
211 .id_table = c_can_pci_tbl, 211 .id_table = c_can_pci_tbl,
212 .probe = c_can_pci_probe, 212 .probe = c_can_pci_probe,
213 .remove = __devexit_p(c_can_pci_remove), 213 .remove = c_can_pci_remove,
214}; 214};
215 215
216module_pci_driver(c_can_pci_driver); 216module_pci_driver(c_can_pci_driver);
diff --git a/drivers/net/can/c_can/c_can_platform.c b/drivers/net/can/c_can/c_can_platform.c
index 0044fd859db3..d63b91904f82 100644
--- a/drivers/net/can/c_can/c_can_platform.c
+++ b/drivers/net/can/c_can/c_can_platform.c
@@ -106,7 +106,7 @@ static const struct of_device_id c_can_of_table[] = {
106}; 106};
107MODULE_DEVICE_TABLE(of, c_can_of_table); 107MODULE_DEVICE_TABLE(of, c_can_of_table);
108 108
109static int __devinit c_can_plat_probe(struct platform_device *pdev) 109static int c_can_plat_probe(struct platform_device *pdev)
110{ 110{
111 int ret; 111 int ret;
112 void __iomem *addr; 112 void __iomem *addr;
@@ -248,7 +248,7 @@ exit:
248 return ret; 248 return ret;
249} 249}
250 250
251static int __devexit c_can_plat_remove(struct platform_device *pdev) 251static int c_can_plat_remove(struct platform_device *pdev)
252{ 252{
253 struct net_device *dev = platform_get_drvdata(pdev); 253 struct net_device *dev = platform_get_drvdata(pdev);
254 struct c_can_priv *priv = netdev_priv(dev); 254 struct c_can_priv *priv = netdev_priv(dev);
@@ -334,7 +334,7 @@ static struct platform_driver c_can_plat_driver = {
334 .of_match_table = of_match_ptr(c_can_of_table), 334 .of_match_table = of_match_ptr(c_can_of_table),
335 }, 335 },
336 .probe = c_can_plat_probe, 336 .probe = c_can_plat_probe,
337 .remove = __devexit_p(c_can_plat_remove), 337 .remove = c_can_plat_remove,
338 .suspend = c_can_suspend, 338 .suspend = c_can_suspend,
339 .resume = c_can_resume, 339 .resume = c_can_resume,
340 .id_table = c_can_id_table, 340 .id_table = c_can_id_table,
diff --git a/drivers/net/can/cc770/cc770_isa.c b/drivers/net/can/cc770/cc770_isa.c
index 9f3a25ccd665..8eaaac81f320 100644
--- a/drivers/net/can/cc770/cc770_isa.c
+++ b/drivers/net/can/cc770/cc770_isa.c
@@ -75,12 +75,12 @@ MODULE_LICENSE("GPL v2");
75 75
76static unsigned long port[MAXDEV]; 76static unsigned long port[MAXDEV];
77static unsigned long mem[MAXDEV]; 77static unsigned long mem[MAXDEV];
78static int __devinitdata irq[MAXDEV]; 78static int irq[MAXDEV];
79static int __devinitdata clk[MAXDEV]; 79static int clk[MAXDEV];
80static u8 __devinitdata cir[MAXDEV] = {[0 ... (MAXDEV - 1)] = 0xff}; 80static u8 cir[MAXDEV] = {[0 ... (MAXDEV - 1)] = 0xff};
81static u8 __devinitdata cor[MAXDEV] = {[0 ... (MAXDEV - 1)] = 0xff}; 81static u8 cor[MAXDEV] = {[0 ... (MAXDEV - 1)] = 0xff};
82static u8 __devinitdata bcr[MAXDEV] = {[0 ... (MAXDEV - 1)] = 0xff}; 82static u8 bcr[MAXDEV] = {[0 ... (MAXDEV - 1)] = 0xff};
83static int __devinitdata indirect[MAXDEV] = {[0 ... (MAXDEV - 1)] = -1}; 83static int indirect[MAXDEV] = {[0 ... (MAXDEV - 1)] = -1};
84 84
85module_param_array(port, ulong, NULL, S_IRUGO); 85module_param_array(port, ulong, NULL, S_IRUGO);
86MODULE_PARM_DESC(port, "I/O port number"); 86MODULE_PARM_DESC(port, "I/O port number");
@@ -166,7 +166,7 @@ static void cc770_isa_port_write_reg_indirect(const struct cc770_priv *priv,
166 spin_unlock_irqrestore(&cc770_isa_port_lock, flags); 166 spin_unlock_irqrestore(&cc770_isa_port_lock, flags);
167} 167}
168 168
169static int __devinit cc770_isa_probe(struct platform_device *pdev) 169static int cc770_isa_probe(struct platform_device *pdev)
170{ 170{
171 struct net_device *dev; 171 struct net_device *dev;
172 struct cc770_priv *priv; 172 struct cc770_priv *priv;
@@ -291,7 +291,7 @@ static int __devinit cc770_isa_probe(struct platform_device *pdev)
291 return err; 291 return err;
292} 292}
293 293
294static int __devexit cc770_isa_remove(struct platform_device *pdev) 294static int cc770_isa_remove(struct platform_device *pdev)
295{ 295{
296 struct net_device *dev = dev_get_drvdata(&pdev->dev); 296 struct net_device *dev = dev_get_drvdata(&pdev->dev);
297 struct cc770_priv *priv = netdev_priv(dev); 297 struct cc770_priv *priv = netdev_priv(dev);
@@ -316,7 +316,7 @@ static int __devexit cc770_isa_remove(struct platform_device *pdev)
316 316
317static struct platform_driver cc770_isa_driver = { 317static struct platform_driver cc770_isa_driver = {
318 .probe = cc770_isa_probe, 318 .probe = cc770_isa_probe,
319 .remove = __devexit_p(cc770_isa_remove), 319 .remove = cc770_isa_remove,
320 .driver = { 320 .driver = {
321 .name = KBUILD_MODNAME, 321 .name = KBUILD_MODNAME,
322 .owner = THIS_MODULE, 322 .owner = THIS_MODULE,
diff --git a/drivers/net/can/cc770/cc770_platform.c b/drivers/net/can/cc770/cc770_platform.c
index 3da6cbb542ae..7d451cd75006 100644
--- a/drivers/net/can/cc770/cc770_platform.c
+++ b/drivers/net/can/cc770/cc770_platform.c
@@ -75,7 +75,7 @@ static void cc770_platform_write_reg(const struct cc770_priv *priv, int reg,
75 iowrite8(val, priv->reg_base + reg); 75 iowrite8(val, priv->reg_base + reg);
76} 76}
77 77
78static int __devinit cc770_get_of_node_data(struct platform_device *pdev, 78static int cc770_get_of_node_data(struct platform_device *pdev,
79 struct cc770_priv *priv) 79 struct cc770_priv *priv)
80{ 80{
81 struct device_node *np = pdev->dev.of_node; 81 struct device_node *np = pdev->dev.of_node;
@@ -148,7 +148,7 @@ static int __devinit cc770_get_of_node_data(struct platform_device *pdev,
148 return 0; 148 return 0;
149} 149}
150 150
151static int __devinit cc770_get_platform_data(struct platform_device *pdev, 151static int cc770_get_platform_data(struct platform_device *pdev,
152 struct cc770_priv *priv) 152 struct cc770_priv *priv)
153{ 153{
154 154
@@ -164,7 +164,7 @@ static int __devinit cc770_get_platform_data(struct platform_device *pdev,
164 return 0; 164 return 0;
165} 165}
166 166
167static int __devinit cc770_platform_probe(struct platform_device *pdev) 167static int cc770_platform_probe(struct platform_device *pdev)
168{ 168{
169 struct net_device *dev; 169 struct net_device *dev;
170 struct cc770_priv *priv; 170 struct cc770_priv *priv;
@@ -238,7 +238,7 @@ exit_release_mem:
238 return err; 238 return err;
239} 239}
240 240
241static int __devexit cc770_platform_remove(struct platform_device *pdev) 241static int cc770_platform_remove(struct platform_device *pdev)
242{ 242{
243 struct net_device *dev = dev_get_drvdata(&pdev->dev); 243 struct net_device *dev = dev_get_drvdata(&pdev->dev);
244 struct cc770_priv *priv = netdev_priv(dev); 244 struct cc770_priv *priv = netdev_priv(dev);
@@ -254,7 +254,7 @@ static int __devexit cc770_platform_remove(struct platform_device *pdev)
254 return 0; 254 return 0;
255} 255}
256 256
257static struct of_device_id __devinitdata cc770_platform_table[] = { 257static struct of_device_id cc770_platform_table[] = {
258 {.compatible = "bosch,cc770"}, /* CC770 from Bosch */ 258 {.compatible = "bosch,cc770"}, /* CC770 from Bosch */
259 {.compatible = "intc,82527"}, /* AN82527 from Intel CP */ 259 {.compatible = "intc,82527"}, /* AN82527 from Intel CP */
260 {}, 260 {},
@@ -268,7 +268,7 @@ static struct platform_driver cc770_platform_driver = {
268 .of_match_table = cc770_platform_table, 268 .of_match_table = cc770_platform_table,
269 }, 269 },
270 .probe = cc770_platform_probe, 270 .probe = cc770_platform_probe,
271 .remove = __devexit_p(cc770_platform_remove), 271 .remove = cc770_platform_remove,
272}; 272};
273 273
274module_platform_driver(cc770_platform_driver); 274module_platform_driver(cc770_platform_driver);
diff --git a/drivers/net/can/flexcan.c b/drivers/net/can/flexcan.c
index 9a17965e00fd..0289a6d86f66 100644
--- a/drivers/net/can/flexcan.c
+++ b/drivers/net/can/flexcan.c
@@ -922,7 +922,7 @@ static const struct net_device_ops flexcan_netdev_ops = {
922 .ndo_start_xmit = flexcan_start_xmit, 922 .ndo_start_xmit = flexcan_start_xmit,
923}; 923};
924 924
925static int __devinit register_flexcandev(struct net_device *dev) 925static int register_flexcandev(struct net_device *dev)
926{ 926{
927 struct flexcan_priv *priv = netdev_priv(dev); 927 struct flexcan_priv *priv = netdev_priv(dev);
928 struct flexcan_regs __iomem *regs = priv->base; 928 struct flexcan_regs __iomem *regs = priv->base;
@@ -968,7 +968,7 @@ static int __devinit register_flexcandev(struct net_device *dev)
968 return err; 968 return err;
969} 969}
970 970
971static void __devexit unregister_flexcandev(struct net_device *dev) 971static void unregister_flexcandev(struct net_device *dev)
972{ 972{
973 unregister_candev(dev); 973 unregister_candev(dev);
974} 974}
@@ -987,7 +987,7 @@ static const struct platform_device_id flexcan_id_table[] = {
987}; 987};
988MODULE_DEVICE_TABLE(platform, flexcan_id_table); 988MODULE_DEVICE_TABLE(platform, flexcan_id_table);
989 989
990static int __devinit flexcan_probe(struct platform_device *pdev) 990static int flexcan_probe(struct platform_device *pdev)
991{ 991{
992 const struct of_device_id *of_id; 992 const struct of_device_id *of_id;
993 const struct flexcan_devtype_data *devtype_data; 993 const struct flexcan_devtype_data *devtype_data;
@@ -1109,7 +1109,7 @@ static int __devinit flexcan_probe(struct platform_device *pdev)
1109 return err; 1109 return err;
1110} 1110}
1111 1111
1112static int __devexit flexcan_remove(struct platform_device *pdev) 1112static int flexcan_remove(struct platform_device *pdev)
1113{ 1113{
1114 struct net_device *dev = platform_get_drvdata(pdev); 1114 struct net_device *dev = platform_get_drvdata(pdev);
1115 struct flexcan_priv *priv = netdev_priv(dev); 1115 struct flexcan_priv *priv = netdev_priv(dev);
@@ -1170,7 +1170,7 @@ static struct platform_driver flexcan_driver = {
1170 .of_match_table = flexcan_of_match, 1170 .of_match_table = flexcan_of_match,
1171 }, 1171 },
1172 .probe = flexcan_probe, 1172 .probe = flexcan_probe,
1173 .remove = __devexit_p(flexcan_remove), 1173 .remove = flexcan_remove,
1174 .suspend = flexcan_suspend, 1174 .suspend = flexcan_suspend,
1175 .resume = flexcan_resume, 1175 .resume = flexcan_resume,
1176 .id_table = flexcan_id_table, 1176 .id_table = flexcan_id_table,
diff --git a/drivers/net/can/grcan.c b/drivers/net/can/grcan.c
index 391f484fccb7..17fbc7a09224 100644
--- a/drivers/net/can/grcan.c
+++ b/drivers/net/can/grcan.c
@@ -1659,7 +1659,7 @@ exit_free_candev:
1659 return err; 1659 return err;
1660} 1660}
1661 1661
1662static int __devinit grcan_probe(struct platform_device *ofdev) 1662static int grcan_probe(struct platform_device *ofdev)
1663{ 1663{
1664 struct device_node *np = ofdev->dev.of_node; 1664 struct device_node *np = ofdev->dev.of_node;
1665 struct resource *res; 1665 struct resource *res;
@@ -1714,7 +1714,7 @@ exit_error:
1714 return err; 1714 return err;
1715} 1715}
1716 1716
1717static int __devexit grcan_remove(struct platform_device *ofdev) 1717static int grcan_remove(struct platform_device *ofdev)
1718{ 1718{
1719 struct net_device *dev = dev_get_drvdata(&ofdev->dev); 1719 struct net_device *dev = dev_get_drvdata(&ofdev->dev);
1720 struct grcan_priv *priv = netdev_priv(dev); 1720 struct grcan_priv *priv = netdev_priv(dev);
@@ -1729,7 +1729,7 @@ static int __devexit grcan_remove(struct platform_device *ofdev)
1729 return 0; 1729 return 0;
1730} 1730}
1731 1731
1732static struct of_device_id grcan_match[] __devinitconst = { 1732static struct of_device_id grcan_match[] = {
1733 {.name = "GAISLER_GRCAN"}, 1733 {.name = "GAISLER_GRCAN"},
1734 {.name = "01_03d"}, 1734 {.name = "01_03d"},
1735 {.name = "GAISLER_GRHCAN"}, 1735 {.name = "GAISLER_GRHCAN"},
@@ -1746,7 +1746,7 @@ static struct platform_driver grcan_driver = {
1746 .of_match_table = grcan_match, 1746 .of_match_table = grcan_match,
1747 }, 1747 },
1748 .probe = grcan_probe, 1748 .probe = grcan_probe,
1749 .remove = __devexit_p(grcan_remove), 1749 .remove = grcan_remove,
1750}; 1750};
1751 1751
1752module_platform_driver(grcan_driver); 1752module_platform_driver(grcan_driver);
diff --git a/drivers/net/can/janz-ican3.c b/drivers/net/can/janz-ican3.c
index c0bfb0ad3e0d..c4bc1d2e2033 100644
--- a/drivers/net/can/janz-ican3.c
+++ b/drivers/net/can/janz-ican3.c
@@ -365,7 +365,7 @@ static int ican3_old_send_msg(struct ican3_dev *mod, struct ican3_msg *msg)
365 * ICAN3 "new-style" Host Interface Setup 365 * ICAN3 "new-style" Host Interface Setup
366 */ 366 */
367 367
368static void __devinit ican3_init_new_host_interface(struct ican3_dev *mod) 368static void ican3_init_new_host_interface(struct ican3_dev *mod)
369{ 369{
370 struct ican3_new_desc desc; 370 struct ican3_new_desc desc;
371 unsigned long flags; 371 unsigned long flags;
@@ -444,7 +444,7 @@ static void __devinit ican3_init_new_host_interface(struct ican3_dev *mod)
444 * ICAN3 Fast Host Interface Setup 444 * ICAN3 Fast Host Interface Setup
445 */ 445 */
446 446
447static void __devinit ican3_init_fast_host_interface(struct ican3_dev *mod) 447static void ican3_init_fast_host_interface(struct ican3_dev *mod)
448{ 448{
449 struct ican3_fast_desc desc; 449 struct ican3_fast_desc desc;
450 unsigned long flags; 450 unsigned long flags;
@@ -631,7 +631,7 @@ static int ican3_recv_msg(struct ican3_dev *mod, struct ican3_msg *msg)
631 * Quick Pre-constructed Messages 631 * Quick Pre-constructed Messages
632 */ 632 */
633 633
634static int __devinit ican3_msg_connect(struct ican3_dev *mod) 634static int ican3_msg_connect(struct ican3_dev *mod)
635{ 635{
636 struct ican3_msg msg; 636 struct ican3_msg msg;
637 637
@@ -642,7 +642,7 @@ static int __devinit ican3_msg_connect(struct ican3_dev *mod)
642 return ican3_send_msg(mod, &msg); 642 return ican3_send_msg(mod, &msg);
643} 643}
644 644
645static int __devexit ican3_msg_disconnect(struct ican3_dev *mod) 645static int ican3_msg_disconnect(struct ican3_dev *mod)
646{ 646{
647 struct ican3_msg msg; 647 struct ican3_msg msg;
648 648
@@ -653,7 +653,7 @@ static int __devexit ican3_msg_disconnect(struct ican3_dev *mod)
653 return ican3_send_msg(mod, &msg); 653 return ican3_send_msg(mod, &msg);
654} 654}
655 655
656static int __devinit ican3_msg_newhostif(struct ican3_dev *mod) 656static int ican3_msg_newhostif(struct ican3_dev *mod)
657{ 657{
658 struct ican3_msg msg; 658 struct ican3_msg msg;
659 int ret; 659 int ret;
@@ -674,7 +674,7 @@ static int __devinit ican3_msg_newhostif(struct ican3_dev *mod)
674 return 0; 674 return 0;
675} 675}
676 676
677static int __devinit ican3_msg_fasthostif(struct ican3_dev *mod) 677static int ican3_msg_fasthostif(struct ican3_dev *mod)
678{ 678{
679 struct ican3_msg msg; 679 struct ican3_msg msg;
680 unsigned int addr; 680 unsigned int addr;
@@ -707,7 +707,7 @@ static int __devinit ican3_msg_fasthostif(struct ican3_dev *mod)
707 * Setup the CAN filter to either accept or reject all 707 * Setup the CAN filter to either accept or reject all
708 * messages from the CAN bus. 708 * messages from the CAN bus.
709 */ 709 */
710static int __devinit ican3_set_id_filter(struct ican3_dev *mod, bool accept) 710static int ican3_set_id_filter(struct ican3_dev *mod, bool accept)
711{ 711{
712 struct ican3_msg msg; 712 struct ican3_msg msg;
713 int ret; 713 int ret;
@@ -1421,7 +1421,7 @@ static int ican3_reset_module(struct ican3_dev *mod)
1421 return -ETIMEDOUT; 1421 return -ETIMEDOUT;
1422} 1422}
1423 1423
1424static void __devexit ican3_shutdown_module(struct ican3_dev *mod) 1424static void ican3_shutdown_module(struct ican3_dev *mod)
1425{ 1425{
1426 ican3_msg_disconnect(mod); 1426 ican3_msg_disconnect(mod);
1427 ican3_reset_module(mod); 1427 ican3_reset_module(mod);
@@ -1430,7 +1430,7 @@ static void __devexit ican3_shutdown_module(struct ican3_dev *mod)
1430/* 1430/*
1431 * Startup an ICAN module, bringing it into fast mode 1431 * Startup an ICAN module, bringing it into fast mode
1432 */ 1432 */
1433static int __devinit ican3_startup_module(struct ican3_dev *mod) 1433static int ican3_startup_module(struct ican3_dev *mod)
1434{ 1434{
1435 int ret; 1435 int ret;
1436 1436
@@ -1760,7 +1760,7 @@ static struct attribute_group ican3_sysfs_attr_group = {
1760 * PCI Subsystem 1760 * PCI Subsystem
1761 */ 1761 */
1762 1762
1763static int __devinit ican3_probe(struct platform_device *pdev) 1763static int ican3_probe(struct platform_device *pdev)
1764{ 1764{
1765 struct janz_platform_data *pdata; 1765 struct janz_platform_data *pdata;
1766 struct net_device *ndev; 1766 struct net_device *ndev;
@@ -1898,7 +1898,7 @@ out_return:
1898 return ret; 1898 return ret;
1899} 1899}
1900 1900
1901static int __devexit ican3_remove(struct platform_device *pdev) 1901static int ican3_remove(struct platform_device *pdev)
1902{ 1902{
1903 struct net_device *ndev = platform_get_drvdata(pdev); 1903 struct net_device *ndev = platform_get_drvdata(pdev);
1904 struct ican3_dev *mod = netdev_priv(ndev); 1904 struct ican3_dev *mod = netdev_priv(ndev);
@@ -1927,7 +1927,7 @@ static struct platform_driver ican3_driver = {
1927 .owner = THIS_MODULE, 1927 .owner = THIS_MODULE,
1928 }, 1928 },
1929 .probe = ican3_probe, 1929 .probe = ican3_probe,
1930 .remove = __devexit_p(ican3_remove), 1930 .remove = ican3_remove,
1931}; 1931};
1932 1932
1933module_platform_driver(ican3_driver); 1933module_platform_driver(ican3_driver);
diff --git a/drivers/net/can/mcp251x.c b/drivers/net/can/mcp251x.c
index 26e7129332ab..5eaf47b8e37b 100644
--- a/drivers/net/can/mcp251x.c
+++ b/drivers/net/can/mcp251x.c
@@ -981,7 +981,7 @@ static const struct net_device_ops mcp251x_netdev_ops = {
981 .ndo_start_xmit = mcp251x_hard_start_xmit, 981 .ndo_start_xmit = mcp251x_hard_start_xmit,
982}; 982};
983 983
984static int __devinit mcp251x_can_probe(struct spi_device *spi) 984static int mcp251x_can_probe(struct spi_device *spi)
985{ 985{
986 struct net_device *net; 986 struct net_device *net;
987 struct mcp251x_priv *priv; 987 struct mcp251x_priv *priv;
@@ -1100,7 +1100,7 @@ error_out:
1100 return ret; 1100 return ret;
1101} 1101}
1102 1102
1103static int __devexit mcp251x_can_remove(struct spi_device *spi) 1103static int mcp251x_can_remove(struct spi_device *spi)
1104{ 1104{
1105 struct mcp251x_platform_data *pdata = spi->dev.platform_data; 1105 struct mcp251x_platform_data *pdata = spi->dev.platform_data;
1106 struct mcp251x_priv *priv = dev_get_drvdata(&spi->dev); 1106 struct mcp251x_priv *priv = dev_get_drvdata(&spi->dev);
@@ -1198,7 +1198,7 @@ static struct spi_driver mcp251x_can_driver = {
1198 1198
1199 .id_table = mcp251x_id_table, 1199 .id_table = mcp251x_id_table,
1200 .probe = mcp251x_can_probe, 1200 .probe = mcp251x_can_probe,
1201 .remove = __devexit_p(mcp251x_can_remove), 1201 .remove = mcp251x_can_remove,
1202 .suspend = mcp251x_can_suspend, 1202 .suspend = mcp251x_can_suspend,
1203 .resume = mcp251x_can_resume, 1203 .resume = mcp251x_can_resume,
1204}; 1204};
diff --git a/drivers/net/can/mscan/mpc5xxx_can.c b/drivers/net/can/mscan/mpc5xxx_can.c
index 514d02064255..06a4561955ca 100644
--- a/drivers/net/can/mscan/mpc5xxx_can.c
+++ b/drivers/net/can/mscan/mpc5xxx_can.c
@@ -43,12 +43,12 @@ struct mpc5xxx_can_data {
43}; 43};
44 44
45#ifdef CONFIG_PPC_MPC52xx 45#ifdef CONFIG_PPC_MPC52xx
46static struct of_device_id __devinitdata mpc52xx_cdm_ids[] = { 46static struct of_device_id mpc52xx_cdm_ids[] = {
47 { .compatible = "fsl,mpc5200-cdm", }, 47 { .compatible = "fsl,mpc5200-cdm", },
48 {} 48 {}
49}; 49};
50 50
51static u32 __devinit mpc52xx_can_get_clock(struct platform_device *ofdev, 51static u32 mpc52xx_can_get_clock(struct platform_device *ofdev,
52 const char *clock_name, 52 const char *clock_name,
53 int *mscan_clksrc) 53 int *mscan_clksrc)
54{ 54{
@@ -101,7 +101,7 @@ static u32 __devinit mpc52xx_can_get_clock(struct platform_device *ofdev,
101 return freq; 101 return freq;
102} 102}
103#else /* !CONFIG_PPC_MPC52xx */ 103#else /* !CONFIG_PPC_MPC52xx */
104static u32 __devinit mpc52xx_can_get_clock(struct platform_device *ofdev, 104static u32 mpc52xx_can_get_clock(struct platform_device *ofdev,
105 const char *clock_name, 105 const char *clock_name,
106 int *mscan_clksrc) 106 int *mscan_clksrc)
107{ 107{
@@ -124,12 +124,12 @@ struct mpc512x_clockctl {
124 u32 mccr[4]; /* MSCAN Clk Ctrl Reg 1-3 */ 124 u32 mccr[4]; /* MSCAN Clk Ctrl Reg 1-3 */
125}; 125};
126 126
127static struct of_device_id __devinitdata mpc512x_clock_ids[] = { 127static struct of_device_id mpc512x_clock_ids[] = {
128 { .compatible = "fsl,mpc5121-clock", }, 128 { .compatible = "fsl,mpc5121-clock", },
129 {} 129 {}
130}; 130};
131 131
132static u32 __devinit mpc512x_can_get_clock(struct platform_device *ofdev, 132static u32 mpc512x_can_get_clock(struct platform_device *ofdev,
133 const char *clock_name, 133 const char *clock_name,
134 int *mscan_clksrc) 134 int *mscan_clksrc)
135{ 135{
@@ -239,7 +239,7 @@ exit_put:
239 return freq; 239 return freq;
240} 240}
241#else /* !CONFIG_PPC_MPC512x */ 241#else /* !CONFIG_PPC_MPC512x */
242static u32 __devinit mpc512x_can_get_clock(struct platform_device *ofdev, 242static u32 mpc512x_can_get_clock(struct platform_device *ofdev,
243 const char *clock_name, 243 const char *clock_name,
244 int *mscan_clksrc) 244 int *mscan_clksrc)
245{ 245{
@@ -248,7 +248,7 @@ static u32 __devinit mpc512x_can_get_clock(struct platform_device *ofdev,
248#endif /* CONFIG_PPC_MPC512x */ 248#endif /* CONFIG_PPC_MPC512x */
249 249
250static const struct of_device_id mpc5xxx_can_table[]; 250static const struct of_device_id mpc5xxx_can_table[];
251static int __devinit mpc5xxx_can_probe(struct platform_device *ofdev) 251static int mpc5xxx_can_probe(struct platform_device *ofdev)
252{ 252{
253 const struct of_device_id *match; 253 const struct of_device_id *match;
254 const struct mpc5xxx_can_data *data; 254 const struct mpc5xxx_can_data *data;
@@ -323,7 +323,7 @@ exit_unmap_mem:
323 return err; 323 return err;
324} 324}
325 325
326static int __devexit mpc5xxx_can_remove(struct platform_device *ofdev) 326static int mpc5xxx_can_remove(struct platform_device *ofdev)
327{ 327{
328 struct net_device *dev = dev_get_drvdata(&ofdev->dev); 328 struct net_device *dev = dev_get_drvdata(&ofdev->dev);
329 struct mscan_priv *priv = netdev_priv(dev); 329 struct mscan_priv *priv = netdev_priv(dev);
@@ -380,17 +380,17 @@ static int mpc5xxx_can_resume(struct platform_device *ofdev)
380} 380}
381#endif 381#endif
382 382
383static const struct mpc5xxx_can_data __devinitconst mpc5200_can_data = { 383static const struct mpc5xxx_can_data mpc5200_can_data = {
384 .type = MSCAN_TYPE_MPC5200, 384 .type = MSCAN_TYPE_MPC5200,
385 .get_clock = mpc52xx_can_get_clock, 385 .get_clock = mpc52xx_can_get_clock,
386}; 386};
387 387
388static const struct mpc5xxx_can_data __devinitconst mpc5121_can_data = { 388static const struct mpc5xxx_can_data mpc5121_can_data = {
389 .type = MSCAN_TYPE_MPC5121, 389 .type = MSCAN_TYPE_MPC5121,
390 .get_clock = mpc512x_can_get_clock, 390 .get_clock = mpc512x_can_get_clock,
391}; 391};
392 392
393static const struct of_device_id __devinitconst mpc5xxx_can_table[] = { 393static const struct of_device_id mpc5xxx_can_table[] = {
394 { .compatible = "fsl,mpc5200-mscan", .data = &mpc5200_can_data, }, 394 { .compatible = "fsl,mpc5200-mscan", .data = &mpc5200_can_data, },
395 /* Note that only MPC5121 Rev. 2 (and later) is supported */ 395 /* Note that only MPC5121 Rev. 2 (and later) is supported */
396 { .compatible = "fsl,mpc5121-mscan", .data = &mpc5121_can_data, }, 396 { .compatible = "fsl,mpc5121-mscan", .data = &mpc5121_can_data, },
@@ -405,7 +405,7 @@ static struct platform_driver mpc5xxx_can_driver = {
405 .of_match_table = mpc5xxx_can_table, 405 .of_match_table = mpc5xxx_can_table,
406 }, 406 },
407 .probe = mpc5xxx_can_probe, 407 .probe = mpc5xxx_can_probe,
408 .remove = __devexit_p(mpc5xxx_can_remove), 408 .remove = mpc5xxx_can_remove,
409#ifdef CONFIG_PM 409#ifdef CONFIG_PM
410 .suspend = mpc5xxx_can_suspend, 410 .suspend = mpc5xxx_can_suspend,
411 .resume = mpc5xxx_can_resume, 411 .resume = mpc5xxx_can_resume,
diff --git a/drivers/net/can/pch_can.c b/drivers/net/can/pch_can.c
index 48b3d62b34cb..7d1748575b1f 100644
--- a/drivers/net/can/pch_can.c
+++ b/drivers/net/can/pch_can.c
@@ -954,7 +954,7 @@ static const struct net_device_ops pch_can_netdev_ops = {
954 .ndo_start_xmit = pch_xmit, 954 .ndo_start_xmit = pch_xmit,
955}; 955};
956 956
957static void __devexit pch_can_remove(struct pci_dev *pdev) 957static void pch_can_remove(struct pci_dev *pdev)
958{ 958{
959 struct net_device *ndev = pci_get_drvdata(pdev); 959 struct net_device *ndev = pci_get_drvdata(pdev);
960 struct pch_can_priv *priv = netdev_priv(ndev); 960 struct pch_can_priv *priv = netdev_priv(ndev);
@@ -1178,7 +1178,7 @@ static int pch_can_get_berr_counter(const struct net_device *dev,
1178 return 0; 1178 return 0;
1179} 1179}
1180 1180
1181static int __devinit pch_can_probe(struct pci_dev *pdev, 1181static int pch_can_probe(struct pci_dev *pdev,
1182 const struct pci_device_id *id) 1182 const struct pci_device_id *id)
1183{ 1183{
1184 struct net_device *ndev; 1184 struct net_device *ndev;
@@ -1269,7 +1269,7 @@ static struct pci_driver pch_can_pci_driver = {
1269 .name = "pch_can", 1269 .name = "pch_can",
1270 .id_table = pch_pci_tbl, 1270 .id_table = pch_pci_tbl,
1271 .probe = pch_can_probe, 1271 .probe = pch_can_probe,
1272 .remove = __devexit_p(pch_can_remove), 1272 .remove = pch_can_remove,
1273 .suspend = pch_can_suspend, 1273 .suspend = pch_can_suspend,
1274 .resume = pch_can_resume, 1274 .resume = pch_can_resume,
1275}; 1275};
diff --git a/drivers/net/can/sja1000/ems_pci.c b/drivers/net/can/sja1000/ems_pci.c
index 5c6d412bafb5..f232bc8d0872 100644
--- a/drivers/net/can/sja1000/ems_pci.c
+++ b/drivers/net/can/sja1000/ems_pci.c
@@ -220,7 +220,7 @@ static void ems_pci_card_reset(struct ems_pci_card *card)
220 * Probe PCI device for EMS CAN signature and register each available 220 * Probe PCI device for EMS CAN signature and register each available
221 * CAN channel to SJA1000 Socket-CAN subsystem. 221 * CAN channel to SJA1000 Socket-CAN subsystem.
222 */ 222 */
223static int __devinit ems_pci_add_card(struct pci_dev *pdev, 223static int ems_pci_add_card(struct pci_dev *pdev,
224 const struct pci_device_id *ent) 224 const struct pci_device_id *ent)
225{ 225{
226 struct sja1000_priv *priv; 226 struct sja1000_priv *priv;
diff --git a/drivers/net/can/sja1000/ems_pcmcia.c b/drivers/net/can/sja1000/ems_pcmcia.c
index 075a5457a190..46fc313214a2 100644
--- a/drivers/net/can/sja1000/ems_pcmcia.c
+++ b/drivers/net/can/sja1000/ems_pcmcia.c
@@ -166,7 +166,7 @@ static void ems_pcmcia_del_card(struct pcmcia_device *pdev)
166 * Probe PCI device for EMS CAN signature and register each available 166 * Probe PCI device for EMS CAN signature and register each available
167 * CAN channel to SJA1000 Socket-CAN subsystem. 167 * CAN channel to SJA1000 Socket-CAN subsystem.
168 */ 168 */
169static int __devinit ems_pcmcia_add_card(struct pcmcia_device *pdev, 169static int ems_pcmcia_add_card(struct pcmcia_device *pdev,
170 unsigned long base) 170 unsigned long base)
171{ 171{
172 struct sja1000_priv *priv; 172 struct sja1000_priv *priv;
@@ -256,7 +256,7 @@ failure_cleanup:
256/* 256/*
257 * Setup PCMCIA socket and probe for EMS CPC-CARD 257 * Setup PCMCIA socket and probe for EMS CPC-CARD
258 */ 258 */
259static int __devinit ems_pcmcia_probe(struct pcmcia_device *dev) 259static int ems_pcmcia_probe(struct pcmcia_device *dev)
260{ 260{
261 int csval; 261 int csval;
262 262
diff --git a/drivers/net/can/sja1000/kvaser_pci.c b/drivers/net/can/sja1000/kvaser_pci.c
index 23ed6ea4c7c3..4efdaf26eaea 100644
--- a/drivers/net/can/sja1000/kvaser_pci.c
+++ b/drivers/net/can/sja1000/kvaser_pci.c
@@ -290,7 +290,7 @@ failure:
290 return err; 290 return err;
291} 291}
292 292
293static int __devinit kvaser_pci_init_one(struct pci_dev *pdev, 293static int kvaser_pci_init_one(struct pci_dev *pdev,
294 const struct pci_device_id *ent) 294 const struct pci_device_id *ent)
295{ 295{
296 int err; 296 int err;
@@ -379,7 +379,7 @@ failure:
379 379
380} 380}
381 381
382static void __devexit kvaser_pci_remove_one(struct pci_dev *pdev) 382static void kvaser_pci_remove_one(struct pci_dev *pdev)
383{ 383{
384 struct net_device *dev = pci_get_drvdata(pdev); 384 struct net_device *dev = pci_get_drvdata(pdev);
385 385
@@ -394,7 +394,7 @@ static struct pci_driver kvaser_pci_driver = {
394 .name = DRV_NAME, 394 .name = DRV_NAME,
395 .id_table = kvaser_pci_tbl, 395 .id_table = kvaser_pci_tbl,
396 .probe = kvaser_pci_init_one, 396 .probe = kvaser_pci_init_one,
397 .remove = __devexit_p(kvaser_pci_remove_one), 397 .remove = kvaser_pci_remove_one,
398}; 398};
399 399
400module_pci_driver(kvaser_pci_driver); 400module_pci_driver(kvaser_pci_driver);
diff --git a/drivers/net/can/sja1000/peak_pci.c b/drivers/net/can/sja1000/peak_pci.c
index 6525dbcca4e3..3faeb3d84362 100644
--- a/drivers/net/can/sja1000/peak_pci.c
+++ b/drivers/net/can/sja1000/peak_pci.c
@@ -551,7 +551,7 @@ static void peak_pci_post_irq(const struct sja1000_priv *priv)
551 writew(chan->icr_mask, chan->cfg_base + PITA_ICR); 551 writew(chan->icr_mask, chan->cfg_base + PITA_ICR);
552} 552}
553 553
554static int __devinit peak_pci_probe(struct pci_dev *pdev, 554static int peak_pci_probe(struct pci_dev *pdev,
555 const struct pci_device_id *ent) 555 const struct pci_device_id *ent)
556{ 556{
557 struct sja1000_priv *priv; 557 struct sja1000_priv *priv;
@@ -717,7 +717,7 @@ failure_disable_pci:
717 return err; 717 return err;
718} 718}
719 719
720static void __devexit peak_pci_remove(struct pci_dev *pdev) 720static void peak_pci_remove(struct pci_dev *pdev)
721{ 721{
722 struct net_device *dev = pci_get_drvdata(pdev); /* Last device */ 722 struct net_device *dev = pci_get_drvdata(pdev); /* Last device */
723 struct sja1000_priv *priv = netdev_priv(dev); 723 struct sja1000_priv *priv = netdev_priv(dev);
@@ -757,7 +757,7 @@ static struct pci_driver peak_pci_driver = {
757 .name = DRV_NAME, 757 .name = DRV_NAME,
758 .id_table = peak_pci_tbl, 758 .id_table = peak_pci_tbl,
759 .probe = peak_pci_probe, 759 .probe = peak_pci_probe,
760 .remove = __devexit_p(peak_pci_remove), 760 .remove = peak_pci_remove,
761}; 761};
762 762
763module_pci_driver(peak_pci_driver); 763module_pci_driver(peak_pci_driver);
diff --git a/drivers/net/can/sja1000/peak_pcmcia.c b/drivers/net/can/sja1000/peak_pcmcia.c
index 272a85f32b14..f1175142b0a0 100644
--- a/drivers/net/can/sja1000/peak_pcmcia.c
+++ b/drivers/net/can/sja1000/peak_pcmcia.c
@@ -632,7 +632,7 @@ static void pcan_free(struct pcmcia_device *pdev)
632/* 632/*
633 * setup PCMCIA socket and probe for PEAK-System PC-CARD 633 * setup PCMCIA socket and probe for PEAK-System PC-CARD
634 */ 634 */
635static int __devinit pcan_probe(struct pcmcia_device *pdev) 635static int pcan_probe(struct pcmcia_device *pdev)
636{ 636{
637 struct pcan_pccard *card; 637 struct pcan_pccard *card;
638 int err; 638 int err;
diff --git a/drivers/net/can/sja1000/plx_pci.c b/drivers/net/can/sja1000/plx_pci.c
index dc04407aa217..8b233f8c95f2 100644
--- a/drivers/net/can/sja1000/plx_pci.c
+++ b/drivers/net/can/sja1000/plx_pci.c
@@ -162,7 +162,7 @@ struct plx_pci_card_info {
162 void (*reset_func)(struct pci_dev *pdev); 162 void (*reset_func)(struct pci_dev *pdev);
163}; 163};
164 164
165static struct plx_pci_card_info plx_pci_card_info_adlink __devinitdata = { 165static struct plx_pci_card_info plx_pci_card_info_adlink = {
166 "Adlink PCI-7841/cPCI-7841", 2, 166 "Adlink PCI-7841/cPCI-7841", 2,
167 PLX_PCI_CAN_CLOCK, PLX_PCI_OCR, PLX_PCI_CDR, 167 PLX_PCI_CAN_CLOCK, PLX_PCI_OCR, PLX_PCI_CDR,
168 {1, 0x00, 0x00}, { {2, 0x00, 0x80}, {2, 0x80, 0x80} }, 168 {1, 0x00, 0x00}, { {2, 0x00, 0x80}, {2, 0x80, 0x80} },
@@ -170,7 +170,7 @@ static struct plx_pci_card_info plx_pci_card_info_adlink __devinitdata = {
170 /* based on PLX9052 */ 170 /* based on PLX9052 */
171}; 171};
172 172
173static struct plx_pci_card_info plx_pci_card_info_adlink_se __devinitdata = { 173static struct plx_pci_card_info plx_pci_card_info_adlink_se = {
174 "Adlink PCI-7841/cPCI-7841 SE", 2, 174 "Adlink PCI-7841/cPCI-7841 SE", 2,
175 PLX_PCI_CAN_CLOCK, PLX_PCI_OCR, PLX_PCI_CDR, 175 PLX_PCI_CAN_CLOCK, PLX_PCI_OCR, PLX_PCI_CDR,
176 {0, 0x00, 0x00}, { {2, 0x00, 0x80}, {2, 0x80, 0x80} }, 176 {0, 0x00, 0x00}, { {2, 0x00, 0x80}, {2, 0x80, 0x80} },
@@ -178,7 +178,7 @@ static struct plx_pci_card_info plx_pci_card_info_adlink_se __devinitdata = {
178 /* based on PLX9052 */ 178 /* based on PLX9052 */
179}; 179};
180 180
181static struct plx_pci_card_info plx_pci_card_info_esd200 __devinitdata = { 181static struct plx_pci_card_info plx_pci_card_info_esd200 = {
182 "esd CAN-PCI/CPCI/PCI104/200", 2, 182 "esd CAN-PCI/CPCI/PCI104/200", 2,
183 PLX_PCI_CAN_CLOCK, PLX_PCI_OCR, PLX_PCI_CDR, 183 PLX_PCI_CAN_CLOCK, PLX_PCI_OCR, PLX_PCI_CDR,
184 {0, 0x00, 0x00}, { {2, 0x00, 0x80}, {2, 0x100, 0x80} }, 184 {0, 0x00, 0x00}, { {2, 0x00, 0x80}, {2, 0x100, 0x80} },
@@ -186,7 +186,7 @@ static struct plx_pci_card_info plx_pci_card_info_esd200 __devinitdata = {
186 /* based on PLX9030/9050 */ 186 /* based on PLX9030/9050 */
187}; 187};
188 188
189static struct plx_pci_card_info plx_pci_card_info_esd266 __devinitdata = { 189static struct plx_pci_card_info plx_pci_card_info_esd266 = {
190 "esd CAN-PCI/PMC/266", 2, 190 "esd CAN-PCI/PMC/266", 2,
191 PLX_PCI_CAN_CLOCK, PLX_PCI_OCR, PLX_PCI_CDR, 191 PLX_PCI_CAN_CLOCK, PLX_PCI_OCR, PLX_PCI_CDR,
192 {0, 0x00, 0x00}, { {2, 0x00, 0x80}, {2, 0x100, 0x80} }, 192 {0, 0x00, 0x00}, { {2, 0x00, 0x80}, {2, 0x100, 0x80} },
@@ -194,7 +194,7 @@ static struct plx_pci_card_info plx_pci_card_info_esd266 __devinitdata = {
194 /* based on PLX9056 */ 194 /* based on PLX9056 */
195}; 195};
196 196
197static struct plx_pci_card_info plx_pci_card_info_esd2000 __devinitdata = { 197static struct plx_pci_card_info plx_pci_card_info_esd2000 = {
198 "esd CAN-PCIe/2000", 2, 198 "esd CAN-PCIe/2000", 2,
199 PLX_PCI_CAN_CLOCK, PLX_PCI_OCR, PLX_PCI_CDR, 199 PLX_PCI_CAN_CLOCK, PLX_PCI_OCR, PLX_PCI_CDR,
200 {0, 0x00, 0x00}, { {2, 0x00, 0x80}, {2, 0x100, 0x80} }, 200 {0, 0x00, 0x00}, { {2, 0x00, 0x80}, {2, 0x100, 0x80} },
@@ -202,7 +202,7 @@ static struct plx_pci_card_info plx_pci_card_info_esd2000 __devinitdata = {
202 /* based on PEX8311 */ 202 /* based on PEX8311 */
203}; 203};
204 204
205static struct plx_pci_card_info plx_pci_card_info_ixxat __devinitdata = { 205static struct plx_pci_card_info plx_pci_card_info_ixxat = {
206 "IXXAT PC-I 04/PCI", 2, 206 "IXXAT PC-I 04/PCI", 2,
207 PLX_PCI_CAN_CLOCK, PLX_PCI_OCR, PLX_PCI_CDR, 207 PLX_PCI_CAN_CLOCK, PLX_PCI_OCR, PLX_PCI_CDR,
208 {0, 0x00, 0x00}, { {2, 0x00, 0x80}, {2, 0x200, 0x80} }, 208 {0, 0x00, 0x00}, { {2, 0x00, 0x80}, {2, 0x200, 0x80} },
@@ -210,7 +210,7 @@ static struct plx_pci_card_info plx_pci_card_info_ixxat __devinitdata = {
210 /* based on PLX9050 */ 210 /* based on PLX9050 */
211}; 211};
212 212
213static struct plx_pci_card_info plx_pci_card_info_marathon __devinitdata = { 213static struct plx_pci_card_info plx_pci_card_info_marathon = {
214 "Marathon CAN-bus-PCI", 2, 214 "Marathon CAN-bus-PCI", 2,
215 PLX_PCI_CAN_CLOCK, PLX_PCI_OCR, PLX_PCI_CDR, 215 PLX_PCI_CAN_CLOCK, PLX_PCI_OCR, PLX_PCI_CDR,
216 {0, 0x00, 0x00}, { {2, 0x00, 0x00}, {4, 0x00, 0x00} }, 216 {0, 0x00, 0x00}, { {2, 0x00, 0x00}, {4, 0x00, 0x00} },
@@ -218,7 +218,7 @@ static struct plx_pci_card_info plx_pci_card_info_marathon __devinitdata = {
218 /* based on PLX9052 */ 218 /* based on PLX9052 */
219}; 219};
220 220
221static struct plx_pci_card_info plx_pci_card_info_tews __devinitdata = { 221static struct plx_pci_card_info plx_pci_card_info_tews = {
222 "TEWS TECHNOLOGIES TPMC810", 2, 222 "TEWS TECHNOLOGIES TPMC810", 2,
223 PLX_PCI_CAN_CLOCK, PLX_PCI_OCR, PLX_PCI_CDR, 223 PLX_PCI_CAN_CLOCK, PLX_PCI_OCR, PLX_PCI_CDR,
224 {0, 0x00, 0x00}, { {2, 0x000, 0x80}, {2, 0x100, 0x80} }, 224 {0, 0x00, 0x00}, { {2, 0x000, 0x80}, {2, 0x100, 0x80} },
@@ -226,7 +226,7 @@ static struct plx_pci_card_info plx_pci_card_info_tews __devinitdata = {
226 /* based on PLX9030 */ 226 /* based on PLX9030 */
227}; 227};
228 228
229static struct plx_pci_card_info plx_pci_card_info_cti __devinitdata = { 229static struct plx_pci_card_info plx_pci_card_info_cti = {
230 "Connect Tech Inc. CANpro/104-Plus Opto (CRG001)", 2, 230 "Connect Tech Inc. CANpro/104-Plus Opto (CRG001)", 2,
231 PLX_PCI_CAN_CLOCK, PLX_PCI_OCR, PLX_PCI_CDR, 231 PLX_PCI_CAN_CLOCK, PLX_PCI_OCR, PLX_PCI_CDR,
232 {0, 0x00, 0x00}, { {2, 0x000, 0x80}, {2, 0x100, 0x80} }, 232 {0, 0x00, 0x00}, { {2, 0x000, 0x80}, {2, 0x100, 0x80} },
@@ -484,7 +484,7 @@ static void plx_pci_del_card(struct pci_dev *pdev)
484 * Probe PLX90xx based device for the SJA1000 chips and register each 484 * Probe PLX90xx based device for the SJA1000 chips and register each
485 * available CAN channel to SJA1000 Socket-CAN subsystem. 485 * available CAN channel to SJA1000 Socket-CAN subsystem.
486 */ 486 */
487static int __devinit plx_pci_add_card(struct pci_dev *pdev, 487static int plx_pci_add_card(struct pci_dev *pdev,
488 const struct pci_device_id *ent) 488 const struct pci_device_id *ent)
489{ 489{
490 struct sja1000_priv *priv; 490 struct sja1000_priv *priv;
diff --git a/drivers/net/can/sja1000/sja1000_isa.c b/drivers/net/can/sja1000/sja1000_isa.c
index 90c5c2dfd2fd..5c8da4661489 100644
--- a/drivers/net/can/sja1000/sja1000_isa.c
+++ b/drivers/net/can/sja1000/sja1000_isa.c
@@ -42,11 +42,11 @@ MODULE_LICENSE("GPL v2");
42 42
43static unsigned long port[MAXDEV]; 43static unsigned long port[MAXDEV];
44static unsigned long mem[MAXDEV]; 44static unsigned long mem[MAXDEV];
45static int __devinitdata irq[MAXDEV]; 45static int irq[MAXDEV];
46static int __devinitdata clk[MAXDEV]; 46static int clk[MAXDEV];
47static unsigned char __devinitdata cdr[MAXDEV] = {[0 ... (MAXDEV - 1)] = 0xff}; 47static unsigned char cdr[MAXDEV] = {[0 ... (MAXDEV - 1)] = 0xff};
48static unsigned char __devinitdata ocr[MAXDEV] = {[0 ... (MAXDEV - 1)] = 0xff}; 48static unsigned char ocr[MAXDEV] = {[0 ... (MAXDEV - 1)] = 0xff};
49static int __devinitdata indirect[MAXDEV] = {[0 ... (MAXDEV - 1)] = -1}; 49static int indirect[MAXDEV] = {[0 ... (MAXDEV - 1)] = -1};
50 50
51module_param_array(port, ulong, NULL, S_IRUGO); 51module_param_array(port, ulong, NULL, S_IRUGO);
52MODULE_PARM_DESC(port, "I/O port number"); 52MODULE_PARM_DESC(port, "I/O port number");
@@ -117,7 +117,7 @@ static void sja1000_isa_port_write_reg_indirect(const struct sja1000_priv *priv,
117 outb(val, base + 1); 117 outb(val, base + 1);
118} 118}
119 119
120static int __devinit sja1000_isa_probe(struct platform_device *pdev) 120static int sja1000_isa_probe(struct platform_device *pdev)
121{ 121{
122 struct net_device *dev; 122 struct net_device *dev;
123 struct sja1000_priv *priv; 123 struct sja1000_priv *priv;
@@ -223,7 +223,7 @@ static int __devinit sja1000_isa_probe(struct platform_device *pdev)
223 return err; 223 return err;
224} 224}
225 225
226static int __devexit sja1000_isa_remove(struct platform_device *pdev) 226static int sja1000_isa_remove(struct platform_device *pdev)
227{ 227{
228 struct net_device *dev = dev_get_drvdata(&pdev->dev); 228 struct net_device *dev = dev_get_drvdata(&pdev->dev);
229 struct sja1000_priv *priv = netdev_priv(dev); 229 struct sja1000_priv *priv = netdev_priv(dev);
@@ -248,7 +248,7 @@ static int __devexit sja1000_isa_remove(struct platform_device *pdev)
248 248
249static struct platform_driver sja1000_isa_driver = { 249static struct platform_driver sja1000_isa_driver = {
250 .probe = sja1000_isa_probe, 250 .probe = sja1000_isa_probe,
251 .remove = __devexit_p(sja1000_isa_remove), 251 .remove = sja1000_isa_remove,
252 .driver = { 252 .driver = {
253 .name = DRV_NAME, 253 .name = DRV_NAME,
254 .owner = THIS_MODULE, 254 .owner = THIS_MODULE,
diff --git a/drivers/net/can/sja1000/sja1000_of_platform.c b/drivers/net/can/sja1000/sja1000_of_platform.c
index e45258d4369b..0f5917000aa2 100644
--- a/drivers/net/can/sja1000/sja1000_of_platform.c
+++ b/drivers/net/can/sja1000/sja1000_of_platform.c
@@ -70,7 +70,7 @@ static void sja1000_ofp_write_reg(const struct sja1000_priv *priv,
70 iowrite8(val, priv->reg_base + reg); 70 iowrite8(val, priv->reg_base + reg);
71} 71}
72 72
73static int __devexit sja1000_ofp_remove(struct platform_device *ofdev) 73static int sja1000_ofp_remove(struct platform_device *ofdev)
74{ 74{
75 struct net_device *dev = dev_get_drvdata(&ofdev->dev); 75 struct net_device *dev = dev_get_drvdata(&ofdev->dev);
76 struct sja1000_priv *priv = netdev_priv(dev); 76 struct sja1000_priv *priv = netdev_priv(dev);
@@ -90,7 +90,7 @@ static int __devexit sja1000_ofp_remove(struct platform_device *ofdev)
90 return 0; 90 return 0;
91} 91}
92 92
93static int __devinit sja1000_ofp_probe(struct platform_device *ofdev) 93static int sja1000_ofp_probe(struct platform_device *ofdev)
94{ 94{
95 struct device_node *np = ofdev->dev.of_node; 95 struct device_node *np = ofdev->dev.of_node;
96 struct net_device *dev; 96 struct net_device *dev;
@@ -206,7 +206,7 @@ exit_release_mem:
206 return err; 206 return err;
207} 207}
208 208
209static struct of_device_id __devinitdata sja1000_ofp_table[] = { 209static struct of_device_id sja1000_ofp_table[] = {
210 {.compatible = "nxp,sja1000"}, 210 {.compatible = "nxp,sja1000"},
211 {}, 211 {},
212}; 212};
@@ -219,7 +219,7 @@ static struct platform_driver sja1000_ofp_driver = {
219 .of_match_table = sja1000_ofp_table, 219 .of_match_table = sja1000_ofp_table,
220 }, 220 },
221 .probe = sja1000_ofp_probe, 221 .probe = sja1000_ofp_probe,
222 .remove = __devexit_p(sja1000_ofp_remove), 222 .remove = sja1000_ofp_remove,
223}; 223};
224 224
225module_platform_driver(sja1000_ofp_driver); 225module_platform_driver(sja1000_ofp_driver);
diff --git a/drivers/net/can/sja1000/tscan1.c b/drivers/net/can/sja1000/tscan1.c
index 9756099a883a..76513dd780c7 100644
--- a/drivers/net/can/sja1000/tscan1.c
+++ b/drivers/net/can/sja1000/tscan1.c
@@ -71,7 +71,7 @@ MODULE_LICENSE("GPL");
71#define TSCAN1_SJA1000_XTAL 16000000 71#define TSCAN1_SJA1000_XTAL 16000000
72 72
73/* SJA1000 IO base addresses */ 73/* SJA1000 IO base addresses */
74static const unsigned short tscan1_sja1000_addresses[] __devinitconst = { 74static const unsigned short tscan1_sja1000_addresses[] = {
75 0x100, 0x120, 0x180, 0x1a0, 0x200, 0x240, 0x280, 0x320 75 0x100, 0x120, 0x180, 0x1a0, 0x200, 0x240, 0x280, 0x320
76}; 76};
77 77
@@ -88,7 +88,7 @@ static void tscan1_write(const struct sja1000_priv *priv, int reg, u8 val)
88} 88}
89 89
90/* Probe for a TS-CAN1 board with JP2:JP1 jumper setting ID */ 90/* Probe for a TS-CAN1 board with JP2:JP1 jumper setting ID */
91static int __devinit tscan1_probe(struct device *dev, unsigned id) 91static int tscan1_probe(struct device *dev, unsigned id)
92{ 92{
93 struct net_device *netdev; 93 struct net_device *netdev;
94 struct sja1000_priv *priv; 94 struct sja1000_priv *priv;
@@ -171,7 +171,7 @@ static int __devinit tscan1_probe(struct device *dev, unsigned id)
171 return -ENXIO; 171 return -ENXIO;
172} 172}
173 173
174static int __devexit tscan1_remove(struct device *dev, unsigned id /*unused*/) 174static int tscan1_remove(struct device *dev, unsigned id /*unused*/)
175{ 175{
176 struct net_device *netdev; 176 struct net_device *netdev;
177 struct sja1000_priv *priv; 177 struct sja1000_priv *priv;
@@ -197,7 +197,7 @@ static int __devexit tscan1_remove(struct device *dev, unsigned id /*unused*/)
197 197
198static struct isa_driver tscan1_isa_driver = { 198static struct isa_driver tscan1_isa_driver = {
199 .probe = tscan1_probe, 199 .probe = tscan1_probe,
200 .remove = __devexit_p(tscan1_remove), 200 .remove = tscan1_remove,
201 .driver = { 201 .driver = {
202 .name = "tscan1", 202 .name = "tscan1",
203 }, 203 },
diff --git a/drivers/net/can/softing/softing_cs.c b/drivers/net/can/softing/softing_cs.c
index c0e1b1eb87a9..ce18ba52e4b9 100644
--- a/drivers/net/can/softing/softing_cs.c
+++ b/drivers/net/can/softing/softing_cs.c
@@ -159,7 +159,7 @@ MODULE_FIRMWARE(fw_dir "bcard2.bin");
159MODULE_FIRMWARE(fw_dir "ldcard2.bin"); 159MODULE_FIRMWARE(fw_dir "ldcard2.bin");
160MODULE_FIRMWARE(fw_dir "cancrd2.bin"); 160MODULE_FIRMWARE(fw_dir "cancrd2.bin");
161 161
162static __devinit const struct softing_platform_data 162static const struct softing_platform_data
163*softingcs_find_platform_data(unsigned int manf, unsigned int prod) 163*softingcs_find_platform_data(unsigned int manf, unsigned int prod)
164{ 164{
165 const struct softing_platform_data *lp; 165 const struct softing_platform_data *lp;
@@ -193,7 +193,7 @@ static int softingcs_enable_irq(struct platform_device *pdev, int v)
193/* 193/*
194 * pcmcia check 194 * pcmcia check
195 */ 195 */
196static __devinit int softingcs_probe_config(struct pcmcia_device *pcmcia, 196static int softingcs_probe_config(struct pcmcia_device *pcmcia,
197 void *priv_data) 197 void *priv_data)
198{ 198{
199 struct softing_platform_data *pdat = priv_data; 199 struct softing_platform_data *pdat = priv_data;
@@ -215,7 +215,7 @@ static __devinit int softingcs_probe_config(struct pcmcia_device *pcmcia,
215 return pcmcia_request_window(pcmcia, pres, memspeed); 215 return pcmcia_request_window(pcmcia, pres, memspeed);
216} 216}
217 217
218static __devexit void softingcs_remove(struct pcmcia_device *pcmcia) 218static void softingcs_remove(struct pcmcia_device *pcmcia)
219{ 219{
220 struct platform_device *pdev = pcmcia->priv; 220 struct platform_device *pdev = pcmcia->priv;
221 221
@@ -235,7 +235,7 @@ static void softingcs_pdev_release(struct device *dev)
235 kfree(pdev); 235 kfree(pdev);
236} 236}
237 237
238static __devinit int softingcs_probe(struct pcmcia_device *pcmcia) 238static int softingcs_probe(struct pcmcia_device *pcmcia)
239{ 239{
240 int ret; 240 int ret;
241 struct platform_device *pdev; 241 struct platform_device *pdev;
@@ -338,7 +338,7 @@ static struct pcmcia_driver softingcs_driver = {
338 .name = "softingcs", 338 .name = "softingcs",
339 .id_table = softingcs_ids, 339 .id_table = softingcs_ids,
340 .probe = softingcs_probe, 340 .probe = softingcs_probe,
341 .remove = __devexit_p(softingcs_remove), 341 .remove = softingcs_remove,
342}; 342};
343 343
344static int __init softingcs_start(void) 344static int __init softingcs_start(void)
diff --git a/drivers/net/can/softing/softing_main.c b/drivers/net/can/softing/softing_main.c
index f2a221e7b968..50b1e0f21f1c 100644
--- a/drivers/net/can/softing/softing_main.c
+++ b/drivers/net/can/softing/softing_main.c
@@ -478,7 +478,7 @@ static void softing_card_shutdown(struct softing *card)
478 mutex_unlock(&card->fw.lock); 478 mutex_unlock(&card->fw.lock);
479} 479}
480 480
481static __devinit int softing_card_boot(struct softing *card) 481static int softing_card_boot(struct softing *card)
482{ 482{
483 int ret, j; 483 int ret, j;
484 static const uint8_t stream[] = { 484 static const uint8_t stream[] = {
@@ -645,7 +645,7 @@ static const struct can_bittiming_const softing_btr_const = {
645}; 645};
646 646
647 647
648static __devinit struct net_device *softing_netdev_create(struct softing *card, 648static struct net_device *softing_netdev_create(struct softing *card,
649 uint16_t chip_id) 649 uint16_t chip_id)
650{ 650{
651 struct net_device *netdev; 651 struct net_device *netdev;
@@ -676,7 +676,7 @@ static __devinit struct net_device *softing_netdev_create(struct softing *card,
676 return netdev; 676 return netdev;
677} 677}
678 678
679static __devinit int softing_netdev_register(struct net_device *netdev) 679static int softing_netdev_register(struct net_device *netdev)
680{ 680{
681 int ret; 681 int ret;
682 682
@@ -745,7 +745,7 @@ static const struct attribute_group softing_pdev_group = {
745/* 745/*
746 * platform driver 746 * platform driver
747 */ 747 */
748static __devexit int softing_pdev_remove(struct platform_device *pdev) 748static int softing_pdev_remove(struct platform_device *pdev)
749{ 749{
750 struct softing *card = platform_get_drvdata(pdev); 750 struct softing *card = platform_get_drvdata(pdev);
751 int j; 751 int j;
@@ -766,7 +766,7 @@ static __devexit int softing_pdev_remove(struct platform_device *pdev)
766 return 0; 766 return 0;
767} 767}
768 768
769static __devinit int softing_pdev_probe(struct platform_device *pdev) 769static int softing_pdev_probe(struct platform_device *pdev)
770{ 770{
771 const struct softing_platform_data *pdat = pdev->dev.platform_data; 771 const struct softing_platform_data *pdat = pdev->dev.platform_data;
772 struct softing *card; 772 struct softing *card;
@@ -871,7 +871,7 @@ static struct platform_driver softing_driver = {
871 .owner = THIS_MODULE, 871 .owner = THIS_MODULE,
872 }, 872 },
873 .probe = softing_pdev_probe, 873 .probe = softing_pdev_probe,
874 .remove = __devexit_p(softing_pdev_remove), 874 .remove = softing_pdev_remove,
875}; 875};
876 876
877module_platform_driver(softing_driver); 877module_platform_driver(softing_driver);
diff --git a/drivers/net/can/ti_hecc.c b/drivers/net/can/ti_hecc.c
index 1267b366dcfe..f898c6363729 100644
--- a/drivers/net/can/ti_hecc.c
+++ b/drivers/net/can/ti_hecc.c
@@ -978,7 +978,7 @@ probe_exit:
978 return err; 978 return err;
979} 979}
980 980
981static int __devexit ti_hecc_remove(struct platform_device *pdev) 981static int ti_hecc_remove(struct platform_device *pdev)
982{ 982{
983 struct resource *res; 983 struct resource *res;
984 struct net_device *ndev = platform_get_drvdata(pdev); 984 struct net_device *ndev = platform_get_drvdata(pdev);
@@ -1045,7 +1045,7 @@ static struct platform_driver ti_hecc_driver = {
1045 .owner = THIS_MODULE, 1045 .owner = THIS_MODULE,
1046 }, 1046 },
1047 .probe = ti_hecc_probe, 1047 .probe = ti_hecc_probe,
1048 .remove = __devexit_p(ti_hecc_remove), 1048 .remove = ti_hecc_remove,
1049 .suspend = ti_hecc_suspend, 1049 .suspend = ti_hecc_suspend,
1050 .resume = ti_hecc_resume, 1050 .resume = ti_hecc_resume,
1051}; 1051};