aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2012-12-03 15:35:28 -0500
committerDavid S. Miller <davem@davemloft.net>2012-12-03 15:35:28 -0500
commit682d7978aee072f411fc747d32954a8371dd7b1b (patch)
treeeeda0abd33caeb14d0adbc5ffd2a9a8cbb4b2ac8 /drivers/net/ethernet
parenta5a81f0b9025867efb999d14a8dfc1907c5a4c3b (diff)
parent9f9a12f8ca79839c948464a37c5b557808278708 (diff)
Merge tag 'dev_removal' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/net-next
Networking: Remove __dev* markings from the networking drivers This is a series of patches that remove the dev* attributes for all networking drivers, with the exception of wireless drivers, those are in a different branch. Use of __devinit, __devexit_p, __devinitdata, __devinitconst, and __devexit are no longer needed since CONFIG_HOTPLUG is being removed as an option. Note, there are some devinit compiler section mismatch warnings due to this series, but they are fixed up when merged with my driver-next branch, which fixes the PCI device id warnings, and removes the modpost detection, as it's no longer needed. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r--drivers/net/ethernet/3com/3c509.c24
-rw-r--r--drivers/net/ethernet/3com/3c59x.c16
-rw-r--r--drivers/net/ethernet/3com/typhoon.c10
-rw-r--r--drivers/net/ethernet/8390/etherh.c8
-rw-r--r--drivers/net/ethernet/8390/hydra.c16
-rw-r--r--drivers/net/ethernet/8390/ne2k-pci.c12
-rw-r--r--drivers/net/ethernet/8390/ne3210.c4
-rw-r--r--drivers/net/ethernet/8390/zorro8390.c12
-rw-r--r--drivers/net/ethernet/adaptec/starfire.c10
-rw-r--r--drivers/net/ethernet/adi/bfin_mac.c12
-rw-r--r--drivers/net/ethernet/aeroflex/greth.c6
-rw-r--r--drivers/net/ethernet/alteon/acenic.c26
-rw-r--r--drivers/net/ethernet/amd/a2065.c12
-rw-r--r--drivers/net/ethernet/amd/am79c961a.c2
-rw-r--r--drivers/net/ethernet/amd/amd8111e.c8
-rw-r--r--drivers/net/ethernet/amd/ariadne.c8
-rw-r--r--drivers/net/ethernet/amd/au1000_eth.c6
-rw-r--r--drivers/net/ethernet/amd/declance.c8
-rw-r--r--drivers/net/ethernet/amd/depca.c10
-rw-r--r--drivers/net/ethernet/amd/hplance.c14
-rw-r--r--drivers/net/ethernet/amd/pcnet32.c10
-rw-r--r--drivers/net/ethernet/amd/sunlance.c8
-rw-r--r--drivers/net/ethernet/apple/bmac.c4
-rw-r--r--drivers/net/ethernet/apple/mace.c4
-rw-r--r--drivers/net/ethernet/apple/macmace.c6
-rw-r--r--drivers/net/ethernet/atheros/atl1c/atl1c_main.c14
-rw-r--r--drivers/net/ethernet/atheros/atl1e/atl1e_main.c10
-rw-r--r--drivers/net/ethernet/atheros/atl1e/atl1e_param.c7
-rw-r--r--drivers/net/ethernet/atheros/atlx/atl1.c14
-rw-r--r--drivers/net/ethernet/atheros/atlx/atl2.c16
-rw-r--r--drivers/net/ethernet/broadcom/b44.c8
-rw-r--r--drivers/net/ethernet/broadcom/bcm63xx_enet.c12
-rw-r--r--drivers/net/ethernet/broadcom/bnx2.c20
-rw-r--r--drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c2
-rw-r--r--drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h2
-rw-r--r--drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c66
-rw-r--r--drivers/net/ethernet/broadcom/cnic.c2
-rw-r--r--drivers/net/ethernet/broadcom/sb1250-mac.c2
-rw-r--r--drivers/net/ethernet/broadcom/tg3.c95
-rw-r--r--drivers/net/ethernet/brocade/bna/bnad.c6
-rw-r--r--drivers/net/ethernet/cadence/at91_ether.c4
-rw-r--r--drivers/net/ethernet/cadence/macb.c8
-rw-r--r--drivers/net/ethernet/chelsio/cxgb/cxgb2.c6
-rw-r--r--drivers/net/ethernet/chelsio/cxgb/sge.c2
-rw-r--r--drivers/net/ethernet/chelsio/cxgb/subr.c8
-rw-r--r--drivers/net/ethernet/chelsio/cxgb/tp.c2
-rw-r--r--drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c12
-rw-r--r--drivers/net/ethernet/chelsio/cxgb3/cxgb3_offload.c4
-rw-r--r--drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c22
-rw-r--r--drivers/net/ethernet/chelsio/cxgb4/t4_hw.c12
-rw-r--r--drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c20
-rw-r--r--drivers/net/ethernet/chelsio/cxgb4vf/t4vf_common.h4
-rw-r--r--drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c6
-rw-r--r--drivers/net/ethernet/cisco/enic/enic_main.c6
-rw-r--r--drivers/net/ethernet/davicom/dm9000.c6
-rw-r--r--drivers/net/ethernet/dec/tulip/de2104x.c17
-rw-r--r--drivers/net/ethernet/dec/tulip/de4x5.c18
-rw-r--r--drivers/net/ethernet/dec/tulip/dmfe.c12
-rw-r--r--drivers/net/ethernet/dec/tulip/eeprom.c10
-rw-r--r--drivers/net/ethernet/dec/tulip/media.c2
-rw-r--r--drivers/net/ethernet/dec/tulip/tulip_core.c14
-rw-r--r--drivers/net/ethernet/dec/tulip/uli526x.c12
-rw-r--r--drivers/net/ethernet/dec/tulip/winbond-840.c10
-rw-r--r--drivers/net/ethernet/dec/tulip/xircom_cb.c6
-rw-r--r--drivers/net/ethernet/dlink/dl2k.c8
-rw-r--r--drivers/net/ethernet/dlink/sundance.c14
-rw-r--r--drivers/net/ethernet/dnet.c8
-rw-r--r--drivers/net/ethernet/emulex/benet/be_main.c4
-rw-r--r--drivers/net/ethernet/ethoc.c8
-rw-r--r--drivers/net/ethernet/fealnx.c10
-rw-r--r--drivers/net/ethernet/freescale/fec.c10
-rw-r--r--drivers/net/ethernet/freescale/fec_mpc52xx.c2
-rw-r--r--drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c2
-rw-r--r--drivers/net/ethernet/freescale/fs_enet/mii-bitbang.c4
-rw-r--r--drivers/net/ethernet/freescale/fs_enet/mii-fec.c2
-rw-r--r--drivers/net/ethernet/freescale/xgmac_mdio.c4
-rw-r--r--drivers/net/ethernet/hp/hp100.c16
-rw-r--r--drivers/net/ethernet/i825xx/ether1.c14
-rw-r--r--drivers/net/ethernet/i825xx/lasi_82596.c8
-rw-r--r--drivers/net/ethernet/i825xx/lib82596.c2
-rw-r--r--drivers/net/ethernet/i825xx/sni_82596.c8
-rw-r--r--drivers/net/ethernet/ibm/ehea/ehea_main.c10
-rw-r--r--drivers/net/ethernet/ibm/emac/core.c18
-rw-r--r--drivers/net/ethernet/ibm/emac/mal.c6
-rw-r--r--drivers/net/ethernet/ibm/emac/rgmii.c6
-rw-r--r--drivers/net/ethernet/ibm/emac/tah.c6
-rw-r--r--drivers/net/ethernet/ibm/emac/zmii.c6
-rw-r--r--drivers/net/ethernet/ibm/ibmveth.c6
-rw-r--r--drivers/net/ethernet/icplus/ipg.c6
-rw-r--r--drivers/net/ethernet/intel/e100.c6
-rw-r--r--drivers/net/ethernet/intel/e1000/e1000_main.c12
-rw-r--r--drivers/net/ethernet/intel/e1000/e1000_param.c10
-rw-r--r--drivers/net/ethernet/intel/e1000e/netdev.c10
-rw-r--r--drivers/net/ethernet/intel/e1000e/param.c6
-rw-r--r--drivers/net/ethernet/intel/igb/igb_main.c12
-rw-r--r--drivers/net/ethernet/intel/igbvf/netdev.c10
-rw-r--r--drivers/net/ethernet/intel/ixgb/ixgb_main.c10
-rw-r--r--drivers/net/ethernet/intel/ixgb/ixgb_param.c6
-rw-r--r--drivers/net/ethernet/intel/ixgbe/ixgbe_main.c8
-rw-r--r--drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c8
-rw-r--r--drivers/net/ethernet/jme.c6
-rw-r--r--drivers/net/ethernet/lantiq_etop.c4
-rw-r--r--drivers/net/ethernet/marvell/skge.c8
-rw-r--r--drivers/net/ethernet/marvell/sky2.c16
-rw-r--r--drivers/net/ethernet/mellanox/mlx4/main.c6
-rw-r--r--drivers/net/ethernet/micrel/ks8695net.c10
-rw-r--r--drivers/net/ethernet/micrel/ks8842.c6
-rw-r--r--drivers/net/ethernet/micrel/ks8851.c6
-rw-r--r--drivers/net/ethernet/micrel/ks8851_mll.c6
-rw-r--r--drivers/net/ethernet/micrel/ksz884x.c4
-rw-r--r--drivers/net/ethernet/microchip/enc28j60.c6
-rw-r--r--drivers/net/ethernet/natsemi/ibmlana.c4
-rw-r--r--drivers/net/ethernet/natsemi/jazzsonic.c8
-rw-r--r--drivers/net/ethernet/natsemi/macsonic.c18
-rw-r--r--drivers/net/ethernet/natsemi/natsemi.c14
-rw-r--r--drivers/net/ethernet/natsemi/ns83820.c6
-rw-r--r--drivers/net/ethernet/natsemi/xtsonic.c6
-rw-r--r--drivers/net/ethernet/neterion/s2io.c6
-rw-r--r--drivers/net/ethernet/neterion/s2io.h4
-rw-r--r--drivers/net/ethernet/neterion/vxge/vxge-config.c6
-rw-r--r--drivers/net/ethernet/neterion/vxge/vxge-config.h6
-rw-r--r--drivers/net/ethernet/neterion/vxge/vxge-main.c16
-rw-r--r--drivers/net/ethernet/nuvoton/w90p910_ether.c6
-rw-r--r--drivers/net/ethernet/nvidia/forcedeth.c6
-rw-r--r--drivers/net/ethernet/nxp/lpc_eth.c2
-rw-r--r--drivers/net/ethernet/octeon/octeon_mgmt.c6
-rw-r--r--drivers/net/ethernet/packetengines/hamachi.c12
-rw-r--r--drivers/net/ethernet/packetengines/yellowfin.c10
-rw-r--r--drivers/net/ethernet/pasemi/pasemi_mac.c6
-rw-r--r--drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c10
-rw-r--r--drivers/net/ethernet/qlogic/qla3xxx.c6
-rw-r--r--drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c10
-rw-r--r--drivers/net/ethernet/qlogic/qlge/qlge_main.c8
-rw-r--r--drivers/net/ethernet/rdc/r6040.c8
-rw-r--r--drivers/net/ethernet/realtek/8139too.c14
-rw-r--r--drivers/net/ethernet/realtek/r8169.c18
-rw-r--r--drivers/net/ethernet/s6gmac.c6
-rw-r--r--drivers/net/ethernet/seeq/ether3.c16
-rw-r--r--drivers/net/ethernet/seeq/sgiseeq.c2
-rw-r--r--drivers/net/ethernet/sfc/efx.c2
-rw-r--r--drivers/net/ethernet/sgi/ioc3-eth.c10
-rw-r--r--drivers/net/ethernet/sgi/meth.c2
-rw-r--r--drivers/net/ethernet/silan/sc92031.c6
-rw-r--r--drivers/net/ethernet/sis/sis190.c20
-rw-r--r--drivers/net/ethernet/sis/sis900.c27
-rw-r--r--drivers/net/ethernet/smsc/epic100.c12
-rw-r--r--drivers/net/ethernet/smsc/smc911x.c10
-rw-r--r--drivers/net/ethernet/smsc/smc91x.c10
-rw-r--r--drivers/net/ethernet/smsc/smsc911x.c14
-rw-r--r--drivers/net/ethernet/smsc/smsc9420.c6
-rw-r--r--drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c6
-rw-r--r--drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c6
-rw-r--r--drivers/net/ethernet/sun/cassini.c12
-rw-r--r--drivers/net/ethernet/sun/niu.c90
-rw-r--r--drivers/net/ethernet/sun/sunbmac.c8
-rw-r--r--drivers/net/ethernet/sun/sungem.c6
-rw-r--r--drivers/net/ethernet/sun/sunhme.c18
-rw-r--r--drivers/net/ethernet/sun/sunqe.c12
-rw-r--r--drivers/net/ethernet/sun/sunvnet.c14
-rw-r--r--drivers/net/ethernet/tehuti/tehuti.c6
-rw-r--r--drivers/net/ethernet/ti/cpmac.c10
-rw-r--r--drivers/net/ethernet/ti/cpsw.c6
-rw-r--r--drivers/net/ethernet/ti/davinci_emac.c6
-rw-r--r--drivers/net/ethernet/ti/davinci_mdio.c6
-rw-r--r--drivers/net/ethernet/ti/tlan.c8
-rw-r--r--drivers/net/ethernet/toshiba/ps3_gelic_net.c14
-rw-r--r--drivers/net/ethernet/toshiba/ps3_gelic_wireless.c6
-rw-r--r--drivers/net/ethernet/toshiba/spider_net.c6
-rw-r--r--drivers/net/ethernet/toshiba/tc35815.c16
-rw-r--r--drivers/net/ethernet/via/via-rhine.c12
-rw-r--r--drivers/net/ethernet/via/via-velocity.c25
-rw-r--r--drivers/net/ethernet/wiznet/w5100.c8
-rw-r--r--drivers/net/ethernet/wiznet/w5300.c8
-rw-r--r--drivers/net/ethernet/xilinx/ll_temac_main.c8
-rw-r--r--drivers/net/ethernet/xilinx/xilinx_axienet_main.c8
-rw-r--r--drivers/net/ethernet/xilinx/xilinx_emaclite.c8
-rw-r--r--drivers/net/ethernet/xscale/ixp4xx_eth.c4
177 files changed, 912 insertions, 903 deletions
diff --git a/drivers/net/ethernet/3com/3c509.c b/drivers/net/ethernet/3com/3c509.c
index 1a8eef2c3d58..9300185da976 100644
--- a/drivers/net/ethernet/3com/3c509.c
+++ b/drivers/net/ethernet/3com/3c509.c
@@ -92,7 +92,7 @@
92#include <asm/io.h> 92#include <asm/io.h>
93#include <asm/irq.h> 93#include <asm/irq.h>
94 94
95static char version[] __devinitdata = DRV_NAME ".c:" DRV_VERSION " " DRV_RELDATE " becker@scyld.com\n"; 95static char version[] = DRV_NAME ".c:" DRV_VERSION " " DRV_RELDATE " becker@scyld.com\n";
96 96
97#ifdef EL3_DEBUG 97#ifdef EL3_DEBUG
98static int el3_debug = EL3_DEBUG; 98static int el3_debug = EL3_DEBUG;
@@ -184,7 +184,7 @@ static int max_interrupt_work = 10;
184static int nopnp; 184static int nopnp;
185#endif 185#endif
186 186
187static int __devinit el3_common_init(struct net_device *dev); 187static int el3_common_init(struct net_device *dev);
188static void el3_common_remove(struct net_device *dev); 188static void el3_common_remove(struct net_device *dev);
189static ushort id_read_eeprom(int index); 189static ushort id_read_eeprom(int index);
190static ushort read_eeprom(int ioaddr, int index); 190static ushort read_eeprom(int ioaddr, int index);
@@ -270,7 +270,7 @@ static int el3_isa_id_sequence(__be16 *phys_addr)
270 270
271} 271}
272 272
273static void __devinit el3_dev_fill(struct net_device *dev, __be16 *phys_addr, 273static void el3_dev_fill(struct net_device *dev, __be16 *phys_addr,
274 int ioaddr, int irq, int if_port, 274 int ioaddr, int irq, int if_port,
275 enum el3_cardtype type) 275 enum el3_cardtype type)
276{ 276{
@@ -283,7 +283,7 @@ static void __devinit el3_dev_fill(struct net_device *dev, __be16 *phys_addr,
283 lp->type = type; 283 lp->type = type;
284} 284}
285 285
286static int __devinit el3_isa_match(struct device *pdev, 286static int el3_isa_match(struct device *pdev,
287 unsigned int ndev) 287 unsigned int ndev)
288{ 288{
289 struct net_device *dev; 289 struct net_device *dev;
@@ -341,7 +341,7 @@ static int __devinit el3_isa_match(struct device *pdev,
341 return 1; 341 return 1;
342} 342}
343 343
344static int __devexit el3_isa_remove(struct device *pdev, 344static int el3_isa_remove(struct device *pdev,
345 unsigned int ndev) 345 unsigned int ndev)
346{ 346{
347 el3_device_remove(pdev); 347 el3_device_remove(pdev);
@@ -382,7 +382,7 @@ static int el3_isa_resume(struct device *dev, unsigned int n)
382 382
383static struct isa_driver el3_isa_driver = { 383static struct isa_driver el3_isa_driver = {
384 .match = el3_isa_match, 384 .match = el3_isa_match,
385 .remove = __devexit_p(el3_isa_remove), 385 .remove = el3_isa_remove,
386#ifdef CONFIG_PM 386#ifdef CONFIG_PM
387 .suspend = el3_isa_suspend, 387 .suspend = el3_isa_suspend,
388 .resume = el3_isa_resume, 388 .resume = el3_isa_resume,
@@ -406,7 +406,7 @@ static struct pnp_device_id el3_pnp_ids[] = {
406}; 406};
407MODULE_DEVICE_TABLE(pnp, el3_pnp_ids); 407MODULE_DEVICE_TABLE(pnp, el3_pnp_ids);
408 408
409static int __devinit el3_pnp_probe(struct pnp_dev *pdev, 409static int el3_pnp_probe(struct pnp_dev *pdev,
410 const struct pnp_device_id *id) 410 const struct pnp_device_id *id)
411{ 411{
412 short i; 412 short i;
@@ -445,7 +445,7 @@ static int __devinit el3_pnp_probe(struct pnp_dev *pdev,
445 return 0; 445 return 0;
446} 446}
447 447
448static void __devexit el3_pnp_remove(struct pnp_dev *pdev) 448static void el3_pnp_remove(struct pnp_dev *pdev)
449{ 449{
450 el3_common_remove(pnp_get_drvdata(pdev)); 450 el3_common_remove(pnp_get_drvdata(pdev));
451 pnp_set_drvdata(pdev, NULL); 451 pnp_set_drvdata(pdev, NULL);
@@ -467,7 +467,7 @@ static struct pnp_driver el3_pnp_driver = {
467 .name = "3c509", 467 .name = "3c509",
468 .id_table = el3_pnp_ids, 468 .id_table = el3_pnp_ids,
469 .probe = el3_pnp_probe, 469 .probe = el3_pnp_probe,
470 .remove = __devexit_p(el3_pnp_remove), 470 .remove = el3_pnp_remove,
471#ifdef CONFIG_PM 471#ifdef CONFIG_PM
472 .suspend = el3_pnp_suspend, 472 .suspend = el3_pnp_suspend,
473 .resume = el3_pnp_resume, 473 .resume = el3_pnp_resume,
@@ -496,7 +496,7 @@ static struct eisa_driver el3_eisa_driver = {
496 .driver = { 496 .driver = {
497 .name = "3c579", 497 .name = "3c579",
498 .probe = el3_eisa_probe, 498 .probe = el3_eisa_probe,
499 .remove = __devexit_p (el3_device_remove), 499 .remove = el3_device_remove,
500 .suspend = el3_suspend, 500 .suspend = el3_suspend,
501 .resume = el3_resume, 501 .resume = el3_resume,
502 } 502 }
@@ -519,7 +519,7 @@ static const struct net_device_ops netdev_ops = {
519#endif 519#endif
520}; 520};
521 521
522static int __devinit el3_common_init(struct net_device *dev) 522static int el3_common_init(struct net_device *dev)
523{ 523{
524 struct el3_private *lp = netdev_priv(dev); 524 struct el3_private *lp = netdev_priv(dev);
525 int err; 525 int err;
@@ -618,7 +618,7 @@ static int __init el3_eisa_probe (struct device *device)
618/* This remove works for all device types. 618/* This remove works for all device types.
619 * 619 *
620 * The net dev must be stored in the driver data field */ 620 * The net dev must be stored in the driver data field */
621static int __devexit el3_device_remove (struct device *device) 621static int el3_device_remove(struct device *device)
622{ 622{
623 struct net_device *dev; 623 struct net_device *dev;
624 624
diff --git a/drivers/net/ethernet/3com/3c59x.c b/drivers/net/ethernet/3com/3c59x.c
index e463d1036829..658e224b3613 100644
--- a/drivers/net/ethernet/3com/3c59x.c
+++ b/drivers/net/ethernet/3com/3c59x.c
@@ -102,7 +102,7 @@ static int vortex_debug = 1;
102#include <linux/delay.h> 102#include <linux/delay.h>
103 103
104 104
105static const char version[] __devinitconst = 105static const char version[] =
106 DRV_NAME ": Donald Becker and others.\n"; 106 DRV_NAME ": Donald Becker and others.\n";
107 107
108MODULE_AUTHOR("Donald Becker <becker@scyld.com>"); 108MODULE_AUTHOR("Donald Becker <becker@scyld.com>");
@@ -277,7 +277,7 @@ static struct vortex_chip_info {
277 int flags; 277 int flags;
278 int drv_flags; 278 int drv_flags;
279 int io_size; 279 int io_size;
280} vortex_info_tbl[] __devinitdata = { 280} vortex_info_tbl[] = {
281 {"3c590 Vortex 10Mbps", 281 {"3c590 Vortex 10Mbps",
282 PCI_USES_MASTER, IS_VORTEX, 32, }, 282 PCI_USES_MASTER, IS_VORTEX, 32, },
283 {"3c592 EISA 10Mbps Demon/Vortex", /* AKPM: from Don's 3c59x_cb.c 0.49H */ 283 {"3c592 EISA 10Mbps Demon/Vortex", /* AKPM: from Don's 3c59x_cb.c 0.49H */
@@ -931,7 +931,7 @@ static int __init vortex_eisa_probe(struct device *device)
931 return 0; 931 return 0;
932} 932}
933 933
934static int __devexit vortex_eisa_remove(struct device *device) 934static int vortex_eisa_remove(struct device *device)
935{ 935{
936 struct eisa_device *edev; 936 struct eisa_device *edev;
937 struct net_device *dev; 937 struct net_device *dev;
@@ -962,7 +962,7 @@ static struct eisa_driver vortex_eisa_driver = {
962 .driver = { 962 .driver = {
963 .name = "3c59x", 963 .name = "3c59x",
964 .probe = vortex_eisa_probe, 964 .probe = vortex_eisa_probe,
965 .remove = __devexit_p(vortex_eisa_remove) 965 .remove = vortex_eisa_remove
966 } 966 }
967}; 967};
968 968
@@ -1000,7 +1000,7 @@ static int __init vortex_eisa_init(void)
1000} 1000}
1001 1001
1002/* returns count (>= 0), or negative on error */ 1002/* returns count (>= 0), or negative on error */
1003static int __devinit vortex_init_one(struct pci_dev *pdev, 1003static int vortex_init_one(struct pci_dev *pdev,
1004 const struct pci_device_id *ent) 1004 const struct pci_device_id *ent)
1005{ 1005{
1006 int rc, unit, pci_bar; 1006 int rc, unit, pci_bar;
@@ -1088,7 +1088,7 @@ static const struct net_device_ops vortex_netdev_ops = {
1088 * 1088 *
1089 * NOTE: pdev can be NULL, for the case of a Compaq device 1089 * NOTE: pdev can be NULL, for the case of a Compaq device
1090 */ 1090 */
1091static int __devinit vortex_probe1(struct device *gendev, 1091static int vortex_probe1(struct device *gendev,
1092 void __iomem *ioaddr, int irq, 1092 void __iomem *ioaddr, int irq,
1093 int chip_idx, int card_idx) 1093 int chip_idx, int card_idx)
1094{ 1094{
@@ -3222,7 +3222,7 @@ static void acpi_set_WOL(struct net_device *dev)
3222} 3222}
3223 3223
3224 3224
3225static void __devexit vortex_remove_one(struct pci_dev *pdev) 3225static void vortex_remove_one(struct pci_dev *pdev)
3226{ 3226{
3227 struct net_device *dev = pci_get_drvdata(pdev); 3227 struct net_device *dev = pci_get_drvdata(pdev);
3228 struct vortex_private *vp; 3228 struct vortex_private *vp;
@@ -3265,7 +3265,7 @@ static void __devexit vortex_remove_one(struct pci_dev *pdev)
3265static struct pci_driver vortex_driver = { 3265static struct pci_driver vortex_driver = {
3266 .name = "3c59x", 3266 .name = "3c59x",
3267 .probe = vortex_init_one, 3267 .probe = vortex_init_one,
3268 .remove = __devexit_p(vortex_remove_one), 3268 .remove = vortex_remove_one,
3269 .id_table = vortex_pci_tbl, 3269 .id_table = vortex_pci_tbl,
3270 .driver.pm = VORTEX_PM_OPS, 3270 .driver.pm = VORTEX_PM_OPS,
3271}; 3271};
diff --git a/drivers/net/ethernet/3com/typhoon.c b/drivers/net/ethernet/3com/typhoon.c
index bb9670f29b59..27aaaf99e73e 100644
--- a/drivers/net/ethernet/3com/typhoon.c
+++ b/drivers/net/ethernet/3com/typhoon.c
@@ -168,7 +168,7 @@ enum typhoon_cards {
168}; 168};
169 169
170/* directly indexed by enum typhoon_cards, above */ 170/* directly indexed by enum typhoon_cards, above */
171static struct typhoon_card_info typhoon_card_info[] __devinitdata = { 171static struct typhoon_card_info typhoon_card_info[] = {
172 { "3Com Typhoon (3C990-TX)", 172 { "3Com Typhoon (3C990-TX)",
173 TYPHOON_CRYPTO_NONE}, 173 TYPHOON_CRYPTO_NONE},
174 { "3Com Typhoon (3CR990-TX-95)", 174 { "3Com Typhoon (3CR990-TX-95)",
@@ -2200,7 +2200,7 @@ need_resume:
2200} 2200}
2201#endif 2201#endif
2202 2202
2203static int __devinit 2203static int
2204typhoon_test_mmio(struct pci_dev *pdev) 2204typhoon_test_mmio(struct pci_dev *pdev)
2205{ 2205{
2206 void __iomem *ioaddr = pci_iomap(pdev, 1, 128); 2206 void __iomem *ioaddr = pci_iomap(pdev, 1, 128);
@@ -2258,7 +2258,7 @@ static const struct net_device_ops typhoon_netdev_ops = {
2258 .ndo_change_mtu = eth_change_mtu, 2258 .ndo_change_mtu = eth_change_mtu,
2259}; 2259};
2260 2260
2261static int __devinit 2261static int
2262typhoon_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) 2262typhoon_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
2263{ 2263{
2264 struct net_device *dev; 2264 struct net_device *dev;
@@ -2509,7 +2509,7 @@ error_out:
2509 return err; 2509 return err;
2510} 2510}
2511 2511
2512static void __devexit 2512static void
2513typhoon_remove_one(struct pci_dev *pdev) 2513typhoon_remove_one(struct pci_dev *pdev)
2514{ 2514{
2515 struct net_device *dev = pci_get_drvdata(pdev); 2515 struct net_device *dev = pci_get_drvdata(pdev);
@@ -2533,7 +2533,7 @@ static struct pci_driver typhoon_driver = {
2533 .name = KBUILD_MODNAME, 2533 .name = KBUILD_MODNAME,
2534 .id_table = typhoon_pci_tbl, 2534 .id_table = typhoon_pci_tbl,
2535 .probe = typhoon_init_one, 2535 .probe = typhoon_init_one,
2536 .remove = __devexit_p(typhoon_remove_one), 2536 .remove = typhoon_remove_one,
2537#ifdef CONFIG_PM 2537#ifdef CONFIG_PM
2538 .suspend = typhoon_suspend, 2538 .suspend = typhoon_suspend,
2539 .resume = typhoon_resume, 2539 .resume = typhoon_resume,
diff --git a/drivers/net/ethernet/8390/etherh.c b/drivers/net/ethernet/8390/etherh.c
index 6414e84516c0..78c6fb4b1143 100644
--- a/drivers/net/ethernet/8390/etherh.c
+++ b/drivers/net/ethernet/8390/etherh.c
@@ -521,7 +521,7 @@ static void __init etherh_banner(void)
521 * Read the ethernet address string from the on board rom. 521 * Read the ethernet address string from the on board rom.
522 * This is an ascii string... 522 * This is an ascii string...
523 */ 523 */
524static int __devinit etherh_addr(char *addr, struct expansion_card *ec) 524static int etherh_addr(char *addr, struct expansion_card *ec)
525{ 525{
526 struct in_chunk_dir cd; 526 struct in_chunk_dir cd;
527 char *s; 527 char *s;
@@ -651,7 +651,7 @@ static const struct net_device_ops etherh_netdev_ops = {
651static u32 etherh_regoffsets[16]; 651static u32 etherh_regoffsets[16];
652static u32 etherm_regoffsets[16]; 652static u32 etherm_regoffsets[16];
653 653
654static int __devinit 654static int
655etherh_probe(struct expansion_card *ec, const struct ecard_id *id) 655etherh_probe(struct expansion_card *ec, const struct ecard_id *id)
656{ 656{
657 const struct etherh_data *data = id->data; 657 const struct etherh_data *data = id->data;
@@ -769,7 +769,7 @@ etherh_probe(struct expansion_card *ec, const struct ecard_id *id)
769 return ret; 769 return ret;
770} 770}
771 771
772static void __devexit etherh_remove(struct expansion_card *ec) 772static void etherh_remove(struct expansion_card *ec)
773{ 773{
774 struct net_device *dev = ecard_get_drvdata(ec); 774 struct net_device *dev = ecard_get_drvdata(ec);
775 775
@@ -833,7 +833,7 @@ static const struct ecard_id etherh_ids[] = {
833 833
834static struct ecard_driver etherh_driver = { 834static struct ecard_driver etherh_driver = {
835 .probe = etherh_probe, 835 .probe = etherh_probe,
836 .remove = __devexit_p(etherh_remove), 836 .remove = etherh_remove,
837 .id_table = etherh_ids, 837 .id_table = etherh_ids,
838 .drv = { 838 .drv = {
839 .name = DRV_NAME, 839 .name = DRV_NAME,
diff --git a/drivers/net/ethernet/8390/hydra.c b/drivers/net/ethernet/8390/hydra.c
index 5370c884620b..bc81de1b7d4f 100644
--- a/drivers/net/ethernet/8390/hydra.c
+++ b/drivers/net/ethernet/8390/hydra.c
@@ -53,9 +53,9 @@ static const char version[] =
53#define WORDSWAP(a) ((((a)>>8)&0xff) | ((a)<<8)) 53#define WORDSWAP(a) ((((a)>>8)&0xff) | ((a)<<8))
54 54
55 55
56static int __devinit hydra_init_one(struct zorro_dev *z, 56static int hydra_init_one(struct zorro_dev *z,
57 const struct zorro_device_id *ent); 57 const struct zorro_device_id *ent);
58static int __devinit hydra_init(struct zorro_dev *z); 58static int hydra_init(struct zorro_dev *z);
59static int hydra_open(struct net_device *dev); 59static int hydra_open(struct net_device *dev);
60static int hydra_close(struct net_device *dev); 60static int hydra_close(struct net_device *dev);
61static void hydra_reset_8390(struct net_device *dev); 61static void hydra_reset_8390(struct net_device *dev);
@@ -65,9 +65,9 @@ static void hydra_block_input(struct net_device *dev, int count,
65 struct sk_buff *skb, int ring_offset); 65 struct sk_buff *skb, int ring_offset);
66static void hydra_block_output(struct net_device *dev, int count, 66static void hydra_block_output(struct net_device *dev, int count,
67 const unsigned char *buf, int start_page); 67 const unsigned char *buf, int start_page);
68static void __devexit hydra_remove_one(struct zorro_dev *z); 68static void hydra_remove_one(struct zorro_dev *z);
69 69
70static struct zorro_device_id hydra_zorro_tbl[] __devinitdata = { 70static struct zorro_device_id hydra_zorro_tbl[] = {
71 { ZORRO_PROD_HYDRA_SYSTEMS_AMIGANET }, 71 { ZORRO_PROD_HYDRA_SYSTEMS_AMIGANET },
72 { 0 } 72 { 0 }
73}; 73};
@@ -77,10 +77,10 @@ static struct zorro_driver hydra_driver = {
77 .name = "hydra", 77 .name = "hydra",
78 .id_table = hydra_zorro_tbl, 78 .id_table = hydra_zorro_tbl,
79 .probe = hydra_init_one, 79 .probe = hydra_init_one,
80 .remove = __devexit_p(hydra_remove_one), 80 .remove = hydra_remove_one,
81}; 81};
82 82
83static int __devinit hydra_init_one(struct zorro_dev *z, 83static int hydra_init_one(struct zorro_dev *z,
84 const struct zorro_device_id *ent) 84 const struct zorro_device_id *ent)
85{ 85{
86 int err; 86 int err;
@@ -110,7 +110,7 @@ static const struct net_device_ops hydra_netdev_ops = {
110#endif 110#endif
111}; 111};
112 112
113static int __devinit hydra_init(struct zorro_dev *z) 113static int hydra_init(struct zorro_dev *z)
114{ 114{
115 struct net_device *dev; 115 struct net_device *dev;
116 unsigned long board = ZTWO_VADDR(z->resource.start); 116 unsigned long board = ZTWO_VADDR(z->resource.start);
@@ -247,7 +247,7 @@ static void hydra_block_output(struct net_device *dev, int count,
247 z_memcpy_toio(mem_base+((start_page - NESM_START_PG)<<8), buf, count); 247 z_memcpy_toio(mem_base+((start_page - NESM_START_PG)<<8), buf, count);
248} 248}
249 249
250static void __devexit hydra_remove_one(struct zorro_dev *z) 250static void hydra_remove_one(struct zorro_dev *z)
251{ 251{
252 struct net_device *dev = zorro_get_drvdata(z); 252 struct net_device *dev = zorro_get_drvdata(z);
253 253
diff --git a/drivers/net/ethernet/8390/ne2k-pci.c b/drivers/net/ethernet/8390/ne2k-pci.c
index 5e8845febfb8..c0c127913dec 100644
--- a/drivers/net/ethernet/8390/ne2k-pci.c
+++ b/drivers/net/ethernet/8390/ne2k-pci.c
@@ -61,7 +61,7 @@ static int options[MAX_UNITS];
61#include "8390.h" 61#include "8390.h"
62 62
63/* These identify the driver base version and may not be removed. */ 63/* These identify the driver base version and may not be removed. */
64static const char version[] __devinitconst = 64static const char version[] =
65 KERN_INFO DRV_NAME ".c:v" DRV_VERSION " " DRV_RELDATE 65 KERN_INFO DRV_NAME ".c:v" DRV_VERSION " " DRV_RELDATE
66 " D. Becker/P. Gortmaker\n"; 66 " D. Becker/P. Gortmaker\n";
67 67
@@ -119,7 +119,7 @@ enum ne2k_pci_chipsets {
119static struct { 119static struct {
120 char *name; 120 char *name;
121 int flags; 121 int flags;
122} pci_clone_list[] __devinitdata = { 122} pci_clone_list[] = {
123 {"RealTek RTL-8029", REALTEK_FDX}, 123 {"RealTek RTL-8029", REALTEK_FDX},
124 {"Winbond 89C940", 0}, 124 {"Winbond 89C940", 0},
125 {"Compex RL2000", 0}, 125 {"Compex RL2000", 0},
@@ -215,8 +215,8 @@ static const struct net_device_ops ne2k_netdev_ops = {
215#endif 215#endif
216}; 216};
217 217
218static int __devinit ne2k_pci_init_one (struct pci_dev *pdev, 218static int ne2k_pci_init_one(struct pci_dev *pdev,
219 const struct pci_device_id *ent) 219 const struct pci_device_id *ent)
220{ 220{
221 struct net_device *dev; 221 struct net_device *dev;
222 int i; 222 int i;
@@ -647,7 +647,7 @@ static const struct ethtool_ops ne2k_pci_ethtool_ops = {
647 .get_drvinfo = ne2k_pci_get_drvinfo, 647 .get_drvinfo = ne2k_pci_get_drvinfo,
648}; 648};
649 649
650static void __devexit ne2k_pci_remove_one (struct pci_dev *pdev) 650static void ne2k_pci_remove_one(struct pci_dev *pdev)
651{ 651{
652 struct net_device *dev = pci_get_drvdata(pdev); 652 struct net_device *dev = pci_get_drvdata(pdev);
653 653
@@ -696,7 +696,7 @@ static int ne2k_pci_resume (struct pci_dev *pdev)
696static struct pci_driver ne2k_driver = { 696static struct pci_driver ne2k_driver = {
697 .name = DRV_NAME, 697 .name = DRV_NAME,
698 .probe = ne2k_pci_init_one, 698 .probe = ne2k_pci_init_one,
699 .remove = __devexit_p(ne2k_pci_remove_one), 699 .remove = ne2k_pci_remove_one,
700 .id_table = ne2k_pci_tbl, 700 .id_table = ne2k_pci_tbl,
701#ifdef CONFIG_PM 701#ifdef CONFIG_PM
702 .suspend = ne2k_pci_suspend, 702 .suspend = ne2k_pci_suspend,
diff --git a/drivers/net/ethernet/8390/ne3210.c b/drivers/net/ethernet/8390/ne3210.c
index e3f57427d5c5..ebcdb52ec739 100644
--- a/drivers/net/ethernet/8390/ne3210.c
+++ b/drivers/net/ethernet/8390/ne3210.c
@@ -222,7 +222,7 @@ static int __init ne3210_eisa_probe (struct device *device)
222 return retval; 222 return retval;
223} 223}
224 224
225static int __devexit ne3210_eisa_remove (struct device *device) 225static int ne3210_eisa_remove(struct device *device)
226{ 226{
227 struct net_device *dev = dev_get_drvdata(device); 227 struct net_device *dev = dev_get_drvdata(device);
228 unsigned long ioaddr = to_eisa_device (device)->base_addr; 228 unsigned long ioaddr = to_eisa_device (device)->base_addr;
@@ -324,7 +324,7 @@ static struct eisa_driver ne3210_eisa_driver = {
324 .driver = { 324 .driver = {
325 .name = "ne3210", 325 .name = "ne3210",
326 .probe = ne3210_eisa_probe, 326 .probe = ne3210_eisa_probe,
327 .remove = __devexit_p (ne3210_eisa_remove), 327 .remove = ne3210_eisa_remove,
328 }, 328 },
329}; 329};
330 330
diff --git a/drivers/net/ethernet/8390/zorro8390.c b/drivers/net/ethernet/8390/zorro8390.c
index 7818e6397e91..ceb89d90230e 100644
--- a/drivers/net/ethernet/8390/zorro8390.c
+++ b/drivers/net/ethernet/8390/zorro8390.c
@@ -75,7 +75,7 @@ static struct card_info {
75 zorro_id id; 75 zorro_id id;
76 const char *name; 76 const char *name;
77 unsigned int offset; 77 unsigned int offset;
78} cards[] __devinitdata = { 78} cards[] = {
79 { ZORRO_PROD_VILLAGE_TRONIC_ARIADNE2, "Ariadne II", 0x0600 }, 79 { ZORRO_PROD_VILLAGE_TRONIC_ARIADNE2, "Ariadne II", 0x0600 },
80 { ZORRO_PROD_INDIVIDUAL_COMPUTERS_X_SURF, "X-Surf", 0x8600 }, 80 { ZORRO_PROD_INDIVIDUAL_COMPUTERS_X_SURF, "X-Surf", 0x8600 },
81}; 81};
@@ -254,7 +254,7 @@ static int zorro8390_close(struct net_device *dev)
254 return 0; 254 return 0;
255} 255}
256 256
257static void __devexit zorro8390_remove_one(struct zorro_dev *z) 257static void zorro8390_remove_one(struct zorro_dev *z)
258{ 258{
259 struct net_device *dev = zorro_get_drvdata(z); 259 struct net_device *dev = zorro_get_drvdata(z);
260 260
@@ -264,7 +264,7 @@ static void __devexit zorro8390_remove_one(struct zorro_dev *z)
264 free_netdev(dev); 264 free_netdev(dev);
265} 265}
266 266
267static struct zorro_device_id zorro8390_zorro_tbl[] __devinitdata = { 267static struct zorro_device_id zorro8390_zorro_tbl[] = {
268 { ZORRO_PROD_VILLAGE_TRONIC_ARIADNE2, }, 268 { ZORRO_PROD_VILLAGE_TRONIC_ARIADNE2, },
269 { ZORRO_PROD_INDIVIDUAL_COMPUTERS_X_SURF, }, 269 { ZORRO_PROD_INDIVIDUAL_COMPUTERS_X_SURF, },
270 { 0 } 270 { 0 }
@@ -286,7 +286,7 @@ static const struct net_device_ops zorro8390_netdev_ops = {
286#endif 286#endif
287}; 287};
288 288
289static int __devinit zorro8390_init(struct net_device *dev, 289static int zorro8390_init(struct net_device *dev,
290 unsigned long board, const char *name, 290 unsigned long board, const char *name,
291 unsigned long ioaddr) 291 unsigned long ioaddr)
292{ 292{
@@ -396,7 +396,7 @@ static int __devinit zorro8390_init(struct net_device *dev,
396 return 0; 396 return 0;
397} 397}
398 398
399static int __devinit zorro8390_init_one(struct zorro_dev *z, 399static int zorro8390_init_one(struct zorro_dev *z,
400 const struct zorro_device_id *ent) 400 const struct zorro_device_id *ent)
401{ 401{
402 struct net_device *dev; 402 struct net_device *dev;
@@ -432,7 +432,7 @@ static struct zorro_driver zorro8390_driver = {
432 .name = "zorro8390", 432 .name = "zorro8390",
433 .id_table = zorro8390_zorro_tbl, 433 .id_table = zorro8390_zorro_tbl,
434 .probe = zorro8390_init_one, 434 .probe = zorro8390_init_one,
435 .remove = __devexit_p(zorro8390_remove_one), 435 .remove = zorro8390_remove_one,
436}; 436};
437 437
438static int __init zorro8390_init_module(void) 438static int __init zorro8390_init_module(void)
diff --git a/drivers/net/ethernet/adaptec/starfire.c b/drivers/net/ethernet/adaptec/starfire.c
index 5b65992c2a0a..d67c192b6505 100644
--- a/drivers/net/ethernet/adaptec/starfire.c
+++ b/drivers/net/ethernet/adaptec/starfire.c
@@ -166,7 +166,7 @@ static int rx_copybreak /* = 0 */;
166#define FIRMWARE_TX "adaptec/starfire_tx.bin" 166#define FIRMWARE_TX "adaptec/starfire_tx.bin"
167 167
168/* These identify the driver base version and may not be removed. */ 168/* These identify the driver base version and may not be removed. */
169static const char version[] __devinitconst = 169static const char version[] =
170KERN_INFO "starfire.c:v1.03 7/26/2000 Written by Donald Becker <becker@scyld.com>\n" 170KERN_INFO "starfire.c:v1.03 7/26/2000 Written by Donald Becker <becker@scyld.com>\n"
171" (unofficial 2.2/2.4 kernel port, version " DRV_VERSION ", " DRV_RELDATE ")\n"; 171" (unofficial 2.2/2.4 kernel port, version " DRV_VERSION ", " DRV_RELDATE ")\n";
172 172
@@ -295,7 +295,7 @@ MODULE_DEVICE_TABLE(pci, starfire_pci_tbl);
295static const struct chip_info { 295static const struct chip_info {
296 const char *name; 296 const char *name;
297 int drv_flags; 297 int drv_flags;
298} netdrv_tbl[] __devinitconst = { 298} netdrv_tbl[] = {
299 { "Adaptec Starfire 6915", CanHaveMII }, 299 { "Adaptec Starfire 6915", CanHaveMII },
300}; 300};
301 301
@@ -641,7 +641,7 @@ static const struct net_device_ops netdev_ops = {
641#endif 641#endif
642}; 642};
643 643
644static int __devinit starfire_init_one(struct pci_dev *pdev, 644static int starfire_init_one(struct pci_dev *pdev,
645 const struct pci_device_id *ent) 645 const struct pci_device_id *ent)
646{ 646{
647 struct device *d = &pdev->dev; 647 struct device *d = &pdev->dev;
@@ -1990,7 +1990,7 @@ static int starfire_resume(struct pci_dev *pdev)
1990#endif /* CONFIG_PM */ 1990#endif /* CONFIG_PM */
1991 1991
1992 1992
1993static void __devexit starfire_remove_one (struct pci_dev *pdev) 1993static void starfire_remove_one(struct pci_dev *pdev)
1994{ 1994{
1995 struct net_device *dev = pci_get_drvdata(pdev); 1995 struct net_device *dev = pci_get_drvdata(pdev);
1996 struct netdev_private *np = netdev_priv(dev); 1996 struct netdev_private *np = netdev_priv(dev);
@@ -2018,7 +2018,7 @@ static void __devexit starfire_remove_one (struct pci_dev *pdev)
2018static struct pci_driver starfire_driver = { 2018static struct pci_driver starfire_driver = {
2019 .name = DRV_NAME, 2019 .name = DRV_NAME,
2020 .probe = starfire_init_one, 2020 .probe = starfire_init_one,
2021 .remove = __devexit_p(starfire_remove_one), 2021 .remove = starfire_remove_one,
2022#ifdef CONFIG_PM 2022#ifdef CONFIG_PM
2023 .suspend = starfire_suspend, 2023 .suspend = starfire_suspend,
2024 .resume = starfire_resume, 2024 .resume = starfire_resume,
diff --git a/drivers/net/ethernet/adi/bfin_mac.c b/drivers/net/ethernet/adi/bfin_mac.c
index f1c458dc039a..c1fdb8be8bee 100644
--- a/drivers/net/ethernet/adi/bfin_mac.c
+++ b/drivers/net/ethernet/adi/bfin_mac.c
@@ -1603,7 +1603,7 @@ static const struct net_device_ops bfin_mac_netdev_ops = {
1603#endif 1603#endif
1604}; 1604};
1605 1605
1606static int __devinit bfin_mac_probe(struct platform_device *pdev) 1606static int bfin_mac_probe(struct platform_device *pdev)
1607{ 1607{
1608 struct net_device *ndev; 1608 struct net_device *ndev;
1609 struct bfin_mac_local *lp; 1609 struct bfin_mac_local *lp;
@@ -1727,7 +1727,7 @@ out_err_probe_mac:
1727 return rc; 1727 return rc;
1728} 1728}
1729 1729
1730static int __devexit bfin_mac_remove(struct platform_device *pdev) 1730static int bfin_mac_remove(struct platform_device *pdev)
1731{ 1731{
1732 struct net_device *ndev = platform_get_drvdata(pdev); 1732 struct net_device *ndev = platform_get_drvdata(pdev);
1733 struct bfin_mac_local *lp = netdev_priv(ndev); 1733 struct bfin_mac_local *lp = netdev_priv(ndev);
@@ -1786,7 +1786,7 @@ static int bfin_mac_resume(struct platform_device *pdev)
1786#define bfin_mac_resume NULL 1786#define bfin_mac_resume NULL
1787#endif /* CONFIG_PM */ 1787#endif /* CONFIG_PM */
1788 1788
1789static int __devinit bfin_mii_bus_probe(struct platform_device *pdev) 1789static int bfin_mii_bus_probe(struct platform_device *pdev)
1790{ 1790{
1791 struct mii_bus *miibus; 1791 struct mii_bus *miibus;
1792 struct bfin_mii_bus_platform_data *mii_bus_pd; 1792 struct bfin_mii_bus_platform_data *mii_bus_pd;
@@ -1864,7 +1864,7 @@ out_err_alloc:
1864 return rc; 1864 return rc;
1865} 1865}
1866 1866
1867static int __devexit bfin_mii_bus_remove(struct platform_device *pdev) 1867static int bfin_mii_bus_remove(struct platform_device *pdev)
1868{ 1868{
1869 struct mii_bus *miibus = platform_get_drvdata(pdev); 1869 struct mii_bus *miibus = platform_get_drvdata(pdev);
1870 struct bfin_mii_bus_platform_data *mii_bus_pd = 1870 struct bfin_mii_bus_platform_data *mii_bus_pd =
@@ -1881,7 +1881,7 @@ static int __devexit bfin_mii_bus_remove(struct platform_device *pdev)
1881 1881
1882static struct platform_driver bfin_mii_bus_driver = { 1882static struct platform_driver bfin_mii_bus_driver = {
1883 .probe = bfin_mii_bus_probe, 1883 .probe = bfin_mii_bus_probe,
1884 .remove = __devexit_p(bfin_mii_bus_remove), 1884 .remove = bfin_mii_bus_remove,
1885 .driver = { 1885 .driver = {
1886 .name = "bfin_mii_bus", 1886 .name = "bfin_mii_bus",
1887 .owner = THIS_MODULE, 1887 .owner = THIS_MODULE,
@@ -1890,7 +1890,7 @@ static struct platform_driver bfin_mii_bus_driver = {
1890 1890
1891static struct platform_driver bfin_mac_driver = { 1891static struct platform_driver bfin_mac_driver = {
1892 .probe = bfin_mac_probe, 1892 .probe = bfin_mac_probe,
1893 .remove = __devexit_p(bfin_mac_remove), 1893 .remove = bfin_mac_remove,
1894 .resume = bfin_mac_resume, 1894 .resume = bfin_mac_resume,
1895 .suspend = bfin_mac_suspend, 1895 .suspend = bfin_mac_suspend,
1896 .driver = { 1896 .driver = {
diff --git a/drivers/net/ethernet/aeroflex/greth.c b/drivers/net/ethernet/aeroflex/greth.c
index 9c77c736f171..aa53115bb38b 100644
--- a/drivers/net/ethernet/aeroflex/greth.c
+++ b/drivers/net/ethernet/aeroflex/greth.c
@@ -1376,7 +1376,7 @@ error:
1376} 1376}
1377 1377
1378/* Initialize the GRETH MAC */ 1378/* Initialize the GRETH MAC */
1379static int __devinit greth_of_probe(struct platform_device *ofdev) 1379static int greth_of_probe(struct platform_device *ofdev)
1380{ 1380{
1381 struct net_device *dev; 1381 struct net_device *dev;
1382 struct greth_private *greth; 1382 struct greth_private *greth;
@@ -1576,7 +1576,7 @@ error1:
1576 return err; 1576 return err;
1577} 1577}
1578 1578
1579static int __devexit greth_of_remove(struct platform_device *of_dev) 1579static int greth_of_remove(struct platform_device *of_dev)
1580{ 1580{
1581 struct net_device *ndev = dev_get_drvdata(&of_dev->dev); 1581 struct net_device *ndev = dev_get_drvdata(&of_dev->dev);
1582 struct greth_private *greth = netdev_priv(ndev); 1582 struct greth_private *greth = netdev_priv(ndev);
@@ -1619,7 +1619,7 @@ static struct platform_driver greth_of_driver = {
1619 .of_match_table = greth_of_match, 1619 .of_match_table = greth_of_match,
1620 }, 1620 },
1621 .probe = greth_of_probe, 1621 .probe = greth_of_probe,
1622 .remove = __devexit_p(greth_of_remove), 1622 .remove = greth_of_remove,
1623}; 1623};
1624 1624
1625module_platform_driver(greth_of_driver); 1625module_platform_driver(greth_of_driver);
diff --git a/drivers/net/ethernet/alteon/acenic.c b/drivers/net/ethernet/alteon/acenic.c
index 7219123fa0a4..dfddce6342e5 100644
--- a/drivers/net/ethernet/alteon/acenic.c
+++ b/drivers/net/ethernet/alteon/acenic.c
@@ -426,7 +426,7 @@ MODULE_PARM_DESC(max_rx_desc, "AceNIC/3C985/GA620 max number of receive descript
426MODULE_PARM_DESC(tx_ratio, "AceNIC/3C985/GA620 ratio of NIC memory used for TX/RX descriptors (range 0-63)"); 426MODULE_PARM_DESC(tx_ratio, "AceNIC/3C985/GA620 ratio of NIC memory used for TX/RX descriptors (range 0-63)");
427 427
428 428
429static const char version[] __devinitconst = 429static const char version[] =
430 "acenic.c: v0.92 08/05/2002 Jes Sorensen, linux-acenic@SunSITE.dk\n" 430 "acenic.c: v0.92 08/05/2002 Jes Sorensen, linux-acenic@SunSITE.dk\n"
431 " http://home.cern.ch/~jes/gige/acenic.html\n"; 431 " http://home.cern.ch/~jes/gige/acenic.html\n";
432 432
@@ -454,7 +454,7 @@ static const struct net_device_ops ace_netdev_ops = {
454 .ndo_change_mtu = ace_change_mtu, 454 .ndo_change_mtu = ace_change_mtu,
455}; 455};
456 456
457static int __devinit acenic_probe_one(struct pci_dev *pdev, 457static int acenic_probe_one(struct pci_dev *pdev,
458 const struct pci_device_id *id) 458 const struct pci_device_id *id)
459{ 459{
460 struct net_device *dev; 460 struct net_device *dev;
@@ -603,7 +603,7 @@ static int __devinit acenic_probe_one(struct pci_dev *pdev,
603 return -ENODEV; 603 return -ENODEV;
604} 604}
605 605
606static void __devexit acenic_remove_one(struct pci_dev *pdev) 606static void acenic_remove_one(struct pci_dev *pdev)
607{ 607{
608 struct net_device *dev = pci_get_drvdata(pdev); 608 struct net_device *dev = pci_get_drvdata(pdev);
609 struct ace_private *ap = netdev_priv(dev); 609 struct ace_private *ap = netdev_priv(dev);
@@ -699,7 +699,7 @@ static struct pci_driver acenic_pci_driver = {
699 .name = "acenic", 699 .name = "acenic",
700 .id_table = acenic_pci_tbl, 700 .id_table = acenic_pci_tbl,
701 .probe = acenic_probe_one, 701 .probe = acenic_probe_one,
702 .remove = __devexit_p(acenic_remove_one), 702 .remove = acenic_remove_one,
703}; 703};
704 704
705static int __init acenic_init(void) 705static int __init acenic_init(void)
@@ -871,7 +871,7 @@ static inline void ace_issue_cmd(struct ace_regs __iomem *regs, struct cmd *cmd)
871} 871}
872 872
873 873
874static int __devinit ace_init(struct net_device *dev) 874static int ace_init(struct net_device *dev)
875{ 875{
876 struct ace_private *ap; 876 struct ace_private *ap;
877 struct ace_regs __iomem *regs; 877 struct ace_regs __iomem *regs;
@@ -2824,7 +2824,7 @@ static struct net_device_stats *ace_get_stats(struct net_device *dev)
2824} 2824}
2825 2825
2826 2826
2827static void __devinit ace_copy(struct ace_regs __iomem *regs, const __be32 *src, 2827static void ace_copy(struct ace_regs __iomem *regs, const __be32 *src,
2828 u32 dest, int size) 2828 u32 dest, int size)
2829{ 2829{
2830 void __iomem *tdest; 2830 void __iomem *tdest;
@@ -2851,7 +2851,7 @@ static void __devinit ace_copy(struct ace_regs __iomem *regs, const __be32 *src,
2851} 2851}
2852 2852
2853 2853
2854static void __devinit ace_clear(struct ace_regs __iomem *regs, u32 dest, int size) 2854static void ace_clear(struct ace_regs __iomem *regs, u32 dest, int size)
2855{ 2855{
2856 void __iomem *tdest; 2856 void __iomem *tdest;
2857 short tsize = 0, i; 2857 short tsize = 0, i;
@@ -2882,7 +2882,7 @@ static void __devinit ace_clear(struct ace_regs __iomem *regs, u32 dest, int siz
2882 * This operation requires the NIC to be halted and is performed with 2882 * This operation requires the NIC to be halted and is performed with
2883 * interrupts disabled and with the spinlock hold. 2883 * interrupts disabled and with the spinlock hold.
2884 */ 2884 */
2885static int __devinit ace_load_firmware(struct net_device *dev) 2885static int ace_load_firmware(struct net_device *dev)
2886{ 2886{
2887 const struct firmware *fw; 2887 const struct firmware *fw;
2888 const char *fw_name = "acenic/tg2.bin"; 2888 const char *fw_name = "acenic/tg2.bin";
@@ -2962,7 +2962,7 @@ static int __devinit ace_load_firmware(struct net_device *dev)
2962 * Thanks to Stevarino Webinski for helping tracking down the bugs in the 2962 * Thanks to Stevarino Webinski for helping tracking down the bugs in the
2963 * code i2c readout code by beta testing all my hacks. 2963 * code i2c readout code by beta testing all my hacks.
2964 */ 2964 */
2965static void __devinit eeprom_start(struct ace_regs __iomem *regs) 2965static void eeprom_start(struct ace_regs __iomem *regs)
2966{ 2966{
2967 u32 local; 2967 u32 local;
2968 2968
@@ -2991,7 +2991,7 @@ static void __devinit eeprom_start(struct ace_regs __iomem *regs)
2991} 2991}
2992 2992
2993 2993
2994static void __devinit eeprom_prep(struct ace_regs __iomem *regs, u8 magic) 2994static void eeprom_prep(struct ace_regs __iomem *regs, u8 magic)
2995{ 2995{
2996 short i; 2996 short i;
2997 u32 local; 2997 u32 local;
@@ -3028,7 +3028,7 @@ static void __devinit eeprom_prep(struct ace_regs __iomem *regs, u8 magic)
3028} 3028}
3029 3029
3030 3030
3031static int __devinit eeprom_check_ack(struct ace_regs __iomem *regs) 3031static int eeprom_check_ack(struct ace_regs __iomem *regs)
3032{ 3032{
3033 int state; 3033 int state;
3034 u32 local; 3034 u32 local;
@@ -3056,7 +3056,7 @@ static int __devinit eeprom_check_ack(struct ace_regs __iomem *regs)
3056} 3056}
3057 3057
3058 3058
3059static void __devinit eeprom_stop(struct ace_regs __iomem *regs) 3059static void eeprom_stop(struct ace_regs __iomem *regs)
3060{ 3060{
3061 u32 local; 3061 u32 local;
3062 3062
@@ -3091,7 +3091,7 @@ static void __devinit eeprom_stop(struct ace_regs __iomem *regs)
3091/* 3091/*
3092 * Read a whole byte from the EEPROM. 3092 * Read a whole byte from the EEPROM.
3093 */ 3093 */
3094static int __devinit read_eeprom_byte(struct net_device *dev, 3094static int read_eeprom_byte(struct net_device *dev,
3095 unsigned long offset) 3095 unsigned long offset)
3096{ 3096{
3097 struct ace_private *ap = netdev_priv(dev); 3097 struct ace_private *ap = netdev_priv(dev);
diff --git a/drivers/net/ethernet/amd/a2065.c b/drivers/net/ethernet/amd/a2065.c
index 689dfcafc6d4..818f6d6cdbe0 100644
--- a/drivers/net/ethernet/amd/a2065.c
+++ b/drivers/net/ethernet/amd/a2065.c
@@ -639,12 +639,12 @@ static void lance_set_multicast(struct net_device *dev)
639 netif_wake_queue(dev); 639 netif_wake_queue(dev);
640} 640}
641 641
642static int __devinit a2065_init_one(struct zorro_dev *z, 642static int a2065_init_one(struct zorro_dev *z,
643 const struct zorro_device_id *ent); 643 const struct zorro_device_id *ent);
644static void __devexit a2065_remove_one(struct zorro_dev *z); 644static void a2065_remove_one(struct zorro_dev *z);
645 645
646 646
647static struct zorro_device_id a2065_zorro_tbl[] __devinitdata = { 647static struct zorro_device_id a2065_zorro_tbl[] = {
648 { ZORRO_PROD_CBM_A2065_1 }, 648 { ZORRO_PROD_CBM_A2065_1 },
649 { ZORRO_PROD_CBM_A2065_2 }, 649 { ZORRO_PROD_CBM_A2065_2 },
650 { ZORRO_PROD_AMERISTAR_A2065 }, 650 { ZORRO_PROD_AMERISTAR_A2065 },
@@ -656,7 +656,7 @@ static struct zorro_driver a2065_driver = {
656 .name = "a2065", 656 .name = "a2065",
657 .id_table = a2065_zorro_tbl, 657 .id_table = a2065_zorro_tbl,
658 .probe = a2065_init_one, 658 .probe = a2065_init_one,
659 .remove = __devexit_p(a2065_remove_one), 659 .remove = a2065_remove_one,
660}; 660};
661 661
662static const struct net_device_ops lance_netdev_ops = { 662static const struct net_device_ops lance_netdev_ops = {
@@ -670,7 +670,7 @@ static const struct net_device_ops lance_netdev_ops = {
670 .ndo_set_mac_address = eth_mac_addr, 670 .ndo_set_mac_address = eth_mac_addr,
671}; 671};
672 672
673static int __devinit a2065_init_one(struct zorro_dev *z, 673static int a2065_init_one(struct zorro_dev *z,
674 const struct zorro_device_id *ent) 674 const struct zorro_device_id *ent)
675{ 675{
676 struct net_device *dev; 676 struct net_device *dev;
@@ -754,7 +754,7 @@ static int __devinit a2065_init_one(struct zorro_dev *z,
754} 754}
755 755
756 756
757static void __devexit a2065_remove_one(struct zorro_dev *z) 757static void a2065_remove_one(struct zorro_dev *z)
758{ 758{
759 struct net_device *dev = zorro_get_drvdata(z); 759 struct net_device *dev = zorro_get_drvdata(z);
760 760
diff --git a/drivers/net/ethernet/amd/am79c961a.c b/drivers/net/ethernet/amd/am79c961a.c
index e10ffad525a7..60e2b701afe7 100644
--- a/drivers/net/ethernet/amd/am79c961a.c
+++ b/drivers/net/ethernet/amd/am79c961a.c
@@ -671,7 +671,7 @@ static const struct net_device_ops am79c961_netdev_ops = {
671#endif 671#endif
672}; 672};
673 673
674static int __devinit am79c961_probe(struct platform_device *pdev) 674static int am79c961_probe(struct platform_device *pdev)
675{ 675{
676 struct resource *res; 676 struct resource *res;
677 struct net_device *dev; 677 struct net_device *dev;
diff --git a/drivers/net/ethernet/amd/amd8111e.c b/drivers/net/ethernet/amd/amd8111e.c
index 3491d4312fc9..42d4e6ad58a5 100644
--- a/drivers/net/ethernet/amd/amd8111e.c
+++ b/drivers/net/ethernet/amd/amd8111e.c
@@ -1702,7 +1702,7 @@ static int amd8111e_resume(struct pci_dev *pci_dev)
1702} 1702}
1703 1703
1704 1704
1705static void __devexit amd8111e_remove_one(struct pci_dev *pdev) 1705static void amd8111e_remove_one(struct pci_dev *pdev)
1706{ 1706{
1707 struct net_device *dev = pci_get_drvdata(pdev); 1707 struct net_device *dev = pci_get_drvdata(pdev);
1708 if (dev) { 1708 if (dev) {
@@ -1774,7 +1774,7 @@ static void amd8111e_config_ipg(struct net_device* dev)
1774 1774
1775} 1775}
1776 1776
1777static void __devinit amd8111e_probe_ext_phy(struct net_device* dev) 1777static void amd8111e_probe_ext_phy(struct net_device *dev)
1778{ 1778{
1779 struct amd8111e_priv *lp = netdev_priv(dev); 1779 struct amd8111e_priv *lp = netdev_priv(dev);
1780 int i; 1780 int i;
@@ -1810,7 +1810,7 @@ static const struct net_device_ops amd8111e_netdev_ops = {
1810#endif 1810#endif
1811}; 1811};
1812 1812
1813static int __devinit amd8111e_probe_one(struct pci_dev *pdev, 1813static int amd8111e_probe_one(struct pci_dev *pdev,
1814 const struct pci_device_id *ent) 1814 const struct pci_device_id *ent)
1815{ 1815{
1816 int err,i,pm_cap; 1816 int err,i,pm_cap;
@@ -1976,7 +1976,7 @@ static struct pci_driver amd8111e_driver = {
1976 .name = MODULE_NAME, 1976 .name = MODULE_NAME,
1977 .id_table = amd8111e_pci_tbl, 1977 .id_table = amd8111e_pci_tbl,
1978 .probe = amd8111e_probe_one, 1978 .probe = amd8111e_probe_one,
1979 .remove = __devexit_p(amd8111e_remove_one), 1979 .remove = amd8111e_remove_one,
1980 .suspend = amd8111e_suspend, 1980 .suspend = amd8111e_suspend,
1981 .resume = amd8111e_resume 1981 .resume = amd8111e_resume
1982}; 1982};
diff --git a/drivers/net/ethernet/amd/ariadne.c b/drivers/net/ethernet/amd/ariadne.c
index f2958df9a1e4..2ea7a231ef10 100644
--- a/drivers/net/ethernet/amd/ariadne.c
+++ b/drivers/net/ethernet/amd/ariadne.c
@@ -682,7 +682,7 @@ static void set_multicast_list(struct net_device *dev)
682} 682}
683 683
684 684
685static void __devexit ariadne_remove_one(struct zorro_dev *z) 685static void ariadne_remove_one(struct zorro_dev *z)
686{ 686{
687 struct net_device *dev = zorro_get_drvdata(z); 687 struct net_device *dev = zorro_get_drvdata(z);
688 688
@@ -692,7 +692,7 @@ static void __devexit ariadne_remove_one(struct zorro_dev *z)
692 free_netdev(dev); 692 free_netdev(dev);
693} 693}
694 694
695static struct zorro_device_id ariadne_zorro_tbl[] __devinitdata = { 695static struct zorro_device_id ariadne_zorro_tbl[] = {
696 { ZORRO_PROD_VILLAGE_TRONIC_ARIADNE }, 696 { ZORRO_PROD_VILLAGE_TRONIC_ARIADNE },
697 { 0 } 697 { 0 }
698}; 698};
@@ -710,7 +710,7 @@ static const struct net_device_ops ariadne_netdev_ops = {
710 .ndo_set_mac_address = eth_mac_addr, 710 .ndo_set_mac_address = eth_mac_addr,
711}; 711};
712 712
713static int __devinit ariadne_init_one(struct zorro_dev *z, 713static int ariadne_init_one(struct zorro_dev *z,
714 const struct zorro_device_id *ent) 714 const struct zorro_device_id *ent)
715{ 715{
716 unsigned long board = z->resource.start; 716 unsigned long board = z->resource.start;
@@ -774,7 +774,7 @@ static struct zorro_driver ariadne_driver = {
774 .name = "ariadne", 774 .name = "ariadne",
775 .id_table = ariadne_zorro_tbl, 775 .id_table = ariadne_zorro_tbl,
776 .probe = ariadne_init_one, 776 .probe = ariadne_init_one,
777 .remove = __devexit_p(ariadne_remove_one), 777 .remove = ariadne_remove_one,
778}; 778};
779 779
780static int __init ariadne_init_module(void) 780static int __init ariadne_init_module(void)
diff --git a/drivers/net/ethernet/amd/au1000_eth.c b/drivers/net/ethernet/amd/au1000_eth.c
index f195acfa2df7..2ea221ed4777 100644
--- a/drivers/net/ethernet/amd/au1000_eth.c
+++ b/drivers/net/ethernet/amd/au1000_eth.c
@@ -1016,7 +1016,7 @@ static const struct net_device_ops au1000_netdev_ops = {
1016 .ndo_change_mtu = eth_change_mtu, 1016 .ndo_change_mtu = eth_change_mtu,
1017}; 1017};
1018 1018
1019static int __devinit au1000_probe(struct platform_device *pdev) 1019static int au1000_probe(struct platform_device *pdev)
1020{ 1020{
1021 static unsigned version_printed; 1021 static unsigned version_printed;
1022 struct au1000_private *aup = NULL; 1022 struct au1000_private *aup = NULL;
@@ -1295,7 +1295,7 @@ out:
1295 return err; 1295 return err;
1296} 1296}
1297 1297
1298static int __devexit au1000_remove(struct platform_device *pdev) 1298static int au1000_remove(struct platform_device *pdev)
1299{ 1299{
1300 struct net_device *dev = platform_get_drvdata(pdev); 1300 struct net_device *dev = platform_get_drvdata(pdev);
1301 struct au1000_private *aup = netdev_priv(dev); 1301 struct au1000_private *aup = netdev_priv(dev);
@@ -1340,7 +1340,7 @@ static int __devexit au1000_remove(struct platform_device *pdev)
1340 1340
1341static struct platform_driver au1000_eth_driver = { 1341static struct platform_driver au1000_eth_driver = {
1342 .probe = au1000_probe, 1342 .probe = au1000_probe,
1343 .remove = __devexit_p(au1000_remove), 1343 .remove = au1000_remove,
1344 .driver = { 1344 .driver = {
1345 .name = "au1000-eth", 1345 .name = "au1000-eth",
1346 .owner = THIS_MODULE, 1346 .owner = THIS_MODULE,
diff --git a/drivers/net/ethernet/amd/declance.c b/drivers/net/ethernet/amd/declance.c
index 7203b522f234..baca0bd1b393 100644
--- a/drivers/net/ethernet/amd/declance.c
+++ b/drivers/net/ethernet/amd/declance.c
@@ -72,7 +72,7 @@
72#include <asm/dec/machtype.h> 72#include <asm/dec/machtype.h>
73#include <asm/dec/system.h> 73#include <asm/dec/system.h>
74 74
75static char version[] __devinitdata = 75static char version[] =
76"declance.c: v0.011 by Linux MIPS DECstation task force\n"; 76"declance.c: v0.011 by Linux MIPS DECstation task force\n";
77 77
78MODULE_AUTHOR("Linux MIPS DECstation task force"); 78MODULE_AUTHOR("Linux MIPS DECstation task force");
@@ -1020,7 +1020,7 @@ static const struct net_device_ops lance_netdev_ops = {
1020 .ndo_set_mac_address = eth_mac_addr, 1020 .ndo_set_mac_address = eth_mac_addr,
1021}; 1021};
1022 1022
1023static int __devinit dec_lance_probe(struct device *bdev, const int type) 1023static int dec_lance_probe(struct device *bdev, const int type)
1024{ 1024{
1025 static unsigned version_printed; 1025 static unsigned version_printed;
1026 static const char fmt[] = "declance%d"; 1026 static const char fmt[] = "declance%d";
@@ -1322,7 +1322,7 @@ static void __exit dec_lance_platform_remove(void)
1322} 1322}
1323 1323
1324#ifdef CONFIG_TC 1324#ifdef CONFIG_TC
1325static int __devinit dec_lance_tc_probe(struct device *dev); 1325static int dec_lance_tc_probe(struct device *dev);
1326static int __exit dec_lance_tc_remove(struct device *dev); 1326static int __exit dec_lance_tc_remove(struct device *dev);
1327 1327
1328static const struct tc_device_id dec_lance_tc_table[] = { 1328static const struct tc_device_id dec_lance_tc_table[] = {
@@ -1341,7 +1341,7 @@ static struct tc_driver dec_lance_tc_driver = {
1341 }, 1341 },
1342}; 1342};
1343 1343
1344static int __devinit dec_lance_tc_probe(struct device *dev) 1344static int dec_lance_tc_probe(struct device *dev)
1345{ 1345{
1346 int status = dec_lance_probe(dev, PMAD_LANCE); 1346 int status = dec_lance_probe(dev, PMAD_LANCE);
1347 if (!status) 1347 if (!status)
diff --git a/drivers/net/ethernet/amd/depca.c b/drivers/net/ethernet/amd/depca.c
index c771de71612a..34a485363d5b 100644
--- a/drivers/net/ethernet/amd/depca.c
+++ b/drivers/net/ethernet/amd/depca.c
@@ -338,21 +338,21 @@ static struct eisa_driver depca_eisa_driver = {
338 .driver = { 338 .driver = {
339 .name = depca_string, 339 .name = depca_string,
340 .probe = depca_eisa_probe, 340 .probe = depca_eisa_probe,
341 .remove = __devexit_p (depca_device_remove) 341 .remove = depca_device_remove
342 } 342 }
343}; 343};
344#endif 344#endif
345 345
346static int depca_isa_probe (struct platform_device *); 346static int depca_isa_probe (struct platform_device *);
347 347
348static int __devexit depca_isa_remove(struct platform_device *pdev) 348static int depca_isa_remove(struct platform_device *pdev)
349{ 349{
350 return depca_device_remove(&pdev->dev); 350 return depca_device_remove(&pdev->dev);
351} 351}
352 352
353static struct platform_driver depca_isa_driver = { 353static struct platform_driver depca_isa_driver = {
354 .probe = depca_isa_probe, 354 .probe = depca_isa_probe,
355 .remove = __devexit_p(depca_isa_remove), 355 .remove = depca_isa_remove,
356 .driver = { 356 .driver = {
357 .name = depca_string, 357 .name = depca_string,
358 }, 358 },
@@ -1320,7 +1320,7 @@ static enum depca_type __init depca_shmem_probe (ulong *mem_start)
1320 return adapter; 1320 return adapter;
1321} 1321}
1322 1322
1323static int __devinit depca_isa_probe (struct platform_device *device) 1323static int depca_isa_probe(struct platform_device *device)
1324{ 1324{
1325 struct net_device *dev; 1325 struct net_device *dev;
1326 struct depca_private *lp; 1326 struct depca_private *lp;
@@ -1412,7 +1412,7 @@ static int __init depca_eisa_probe (struct device *device)
1412} 1412}
1413#endif 1413#endif
1414 1414
1415static int __devexit depca_device_remove (struct device *device) 1415static int depca_device_remove(struct device *device)
1416{ 1416{
1417 struct net_device *dev; 1417 struct net_device *dev;
1418 struct depca_private *lp; 1418 struct depca_private *lp;
diff --git a/drivers/net/ethernet/amd/hplance.c b/drivers/net/ethernet/amd/hplance.c
index 8baff4e5d964..705333e0eff9 100644
--- a/drivers/net/ethernet/amd/hplance.c
+++ b/drivers/net/ethernet/amd/hplance.c
@@ -46,11 +46,11 @@ struct hplance_private {
46 * plus board-specific init, open and close actions. 46 * plus board-specific init, open and close actions.
47 * Oh, and we need to tell the generic code how to read and write LANCE registers... 47 * Oh, and we need to tell the generic code how to read and write LANCE registers...
48 */ 48 */
49static int __devinit hplance_init_one(struct dio_dev *d, 49static int hplance_init_one(struct dio_dev *d,
50 const struct dio_device_id *ent); 50 const struct dio_device_id *ent);
51static void __devinit hplance_init(struct net_device *dev, 51static void hplance_init(struct net_device *dev,
52 struct dio_dev *d); 52 struct dio_dev *d);
53static void __devexit hplance_remove_one(struct dio_dev *d); 53static void hplance_remove_one(struct dio_dev *d);
54static void hplance_writerap(void *priv, unsigned short value); 54static void hplance_writerap(void *priv, unsigned short value);
55static void hplance_writerdp(void *priv, unsigned short value); 55static void hplance_writerdp(void *priv, unsigned short value);
56static unsigned short hplance_readrdp(void *priv); 56static unsigned short hplance_readrdp(void *priv);
@@ -66,7 +66,7 @@ static struct dio_driver hplance_driver = {
66 .name = "hplance", 66 .name = "hplance",
67 .id_table = hplance_dio_tbl, 67 .id_table = hplance_dio_tbl,
68 .probe = hplance_init_one, 68 .probe = hplance_init_one,
69 .remove = __devexit_p(hplance_remove_one), 69 .remove = hplance_remove_one,
70}; 70};
71 71
72static const struct net_device_ops hplance_netdev_ops = { 72static const struct net_device_ops hplance_netdev_ops = {
@@ -83,7 +83,7 @@ static const struct net_device_ops hplance_netdev_ops = {
83}; 83};
84 84
85/* Find all the HP Lance boards and initialise them... */ 85/* Find all the HP Lance boards and initialise them... */
86static int __devinit hplance_init_one(struct dio_dev *d, 86static int hplance_init_one(struct dio_dev *d,
87 const struct dio_device_id *ent) 87 const struct dio_device_id *ent)
88{ 88{
89 struct net_device *dev; 89 struct net_device *dev;
@@ -118,7 +118,7 @@ static int __devinit hplance_init_one(struct dio_dev *d,
118 return err; 118 return err;
119} 119}
120 120
121static void __devexit hplance_remove_one(struct dio_dev *d) 121static void hplance_remove_one(struct dio_dev *d)
122{ 122{
123 struct net_device *dev = dio_get_drvdata(d); 123 struct net_device *dev = dio_get_drvdata(d);
124 124
@@ -128,7 +128,7 @@ static void __devexit hplance_remove_one(struct dio_dev *d)
128} 128}
129 129
130/* Initialise a single lance board at the given DIO device */ 130/* Initialise a single lance board at the given DIO device */
131static void __devinit hplance_init(struct net_device *dev, struct dio_dev *d) 131static void hplance_init(struct net_device *dev, struct dio_dev *d)
132{ 132{
133 unsigned long va = (d->resource.start + DIO_VIRADDRBASE); 133 unsigned long va = (d->resource.start + DIO_VIRADDRBASE);
134 struct hplance_private *lp; 134 struct hplance_private *lp;
diff --git a/drivers/net/ethernet/amd/pcnet32.c b/drivers/net/ethernet/amd/pcnet32.c
index 86b6d8e4e6cd..a227ccdcb9b5 100644
--- a/drivers/net/ethernet/amd/pcnet32.c
+++ b/drivers/net/ethernet/amd/pcnet32.c
@@ -1443,7 +1443,7 @@ static const struct ethtool_ops pcnet32_ethtool_ops = {
1443/* only probes for non-PCI devices, the rest are handled by 1443/* only probes for non-PCI devices, the rest are handled by
1444 * pci_register_driver via pcnet32_probe_pci */ 1444 * pci_register_driver via pcnet32_probe_pci */
1445 1445
1446static void __devinit pcnet32_probe_vlbus(unsigned int *pcnet32_portlist) 1446static void pcnet32_probe_vlbus(unsigned int *pcnet32_portlist)
1447{ 1447{
1448 unsigned int *port, ioaddr; 1448 unsigned int *port, ioaddr;
1449 1449
@@ -1462,7 +1462,7 @@ static void __devinit pcnet32_probe_vlbus(unsigned int *pcnet32_portlist)
1462 } 1462 }
1463} 1463}
1464 1464
1465static int __devinit 1465static int
1466pcnet32_probe_pci(struct pci_dev *pdev, const struct pci_device_id *ent) 1466pcnet32_probe_pci(struct pci_dev *pdev, const struct pci_device_id *ent)
1467{ 1467{
1468 unsigned long ioaddr; 1468 unsigned long ioaddr;
@@ -1521,7 +1521,7 @@ static const struct net_device_ops pcnet32_netdev_ops = {
1521 * Called from both pcnet32_probe_vlbus and pcnet_probe_pci. 1521 * Called from both pcnet32_probe_vlbus and pcnet_probe_pci.
1522 * pdev will be NULL when called from pcnet32_probe_vlbus. 1522 * pdev will be NULL when called from pcnet32_probe_vlbus.
1523 */ 1523 */
1524static int __devinit 1524static int
1525pcnet32_probe1(unsigned long ioaddr, int shared, struct pci_dev *pdev) 1525pcnet32_probe1(unsigned long ioaddr, int shared, struct pci_dev *pdev)
1526{ 1526{
1527 struct pcnet32_private *lp; 1527 struct pcnet32_private *lp;
@@ -2823,7 +2823,7 @@ static int pcnet32_pm_resume(struct pci_dev *pdev)
2823 return 0; 2823 return 0;
2824} 2824}
2825 2825
2826static void __devexit pcnet32_remove_one(struct pci_dev *pdev) 2826static void pcnet32_remove_one(struct pci_dev *pdev)
2827{ 2827{
2828 struct net_device *dev = pci_get_drvdata(pdev); 2828 struct net_device *dev = pci_get_drvdata(pdev);
2829 2829
@@ -2844,7 +2844,7 @@ static void __devexit pcnet32_remove_one(struct pci_dev *pdev)
2844static struct pci_driver pcnet32_driver = { 2844static struct pci_driver pcnet32_driver = {
2845 .name = DRV_NAME, 2845 .name = DRV_NAME,
2846 .probe = pcnet32_probe_pci, 2846 .probe = pcnet32_probe_pci,
2847 .remove = __devexit_p(pcnet32_remove_one), 2847 .remove = pcnet32_remove_one,
2848 .id_table = pcnet32_pci_tbl, 2848 .id_table = pcnet32_pci_tbl,
2849 .suspend = pcnet32_pm_suspend, 2849 .suspend = pcnet32_pm_suspend,
2850 .resume = pcnet32_pm_resume, 2850 .resume = pcnet32_pm_resume,
diff --git a/drivers/net/ethernet/amd/sunlance.c b/drivers/net/ethernet/amd/sunlance.c
index d7a3533d990b..64dbffa0a7e2 100644
--- a/drivers/net/ethernet/amd/sunlance.c
+++ b/drivers/net/ethernet/amd/sunlance.c
@@ -1304,7 +1304,7 @@ static const struct net_device_ops sparc_lance_ops = {
1304 .ndo_validate_addr = eth_validate_addr, 1304 .ndo_validate_addr = eth_validate_addr,
1305}; 1305};
1306 1306
1307static int __devinit sparc_lance_probe_one(struct platform_device *op, 1307static int sparc_lance_probe_one(struct platform_device *op,
1308 struct platform_device *ledma, 1308 struct platform_device *ledma,
1309 struct platform_device *lebuffer) 1309 struct platform_device *lebuffer)
1310{ 1310{
@@ -1488,7 +1488,7 @@ fail:
1488 return -ENODEV; 1488 return -ENODEV;
1489} 1489}
1490 1490
1491static int __devinit sunlance_sbus_probe(struct platform_device *op) 1491static int sunlance_sbus_probe(struct platform_device *op)
1492{ 1492{
1493 struct platform_device *parent = to_platform_device(op->dev.parent); 1493 struct platform_device *parent = to_platform_device(op->dev.parent);
1494 struct device_node *parent_dp = parent->dev.of_node; 1494 struct device_node *parent_dp = parent->dev.of_node;
@@ -1504,7 +1504,7 @@ static int __devinit sunlance_sbus_probe(struct platform_device *op)
1504 return err; 1504 return err;
1505} 1505}
1506 1506
1507static int __devexit sunlance_sbus_remove(struct platform_device *op) 1507static int sunlance_sbus_remove(struct platform_device *op)
1508{ 1508{
1509 struct lance_private *lp = dev_get_drvdata(&op->dev); 1509 struct lance_private *lp = dev_get_drvdata(&op->dev);
1510 struct net_device *net_dev = lp->dev; 1510 struct net_device *net_dev = lp->dev;
@@ -1536,7 +1536,7 @@ static struct platform_driver sunlance_sbus_driver = {
1536 .of_match_table = sunlance_sbus_match, 1536 .of_match_table = sunlance_sbus_match,
1537 }, 1537 },
1538 .probe = sunlance_sbus_probe, 1538 .probe = sunlance_sbus_probe,
1539 .remove = __devexit_p(sunlance_sbus_remove), 1539 .remove = sunlance_sbus_remove,
1540}; 1540};
1541 1541
1542module_platform_driver(sunlance_sbus_driver); 1542module_platform_driver(sunlance_sbus_driver);
diff --git a/drivers/net/ethernet/apple/bmac.c b/drivers/net/ethernet/apple/bmac.c
index 855bdafb1a87..f36bbd6d5085 100644
--- a/drivers/net/ethernet/apple/bmac.c
+++ b/drivers/net/ethernet/apple/bmac.c
@@ -1244,7 +1244,7 @@ static const struct net_device_ops bmac_netdev_ops = {
1244 .ndo_validate_addr = eth_validate_addr, 1244 .ndo_validate_addr = eth_validate_addr,
1245}; 1245};
1246 1246
1247static int __devinit bmac_probe(struct macio_dev *mdev, const struct of_device_id *match) 1247static int bmac_probe(struct macio_dev *mdev, const struct of_device_id *match)
1248{ 1248{
1249 int j, rev, ret; 1249 int j, rev, ret;
1250 struct bmac_data *bp; 1250 struct bmac_data *bp;
@@ -1602,7 +1602,7 @@ bmac_proc_info(char *buffer, char **start, off_t offset, int length)
1602} 1602}
1603#endif 1603#endif
1604 1604
1605static int __devexit bmac_remove(struct macio_dev *mdev) 1605static int bmac_remove(struct macio_dev *mdev)
1606{ 1606{
1607 struct net_device *dev = macio_get_drvdata(mdev); 1607 struct net_device *dev = macio_get_drvdata(mdev);
1608 struct bmac_data *bp = netdev_priv(dev); 1608 struct bmac_data *bp = netdev_priv(dev);
diff --git a/drivers/net/ethernet/apple/mace.c b/drivers/net/ethernet/apple/mace.c
index e1df4b76c885..842fe7684904 100644
--- a/drivers/net/ethernet/apple/mace.c
+++ b/drivers/net/ethernet/apple/mace.c
@@ -106,7 +106,7 @@ static const struct net_device_ops mace_netdev_ops = {
106 .ndo_validate_addr = eth_validate_addr, 106 .ndo_validate_addr = eth_validate_addr,
107}; 107};
108 108
109static int __devinit mace_probe(struct macio_dev *mdev, const struct of_device_id *match) 109static int mace_probe(struct macio_dev *mdev, const struct of_device_id *match)
110{ 110{
111 struct device_node *mace = macio_get_of_node(mdev); 111 struct device_node *mace = macio_get_of_node(mdev);
112 struct net_device *dev; 112 struct net_device *dev;
@@ -271,7 +271,7 @@ static int __devinit mace_probe(struct macio_dev *mdev, const struct of_device_i
271 return rc; 271 return rc;
272} 272}
273 273
274static int __devexit mace_remove(struct macio_dev *mdev) 274static int mace_remove(struct macio_dev *mdev)
275{ 275{
276 struct net_device *dev = macio_get_drvdata(mdev); 276 struct net_device *dev = macio_get_drvdata(mdev);
277 struct mace_data *mp; 277 struct mace_data *mp;
diff --git a/drivers/net/ethernet/apple/macmace.c b/drivers/net/ethernet/apple/macmace.c
index a92ddee7f665..a206779c68cf 100644
--- a/drivers/net/ethernet/apple/macmace.c
+++ b/drivers/net/ethernet/apple/macmace.c
@@ -195,7 +195,7 @@ static const struct net_device_ops mace_netdev_ops = {
195 * model of Macintrash has a MACE (AV macintoshes) 195 * model of Macintrash has a MACE (AV macintoshes)
196 */ 196 */
197 197
198static int __devinit mace_probe(struct platform_device *pdev) 198static int mace_probe(struct platform_device *pdev)
199{ 199{
200 int j; 200 int j;
201 struct mace_data *mp; 201 struct mace_data *mp;
@@ -746,7 +746,7 @@ MODULE_LICENSE("GPL");
746MODULE_DESCRIPTION("Macintosh MACE ethernet driver"); 746MODULE_DESCRIPTION("Macintosh MACE ethernet driver");
747MODULE_ALIAS("platform:macmace"); 747MODULE_ALIAS("platform:macmace");
748 748
749static int __devexit mac_mace_device_remove (struct platform_device *pdev) 749static int mac_mace_device_remove(struct platform_device *pdev)
750{ 750{
751 struct net_device *dev = platform_get_drvdata(pdev); 751 struct net_device *dev = platform_get_drvdata(pdev);
752 struct mace_data *mp = netdev_priv(dev); 752 struct mace_data *mp = netdev_priv(dev);
@@ -768,7 +768,7 @@ static int __devexit mac_mace_device_remove (struct platform_device *pdev)
768 768
769static struct platform_driver mac_mace_driver = { 769static struct platform_driver mac_mace_driver = {
770 .probe = mace_probe, 770 .probe = mace_probe,
771 .remove = __devexit_p(mac_mace_device_remove), 771 .remove = mac_mace_device_remove,
772 .driver = { 772 .driver = {
773 .name = mac_mace_string, 773 .name = mac_mace_string,
774 .owner = THIS_MODULE, 774 .owner = THIS_MODULE,
diff --git a/drivers/net/ethernet/atheros/atl1c/atl1c_main.c b/drivers/net/ethernet/atheros/atl1c/atl1c_main.c
index d19f82f7597a..44bee4a2b9b3 100644
--- a/drivers/net/ethernet/atheros/atl1c/atl1c_main.c
+++ b/drivers/net/ethernet/atheros/atl1c/atl1c_main.c
@@ -643,7 +643,7 @@ static int atl1c_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd)
643 * @adapter: board private structure to initialize 643 * @adapter: board private structure to initialize
644 * 644 *
645 */ 645 */
646static int __devinit atl1c_alloc_queues(struct atl1c_adapter *adapter) 646static int atl1c_alloc_queues(struct atl1c_adapter *adapter)
647{ 647{
648 return 0; 648 return 0;
649} 649}
@@ -702,7 +702,7 @@ struct atl1c_platform_patch {
702 u32 patch_flag; 702 u32 patch_flag;
703#define ATL1C_LINK_PATCH 0x1 703#define ATL1C_LINK_PATCH 0x1
704}; 704};
705static const struct atl1c_platform_patch plats[] __devinitconst = { 705static const struct atl1c_platform_patch plats[] = {
706{0x2060, 0xC1, 0x1019, 0x8152, 0x1}, 706{0x2060, 0xC1, 0x1019, 0x8152, 0x1},
707{0x2060, 0xC1, 0x1019, 0x2060, 0x1}, 707{0x2060, 0xC1, 0x1019, 0x2060, 0x1},
708{0x2060, 0xC1, 0x1019, 0xE000, 0x1}, 708{0x2060, 0xC1, 0x1019, 0xE000, 0x1},
@@ -725,7 +725,7 @@ static const struct atl1c_platform_patch plats[] __devinitconst = {
725{0}, 725{0},
726}; 726};
727 727
728static void __devinit atl1c_patch_assign(struct atl1c_hw *hw) 728static void atl1c_patch_assign(struct atl1c_hw *hw)
729{ 729{
730 struct pci_dev *pdev = hw->adapter->pdev; 730 struct pci_dev *pdev = hw->adapter->pdev;
731 u32 misc_ctrl; 731 u32 misc_ctrl;
@@ -764,7 +764,7 @@ static void __devinit atl1c_patch_assign(struct atl1c_hw *hw)
764 * Fields are initialized based on PCI device information and 764 * Fields are initialized based on PCI device information and
765 * OS network device settings (MTU size). 765 * OS network device settings (MTU size).
766 */ 766 */
767static int __devinit atl1c_sw_init(struct atl1c_adapter *adapter) 767static int atl1c_sw_init(struct atl1c_adapter *adapter)
768{ 768{
769 struct atl1c_hw *hw = &adapter->hw; 769 struct atl1c_hw *hw = &adapter->hw;
770 struct pci_dev *pdev = adapter->pdev; 770 struct pci_dev *pdev = adapter->pdev;
@@ -2442,7 +2442,7 @@ static int atl1c_init_netdev(struct net_device *netdev, struct pci_dev *pdev)
2442 * The OS initialization, configuring of the adapter private structure, 2442 * The OS initialization, configuring of the adapter private structure,
2443 * and a hardware reset occur. 2443 * and a hardware reset occur.
2444 */ 2444 */
2445static int __devinit atl1c_probe(struct pci_dev *pdev, 2445static int atl1c_probe(struct pci_dev *pdev,
2446 const struct pci_device_id *ent) 2446 const struct pci_device_id *ent)
2447{ 2447{
2448 struct net_device *netdev; 2448 struct net_device *netdev;
@@ -2587,7 +2587,7 @@ err_dma:
2587 * Hot-Plug event, or because the driver is going to be removed from 2587 * Hot-Plug event, or because the driver is going to be removed from
2588 * memory. 2588 * memory.
2589 */ 2589 */
2590static void __devexit atl1c_remove(struct pci_dev *pdev) 2590static void atl1c_remove(struct pci_dev *pdev)
2591{ 2591{
2592 struct net_device *netdev = pci_get_drvdata(pdev); 2592 struct net_device *netdev = pci_get_drvdata(pdev);
2593 struct atl1c_adapter *adapter = netdev_priv(netdev); 2593 struct atl1c_adapter *adapter = netdev_priv(netdev);
@@ -2697,7 +2697,7 @@ static struct pci_driver atl1c_driver = {
2697 .name = atl1c_driver_name, 2697 .name = atl1c_driver_name,
2698 .id_table = atl1c_pci_tbl, 2698 .id_table = atl1c_pci_tbl,
2699 .probe = atl1c_probe, 2699 .probe = atl1c_probe,
2700 .remove = __devexit_p(atl1c_remove), 2700 .remove = atl1c_remove,
2701 .shutdown = atl1c_shutdown, 2701 .shutdown = atl1c_shutdown,
2702 .err_handler = &atl1c_err_handler, 2702 .err_handler = &atl1c_err_handler,
2703 .driver.pm = &atl1c_pm_ops, 2703 .driver.pm = &atl1c_pm_ops,
diff --git a/drivers/net/ethernet/atheros/atl1e/atl1e_main.c b/drivers/net/ethernet/atheros/atl1e/atl1e_main.c
index e213da29e73d..dec5d2cfd386 100644
--- a/drivers/net/ethernet/atheros/atl1e/atl1e_main.c
+++ b/drivers/net/ethernet/atheros/atl1e/atl1e_main.c
@@ -534,7 +534,7 @@ static void atl1e_setup_pcicmd(struct pci_dev *pdev)
534 * @adapter: board private structure to initialize 534 * @adapter: board private structure to initialize
535 * 535 *
536 */ 536 */
537static int __devinit atl1e_alloc_queues(struct atl1e_adapter *adapter) 537static int atl1e_alloc_queues(struct atl1e_adapter *adapter)
538{ 538{
539 return 0; 539 return 0;
540} 540}
@@ -547,7 +547,7 @@ static int __devinit atl1e_alloc_queues(struct atl1e_adapter *adapter)
547 * Fields are initialized based on PCI device information and 547 * Fields are initialized based on PCI device information and
548 * OS network device settings (MTU size). 548 * OS network device settings (MTU size).
549 */ 549 */
550static int __devinit atl1e_sw_init(struct atl1e_adapter *adapter) 550static int atl1e_sw_init(struct atl1e_adapter *adapter)
551{ 551{
552 struct atl1e_hw *hw = &adapter->hw; 552 struct atl1e_hw *hw = &adapter->hw;
553 struct pci_dev *pdev = adapter->pdev; 553 struct pci_dev *pdev = adapter->pdev;
@@ -2235,7 +2235,7 @@ static int atl1e_init_netdev(struct net_device *netdev, struct pci_dev *pdev)
2235 * The OS initialization, configuring of the adapter private structure, 2235 * The OS initialization, configuring of the adapter private structure,
2236 * and a hardware reset occur. 2236 * and a hardware reset occur.
2237 */ 2237 */
2238static int __devinit atl1e_probe(struct pci_dev *pdev, 2238static int atl1e_probe(struct pci_dev *pdev,
2239 const struct pci_device_id *ent) 2239 const struct pci_device_id *ent)
2240{ 2240{
2241 struct net_device *netdev; 2241 struct net_device *netdev;
@@ -2387,7 +2387,7 @@ err_dma:
2387 * Hot-Plug event, or because the driver is going to be removed from 2387 * Hot-Plug event, or because the driver is going to be removed from
2388 * memory. 2388 * memory.
2389 */ 2389 */
2390static void __devexit atl1e_remove(struct pci_dev *pdev) 2390static void atl1e_remove(struct pci_dev *pdev)
2391{ 2391{
2392 struct net_device *netdev = pci_get_drvdata(pdev); 2392 struct net_device *netdev = pci_get_drvdata(pdev);
2393 struct atl1e_adapter *adapter = netdev_priv(netdev); 2393 struct atl1e_adapter *adapter = netdev_priv(netdev);
@@ -2499,7 +2499,7 @@ static struct pci_driver atl1e_driver = {
2499 .name = atl1e_driver_name, 2499 .name = atl1e_driver_name,
2500 .id_table = atl1e_pci_tbl, 2500 .id_table = atl1e_pci_tbl,
2501 .probe = atl1e_probe, 2501 .probe = atl1e_probe,
2502 .remove = __devexit_p(atl1e_remove), 2502 .remove = atl1e_remove,
2503 /* Power Management Hooks */ 2503 /* Power Management Hooks */
2504#ifdef CONFIG_PM 2504#ifdef CONFIG_PM
2505 .suspend = atl1e_suspend, 2505 .suspend = atl1e_suspend,
diff --git a/drivers/net/ethernet/atheros/atl1e/atl1e_param.c b/drivers/net/ethernet/atheros/atl1e/atl1e_param.c
index b5086f1e637f..fa314282c9ad 100644
--- a/drivers/net/ethernet/atheros/atl1e/atl1e_param.c
+++ b/drivers/net/ethernet/atheros/atl1e/atl1e_param.c
@@ -40,7 +40,7 @@
40#define ATL1E_PARAM_INIT { [0 ... ATL1E_MAX_NIC] = OPTION_UNSET } 40#define ATL1E_PARAM_INIT { [0 ... ATL1E_MAX_NIC] = OPTION_UNSET }
41 41
42#define ATL1E_PARAM(x, desc) \ 42#define ATL1E_PARAM(x, desc) \
43 static int __devinitdata x[ATL1E_MAX_NIC + 1] = ATL1E_PARAM_INIT; \ 43 static int x[ATL1E_MAX_NIC + 1] = ATL1E_PARAM_INIT; \
44 static unsigned int num_##x; \ 44 static unsigned int num_##x; \
45 module_param_array_named(x, x, int, &num_##x, 0); \ 45 module_param_array_named(x, x, int, &num_##x, 0); \
46 MODULE_PARM_DESC(x, desc); 46 MODULE_PARM_DESC(x, desc);
@@ -116,7 +116,8 @@ struct atl1e_option {
116 } arg; 116 } arg;
117}; 117};
118 118
119static int __devinit atl1e_validate_option(int *value, struct atl1e_option *opt, struct atl1e_adapter *adapter) 119static int atl1e_validate_option(int *value, struct atl1e_option *opt,
120 struct atl1e_adapter *adapter)
120{ 121{
121 if (*value == OPTION_UNSET) { 122 if (*value == OPTION_UNSET) {
122 *value = opt->def; 123 *value = opt->def;
@@ -177,7 +178,7 @@ static int __devinit atl1e_validate_option(int *value, struct atl1e_option *opt,
177 * value exists, a default value is used. The final value is stored 178 * value exists, a default value is used. The final value is stored
178 * in a variable in the adapter structure. 179 * in a variable in the adapter structure.
179 */ 180 */
180void __devinit atl1e_check_options(struct atl1e_adapter *adapter) 181void atl1e_check_options(struct atl1e_adapter *adapter)
181{ 182{
182 int bd = adapter->bd_number; 183 int bd = adapter->bd_number;
183 184
diff --git a/drivers/net/ethernet/atheros/atlx/atl1.c b/drivers/net/ethernet/atheros/atlx/atl1.c
index 7bae2ad7a7c0..3e7327ec3901 100644
--- a/drivers/net/ethernet/atheros/atlx/atl1.c
+++ b/drivers/net/ethernet/atheros/atlx/atl1.c
@@ -113,7 +113,7 @@ static const struct ethtool_ops atl1_ethtool_ops;
113 * 113 *
114 * Default Value: 100 (200us) 114 * Default Value: 100 (200us)
115 */ 115 */
116static int __devinitdata int_mod_timer[ATL1_MAX_NIC+1] = ATL1_PARAM_INIT; 116static int int_mod_timer[ATL1_MAX_NIC+1] = ATL1_PARAM_INIT;
117static unsigned int num_int_mod_timer; 117static unsigned int num_int_mod_timer;
118module_param_array_named(int_mod_timer, int_mod_timer, int, 118module_param_array_named(int_mod_timer, int_mod_timer, int,
119 &num_int_mod_timer, 0); 119 &num_int_mod_timer, 0);
@@ -143,7 +143,7 @@ struct atl1_option {
143 } arg; 143 } arg;
144}; 144};
145 145
146static int __devinit atl1_validate_option(int *value, struct atl1_option *opt, 146static int atl1_validate_option(int *value, struct atl1_option *opt,
147 struct pci_dev *pdev) 147 struct pci_dev *pdev)
148{ 148{
149 if (*value == OPTION_UNSET) { 149 if (*value == OPTION_UNSET) {
@@ -204,7 +204,7 @@ static int __devinit atl1_validate_option(int *value, struct atl1_option *opt,
204 * value exists, a default value is used. The final value is stored 204 * value exists, a default value is used. The final value is stored
205 * in a variable in the adapter structure. 205 * in a variable in the adapter structure.
206 */ 206 */
207static void __devinit atl1_check_options(struct atl1_adapter *adapter) 207static void atl1_check_options(struct atl1_adapter *adapter)
208{ 208{
209 struct pci_dev *pdev = adapter->pdev; 209 struct pci_dev *pdev = adapter->pdev;
210 int bd = adapter->bd_number; 210 int bd = adapter->bd_number;
@@ -945,7 +945,7 @@ static void atl1_set_mac_addr(struct atl1_hw *hw)
945 * Fields are initialized based on PCI device information and 945 * Fields are initialized based on PCI device information and
946 * OS network device settings (MTU size). 946 * OS network device settings (MTU size).
947 */ 947 */
948static int __devinit atl1_sw_init(struct atl1_adapter *adapter) 948static int atl1_sw_init(struct atl1_adapter *adapter)
949{ 949{
950 struct atl1_hw *hw = &adapter->hw; 950 struct atl1_hw *hw = &adapter->hw;
951 struct net_device *netdev = adapter->netdev; 951 struct net_device *netdev = adapter->netdev;
@@ -2934,7 +2934,7 @@ static const struct net_device_ops atl1_netdev_ops = {
2934 * The OS initialization, configuring of the adapter private structure, 2934 * The OS initialization, configuring of the adapter private structure,
2935 * and a hardware reset occur. 2935 * and a hardware reset occur.
2936 */ 2936 */
2937static int __devinit atl1_probe(struct pci_dev *pdev, 2937static int atl1_probe(struct pci_dev *pdev,
2938 const struct pci_device_id *ent) 2938 const struct pci_device_id *ent)
2939{ 2939{
2940 struct net_device *netdev; 2940 struct net_device *netdev;
@@ -3113,7 +3113,7 @@ err_request_regions:
3113 * Hot-Plug event, or because the driver is going to be removed from 3113 * Hot-Plug event, or because the driver is going to be removed from
3114 * memory. 3114 * memory.
3115 */ 3115 */
3116static void __devexit atl1_remove(struct pci_dev *pdev) 3116static void atl1_remove(struct pci_dev *pdev)
3117{ 3117{
3118 struct net_device *netdev = pci_get_drvdata(pdev); 3118 struct net_device *netdev = pci_get_drvdata(pdev);
3119 struct atl1_adapter *adapter; 3119 struct atl1_adapter *adapter;
@@ -3146,7 +3146,7 @@ static struct pci_driver atl1_driver = {
3146 .name = ATLX_DRIVER_NAME, 3146 .name = ATLX_DRIVER_NAME,
3147 .id_table = atl1_pci_tbl, 3147 .id_table = atl1_pci_tbl,
3148 .probe = atl1_probe, 3148 .probe = atl1_probe,
3149 .remove = __devexit_p(atl1_remove), 3149 .remove = atl1_remove,
3150 .shutdown = atl1_shutdown, 3150 .shutdown = atl1_shutdown,
3151 .driver.pm = ATL1_PM_OPS, 3151 .driver.pm = ATL1_PM_OPS,
3152}; 3152};
diff --git a/drivers/net/ethernet/atheros/atlx/atl2.c b/drivers/net/ethernet/atheros/atlx/atl2.c
index 623dd8635c46..7dc9766bb5ba 100644
--- a/drivers/net/ethernet/atheros/atlx/atl2.c
+++ b/drivers/net/ethernet/atheros/atlx/atl2.c
@@ -83,7 +83,7 @@ static void atl2_check_options(struct atl2_adapter *adapter);
83 * Fields are initialized based on PCI device information and 83 * Fields are initialized based on PCI device information and
84 * OS network device settings (MTU size). 84 * OS network device settings (MTU size).
85 */ 85 */
86static int __devinit atl2_sw_init(struct atl2_adapter *adapter) 86static int atl2_sw_init(struct atl2_adapter *adapter)
87{ 87{
88 struct atl2_hw *hw = &adapter->hw; 88 struct atl2_hw *hw = &adapter->hw;
89 struct pci_dev *pdev = adapter->pdev; 89 struct pci_dev *pdev = adapter->pdev;
@@ -1338,7 +1338,7 @@ static const struct net_device_ops atl2_netdev_ops = {
1338 * The OS initialization, configuring of the adapter private structure, 1338 * The OS initialization, configuring of the adapter private structure,
1339 * and a hardware reset occur. 1339 * and a hardware reset occur.
1340 */ 1340 */
1341static int __devinit atl2_probe(struct pci_dev *pdev, 1341static int atl2_probe(struct pci_dev *pdev,
1342 const struct pci_device_id *ent) 1342 const struct pci_device_id *ent)
1343{ 1343{
1344 struct net_device *netdev; 1344 struct net_device *netdev;
@@ -1498,7 +1498,7 @@ err_dma:
1498 */ 1498 */
1499/* FIXME: write the original MAC address back in case it was changed from a 1499/* FIXME: write the original MAC address back in case it was changed from a
1500 * BIOS-set value, as in atl1 -- CHS */ 1500 * BIOS-set value, as in atl1 -- CHS */
1501static void __devexit atl2_remove(struct pci_dev *pdev) 1501static void atl2_remove(struct pci_dev *pdev)
1502{ 1502{
1503 struct net_device *netdev = pci_get_drvdata(pdev); 1503 struct net_device *netdev = pci_get_drvdata(pdev);
1504 struct atl2_adapter *adapter = netdev_priv(netdev); 1504 struct atl2_adapter *adapter = netdev_priv(netdev);
@@ -1705,7 +1705,7 @@ static struct pci_driver atl2_driver = {
1705 .name = atl2_driver_name, 1705 .name = atl2_driver_name,
1706 .id_table = atl2_pci_tbl, 1706 .id_table = atl2_pci_tbl,
1707 .probe = atl2_probe, 1707 .probe = atl2_probe,
1708 .remove = __devexit_p(atl2_remove), 1708 .remove = atl2_remove,
1709 /* Power Management Hooks */ 1709 /* Power Management Hooks */
1710 .suspend = atl2_suspend, 1710 .suspend = atl2_suspend,
1711#ifdef CONFIG_PM 1711#ifdef CONFIG_PM
@@ -2845,12 +2845,12 @@ static void atl2_force_ps(struct atl2_hw *hw)
2845 */ 2845 */
2846 2846
2847#define ATL2_PARAM(X, desc) \ 2847#define ATL2_PARAM(X, desc) \
2848 static const int __devinitconst X[ATL2_MAX_NIC + 1] = ATL2_PARAM_INIT; \ 2848 static const int X[ATL2_MAX_NIC + 1] = ATL2_PARAM_INIT; \
2849 MODULE_PARM(X, "1-" __MODULE_STRING(ATL2_MAX_NIC) "i"); \ 2849 MODULE_PARM(X, "1-" __MODULE_STRING(ATL2_MAX_NIC) "i"); \
2850 MODULE_PARM_DESC(X, desc); 2850 MODULE_PARM_DESC(X, desc);
2851#else 2851#else
2852#define ATL2_PARAM(X, desc) \ 2852#define ATL2_PARAM(X, desc) \
2853 static int __devinitdata X[ATL2_MAX_NIC+1] = ATL2_PARAM_INIT; \ 2853 static int X[ATL2_MAX_NIC+1] = ATL2_PARAM_INIT; \
2854 static unsigned int num_##X; \ 2854 static unsigned int num_##X; \
2855 module_param_array_named(X, X, int, &num_##X, 0); \ 2855 module_param_array_named(X, X, int, &num_##X, 0); \
2856 MODULE_PARM_DESC(X, desc); 2856 MODULE_PARM_DESC(X, desc);
@@ -2934,7 +2934,7 @@ struct atl2_option {
2934 } arg; 2934 } arg;
2935}; 2935};
2936 2936
2937static int __devinit atl2_validate_option(int *value, struct atl2_option *opt) 2937static int atl2_validate_option(int *value, struct atl2_option *opt)
2938{ 2938{
2939 int i; 2939 int i;
2940 struct atl2_opt_list *ent; 2940 struct atl2_opt_list *ent;
@@ -2992,7 +2992,7 @@ static int __devinit atl2_validate_option(int *value, struct atl2_option *opt)
2992 * value exists, a default value is used. The final value is stored 2992 * value exists, a default value is used. The final value is stored
2993 * in a variable in the adapter structure. 2993 * in a variable in the adapter structure.
2994 */ 2994 */
2995static void __devinit atl2_check_options(struct atl2_adapter *adapter) 2995static void atl2_check_options(struct atl2_adapter *adapter)
2996{ 2996{
2997 int val; 2997 int val;
2998 struct atl2_option opt; 2998 struct atl2_option opt;
diff --git a/drivers/net/ethernet/broadcom/b44.c b/drivers/net/ethernet/broadcom/b44.c
index 9786c0e9890e..c64351f486cd 100644
--- a/drivers/net/ethernet/broadcom/b44.c
+++ b/drivers/net/ethernet/broadcom/b44.c
@@ -2083,7 +2083,7 @@ out:
2083 return err; 2083 return err;
2084} 2084}
2085 2085
2086static int __devinit b44_get_invariants(struct b44 *bp) 2086static int b44_get_invariants(struct b44 *bp)
2087{ 2087{
2088 struct ssb_device *sdev = bp->sdev; 2088 struct ssb_device *sdev = bp->sdev;
2089 int err = 0; 2089 int err = 0;
@@ -2141,7 +2141,7 @@ static const struct net_device_ops b44_netdev_ops = {
2141#endif 2141#endif
2142}; 2142};
2143 2143
2144static int __devinit b44_init_one(struct ssb_device *sdev, 2144static int b44_init_one(struct ssb_device *sdev,
2145 const struct ssb_device_id *ent) 2145 const struct ssb_device_id *ent)
2146{ 2146{
2147 struct net_device *dev; 2147 struct net_device *dev;
@@ -2249,7 +2249,7 @@ out:
2249 return err; 2249 return err;
2250} 2250}
2251 2251
2252static void __devexit b44_remove_one(struct ssb_device *sdev) 2252static void b44_remove_one(struct ssb_device *sdev)
2253{ 2253{
2254 struct net_device *dev = ssb_get_drvdata(sdev); 2254 struct net_device *dev = ssb_get_drvdata(sdev);
2255 2255
@@ -2340,7 +2340,7 @@ static struct ssb_driver b44_ssb_driver = {
2340 .name = DRV_MODULE_NAME, 2340 .name = DRV_MODULE_NAME,
2341 .id_table = b44_ssb_tbl, 2341 .id_table = b44_ssb_tbl,
2342 .probe = b44_init_one, 2342 .probe = b44_init_one,
2343 .remove = __devexit_p(b44_remove_one), 2343 .remove = b44_remove_one,
2344 .suspend = b44_suspend, 2344 .suspend = b44_suspend,
2345 .resume = b44_resume, 2345 .resume = b44_resume,
2346}; 2346};
diff --git a/drivers/net/ethernet/broadcom/bcm63xx_enet.c b/drivers/net/ethernet/broadcom/bcm63xx_enet.c
index c7ca7ec065ee..39387d67b722 100644
--- a/drivers/net/ethernet/broadcom/bcm63xx_enet.c
+++ b/drivers/net/ethernet/broadcom/bcm63xx_enet.c
@@ -1612,7 +1612,7 @@ static const struct net_device_ops bcm_enet_ops = {
1612/* 1612/*
1613 * allocate netdevice, request register memory and register device. 1613 * allocate netdevice, request register memory and register device.
1614 */ 1614 */
1615static int __devinit bcm_enet_probe(struct platform_device *pdev) 1615static int bcm_enet_probe(struct platform_device *pdev)
1616{ 1616{
1617 struct bcm_enet_priv *priv; 1617 struct bcm_enet_priv *priv;
1618 struct net_device *dev; 1618 struct net_device *dev;
@@ -1830,7 +1830,7 @@ out:
1830/* 1830/*
1831 * exit func, stops hardware and unregisters netdevice 1831 * exit func, stops hardware and unregisters netdevice
1832 */ 1832 */
1833static int __devexit bcm_enet_remove(struct platform_device *pdev) 1833static int bcm_enet_remove(struct platform_device *pdev)
1834{ 1834{
1835 struct bcm_enet_priv *priv; 1835 struct bcm_enet_priv *priv;
1836 struct net_device *dev; 1836 struct net_device *dev;
@@ -1877,7 +1877,7 @@ static int __devexit bcm_enet_remove(struct platform_device *pdev)
1877 1877
1878struct platform_driver bcm63xx_enet_driver = { 1878struct platform_driver bcm63xx_enet_driver = {
1879 .probe = bcm_enet_probe, 1879 .probe = bcm_enet_probe,
1880 .remove = __devexit_p(bcm_enet_remove), 1880 .remove = bcm_enet_remove,
1881 .driver = { 1881 .driver = {
1882 .name = "bcm63xx_enet", 1882 .name = "bcm63xx_enet",
1883 .owner = THIS_MODULE, 1883 .owner = THIS_MODULE,
@@ -1887,7 +1887,7 @@ struct platform_driver bcm63xx_enet_driver = {
1887/* 1887/*
1888 * reserve & remap memory space shared between all macs 1888 * reserve & remap memory space shared between all macs
1889 */ 1889 */
1890static int __devinit bcm_enet_shared_probe(struct platform_device *pdev) 1890static int bcm_enet_shared_probe(struct platform_device *pdev)
1891{ 1891{
1892 struct resource *res; 1892 struct resource *res;
1893 unsigned int iomem_size; 1893 unsigned int iomem_size;
@@ -1908,7 +1908,7 @@ static int __devinit bcm_enet_shared_probe(struct platform_device *pdev)
1908 return 0; 1908 return 0;
1909} 1909}
1910 1910
1911static int __devexit bcm_enet_shared_remove(struct platform_device *pdev) 1911static int bcm_enet_shared_remove(struct platform_device *pdev)
1912{ 1912{
1913 struct resource *res; 1913 struct resource *res;
1914 1914
@@ -1924,7 +1924,7 @@ static int __devexit bcm_enet_shared_remove(struct platform_device *pdev)
1924 */ 1924 */
1925struct platform_driver bcm63xx_enet_shared_driver = { 1925struct platform_driver bcm63xx_enet_shared_driver = {
1926 .probe = bcm_enet_shared_probe, 1926 .probe = bcm_enet_shared_probe,
1927 .remove = __devexit_p(bcm_enet_shared_remove), 1927 .remove = bcm_enet_shared_remove,
1928 .driver = { 1928 .driver = {
1929 .name = "bcm63xx_enet_shared", 1929 .name = "bcm63xx_enet_shared",
1930 .owner = THIS_MODULE, 1930 .owner = THIS_MODULE,
diff --git a/drivers/net/ethernet/broadcom/bnx2.c b/drivers/net/ethernet/broadcom/bnx2.c
index d4310700c7a7..e264e960a762 100644
--- a/drivers/net/ethernet/broadcom/bnx2.c
+++ b/drivers/net/ethernet/broadcom/bnx2.c
@@ -71,7 +71,7 @@
71/* Time in jiffies before concluding the transmitter is hung. */ 71/* Time in jiffies before concluding the transmitter is hung. */
72#define TX_TIMEOUT (5*HZ) 72#define TX_TIMEOUT (5*HZ)
73 73
74static char version[] __devinitdata = 74static char version[] =
75 "Broadcom NetXtreme II Gigabit Ethernet Driver " DRV_MODULE_NAME " v" DRV_MODULE_VERSION " (" DRV_MODULE_RELDATE ")\n"; 75 "Broadcom NetXtreme II Gigabit Ethernet Driver " DRV_MODULE_NAME " v" DRV_MODULE_VERSION " (" DRV_MODULE_RELDATE ")\n";
76 76
77MODULE_AUTHOR("Michael Chan <mchan@broadcom.com>"); 77MODULE_AUTHOR("Michael Chan <mchan@broadcom.com>");
@@ -106,7 +106,7 @@ typedef enum {
106/* indexed by board_t, above */ 106/* indexed by board_t, above */
107static struct { 107static struct {
108 char *name; 108 char *name;
109} board_info[] __devinitdata = { 109} board_info[] = {
110 { "Broadcom NetXtreme II BCM5706 1000Base-T" }, 110 { "Broadcom NetXtreme II BCM5706 1000Base-T" },
111 { "HP NC370T Multifunction Gigabit Server Adapter" }, 111 { "HP NC370T Multifunction Gigabit Server Adapter" },
112 { "HP NC370i Multifunction Gigabit Server Adapter" }, 112 { "HP NC370i Multifunction Gigabit Server Adapter" },
@@ -7896,7 +7896,7 @@ poll_bnx2(struct net_device *dev)
7896} 7896}
7897#endif 7897#endif
7898 7898
7899static void __devinit 7899static void
7900bnx2_get_5709_media(struct bnx2 *bp) 7900bnx2_get_5709_media(struct bnx2 *bp)
7901{ 7901{
7902 u32 val = REG_RD(bp, BNX2_MISC_DUAL_MEDIA_CTRL); 7902 u32 val = REG_RD(bp, BNX2_MISC_DUAL_MEDIA_CTRL);
@@ -7934,7 +7934,7 @@ bnx2_get_5709_media(struct bnx2 *bp)
7934 } 7934 }
7935} 7935}
7936 7936
7937static void __devinit 7937static void
7938bnx2_get_pci_speed(struct bnx2 *bp) 7938bnx2_get_pci_speed(struct bnx2 *bp)
7939{ 7939{
7940 u32 reg; 7940 u32 reg;
@@ -7986,7 +7986,7 @@ bnx2_get_pci_speed(struct bnx2 *bp)
7986 7986
7987} 7987}
7988 7988
7989static void __devinit 7989static void
7990bnx2_read_vpd_fw_ver(struct bnx2 *bp) 7990bnx2_read_vpd_fw_ver(struct bnx2 *bp)
7991{ 7991{
7992 int rc, i, j; 7992 int rc, i, j;
@@ -8054,7 +8054,7 @@ vpd_done:
8054 kfree(data); 8054 kfree(data);
8055} 8055}
8056 8056
8057static int __devinit 8057static int
8058bnx2_init_board(struct pci_dev *pdev, struct net_device *dev) 8058bnx2_init_board(struct pci_dev *pdev, struct net_device *dev)
8059{ 8059{
8060 struct bnx2 *bp; 8060 struct bnx2 *bp;
@@ -8439,7 +8439,7 @@ err_out:
8439 return rc; 8439 return rc;
8440} 8440}
8441 8441
8442static char * __devinit 8442static char *
8443bnx2_bus_string(struct bnx2 *bp, char *str) 8443bnx2_bus_string(struct bnx2 *bp, char *str)
8444{ 8444{
8445 char *s = str; 8445 char *s = str;
@@ -8505,7 +8505,7 @@ static const struct net_device_ops bnx2_netdev_ops = {
8505#endif 8505#endif
8506}; 8506};
8507 8507
8508static int __devinit 8508static int
8509bnx2_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) 8509bnx2_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
8510{ 8510{
8511 static int version_printed = 0; 8511 static int version_printed = 0;
@@ -8573,7 +8573,7 @@ err_free:
8573 return rc; 8573 return rc;
8574} 8574}
8575 8575
8576static void __devexit 8576static void
8577bnx2_remove_one(struct pci_dev *pdev) 8577bnx2_remove_one(struct pci_dev *pdev)
8578{ 8578{
8579 struct net_device *dev = pci_get_drvdata(pdev); 8579 struct net_device *dev = pci_get_drvdata(pdev);
@@ -8752,7 +8752,7 @@ static struct pci_driver bnx2_pci_driver = {
8752 .name = DRV_MODULE_NAME, 8752 .name = DRV_MODULE_NAME,
8753 .id_table = bnx2_pci_tbl, 8753 .id_table = bnx2_pci_tbl,
8754 .probe = bnx2_init_one, 8754 .probe = bnx2_init_one,
8755 .remove = __devexit_p(bnx2_remove_one), 8755 .remove = bnx2_remove_one,
8756 .suspend = bnx2_suspend, 8756 .suspend = bnx2_suspend,
8757 .resume = bnx2_resume, 8757 .resume = bnx2_resume,
8758 .err_handler = &bnx2_err_handler, 8758 .err_handler = &bnx2_err_handler,
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
index 5e07aa5e1aea..8ab1492cedd1 100644
--- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
+++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
@@ -3875,7 +3875,7 @@ void bnx2x_free_mem_bp(struct bnx2x *bp)
3875 kfree(bp->ilt); 3875 kfree(bp->ilt);
3876} 3876}
3877 3877
3878int __devinit bnx2x_alloc_mem_bp(struct bnx2x *bp) 3878int bnx2x_alloc_mem_bp(struct bnx2x *bp)
3879{ 3879{
3880 struct bnx2x_fastpath *fp; 3880 struct bnx2x_fastpath *fp;
3881 struct msix_entry *tbl; 3881 struct msix_entry *tbl;
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h
index 32c3ab72718c..0991534f61da 100644
--- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h
+++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h
@@ -563,7 +563,7 @@ int bnx2x_poll(struct napi_struct *napi, int budget);
563 * 563 *
564 * @bp: driver handle 564 * @bp: driver handle
565 */ 565 */
566int __devinit bnx2x_alloc_mem_bp(struct bnx2x *bp); 566int bnx2x_alloc_mem_bp(struct bnx2x *bp);
567 567
568/** 568/**
569 * bnx2x_free_mem_bp - release memories outsize main driver structure 569 * bnx2x_free_mem_bp - release memories outsize main driver structure
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
index 6064294802af..75aea83ee68d 100644
--- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
+++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
@@ -79,7 +79,7 @@
79/* Time in jiffies before concluding the transmitter is hung */ 79/* Time in jiffies before concluding the transmitter is hung */
80#define TX_TIMEOUT (5*HZ) 80#define TX_TIMEOUT (5*HZ)
81 81
82static char version[] __devinitdata = 82static char version[] =
83 "Broadcom NetXtreme II 5771x/578xx 10/20-Gigabit Ethernet Driver " 83 "Broadcom NetXtreme II 5771x/578xx 10/20-Gigabit Ethernet Driver "
84 DRV_MODULE_NAME " " DRV_MODULE_VERSION " (" DRV_MODULE_RELDATE ")\n"; 84 DRV_MODULE_NAME " " DRV_MODULE_VERSION " (" DRV_MODULE_RELDATE ")\n";
85 85
@@ -149,7 +149,7 @@ enum bnx2x_board_type {
149/* indexed by board_type, above */ 149/* indexed by board_type, above */
150static struct { 150static struct {
151 char *name; 151 char *name;
152} board_info[] __devinitdata = { 152} board_info[] = {
153 { "Broadcom NetXtreme II BCM57710 10 Gigabit PCIe [Everest]" }, 153 { "Broadcom NetXtreme II BCM57710 10 Gigabit PCIe [Everest]" },
154 { "Broadcom NetXtreme II BCM57711 10 Gigabit PCIe" }, 154 { "Broadcom NetXtreme II BCM57711 10 Gigabit PCIe" },
155 { "Broadcom NetXtreme II BCM57711E 10 Gigabit PCIe" }, 155 { "Broadcom NetXtreme II BCM57711E 10 Gigabit PCIe" },
@@ -9420,7 +9420,7 @@ static inline void bnx2x_undi_int_disable(struct bnx2x *bp)
9420 bnx2x_undi_int_disable_e1h(bp); 9420 bnx2x_undi_int_disable_e1h(bp);
9421} 9421}
9422 9422
9423static void __devinit bnx2x_prev_unload_close_mac(struct bnx2x *bp) 9423static void bnx2x_prev_unload_close_mac(struct bnx2x *bp)
9424{ 9424{
9425 u32 val, base_addr, offset, mask, reset_reg; 9425 u32 val, base_addr, offset, mask, reset_reg;
9426 bool mac_stopped = false; 9426 bool mac_stopped = false;
@@ -9487,7 +9487,7 @@ static void __devinit bnx2x_prev_unload_close_mac(struct bnx2x *bp)
9487#define BNX2X_PREV_UNDI_BD(val) ((val) >> 16 & 0xffff) 9487#define BNX2X_PREV_UNDI_BD(val) ((val) >> 16 & 0xffff)
9488#define BNX2X_PREV_UNDI_PROD(rcq, bd) ((bd) << 16 | (rcq)) 9488#define BNX2X_PREV_UNDI_PROD(rcq, bd) ((bd) << 16 | (rcq))
9489 9489
9490static void __devinit bnx2x_prev_unload_undi_inc(struct bnx2x *bp, u8 port, 9490static void bnx2x_prev_unload_undi_inc(struct bnx2x *bp, u8 port,
9491 u8 inc) 9491 u8 inc)
9492{ 9492{
9493 u16 rcq, bd; 9493 u16 rcq, bd;
@@ -9503,7 +9503,7 @@ static void __devinit bnx2x_prev_unload_undi_inc(struct bnx2x *bp, u8 port,
9503 port, bd, rcq); 9503 port, bd, rcq);
9504} 9504}
9505 9505
9506static int __devinit bnx2x_prev_mcp_done(struct bnx2x *bp) 9506static int bnx2x_prev_mcp_done(struct bnx2x *bp)
9507{ 9507{
9508 u32 rc = bnx2x_fw_command(bp, DRV_MSG_CODE_UNLOAD_DONE, 9508 u32 rc = bnx2x_fw_command(bp, DRV_MSG_CODE_UNLOAD_DONE,
9509 DRV_MSG_CODE_UNLOAD_SKIP_LINK_RESET); 9509 DRV_MSG_CODE_UNLOAD_SKIP_LINK_RESET);
@@ -9515,7 +9515,7 @@ static int __devinit bnx2x_prev_mcp_done(struct bnx2x *bp)
9515 return 0; 9515 return 0;
9516} 9516}
9517 9517
9518static bool __devinit bnx2x_prev_is_path_marked(struct bnx2x *bp) 9518static bool bnx2x_prev_is_path_marked(struct bnx2x *bp)
9519{ 9519{
9520 struct bnx2x_prev_path_list *tmp_list; 9520 struct bnx2x_prev_path_list *tmp_list;
9521 int rc = false; 9521 int rc = false;
@@ -9539,7 +9539,7 @@ static bool __devinit bnx2x_prev_is_path_marked(struct bnx2x *bp)
9539 return rc; 9539 return rc;
9540} 9540}
9541 9541
9542static int __devinit bnx2x_prev_mark_path(struct bnx2x *bp) 9542static int bnx2x_prev_mark_path(struct bnx2x *bp)
9543{ 9543{
9544 struct bnx2x_prev_path_list *tmp_list; 9544 struct bnx2x_prev_path_list *tmp_list;
9545 int rc; 9545 int rc;
@@ -9568,7 +9568,7 @@ static int __devinit bnx2x_prev_mark_path(struct bnx2x *bp)
9568 return rc; 9568 return rc;
9569} 9569}
9570 9570
9571static int __devinit bnx2x_do_flr(struct bnx2x *bp) 9571static int bnx2x_do_flr(struct bnx2x *bp)
9572{ 9572{
9573 int i; 9573 int i;
9574 u16 status; 9574 u16 status;
@@ -9608,7 +9608,7 @@ clear:
9608 return 0; 9608 return 0;
9609} 9609}
9610 9610
9611static int __devinit bnx2x_prev_unload_uncommon(struct bnx2x *bp) 9611static int bnx2x_prev_unload_uncommon(struct bnx2x *bp)
9612{ 9612{
9613 int rc; 9613 int rc;
9614 9614
@@ -9646,7 +9646,7 @@ static int __devinit bnx2x_prev_unload_uncommon(struct bnx2x *bp)
9646 return rc; 9646 return rc;
9647} 9647}
9648 9648
9649static int __devinit bnx2x_prev_unload_common(struct bnx2x *bp) 9649static int bnx2x_prev_unload_common(struct bnx2x *bp)
9650{ 9650{
9651 u32 reset_reg, tmp_reg = 0, rc; 9651 u32 reset_reg, tmp_reg = 0, rc;
9652 /* It is possible a previous function received 'common' answer, 9652 /* It is possible a previous function received 'common' answer,
@@ -9729,7 +9729,7 @@ static int __devinit bnx2x_prev_unload_common(struct bnx2x *bp)
9729 * to clear the interrupt which detected this from the pglueb and the was done 9729 * to clear the interrupt which detected this from the pglueb and the was done
9730 * bit 9730 * bit
9731 */ 9731 */
9732static void __devinit bnx2x_prev_interrupted_dmae(struct bnx2x *bp) 9732static void bnx2x_prev_interrupted_dmae(struct bnx2x *bp)
9733{ 9733{
9734 if (!CHIP_IS_E1x(bp)) { 9734 if (!CHIP_IS_E1x(bp)) {
9735 u32 val = REG_RD(bp, PGLUE_B_REG_PGLUE_B_INT_STS); 9735 u32 val = REG_RD(bp, PGLUE_B_REG_PGLUE_B_INT_STS);
@@ -9741,7 +9741,7 @@ static void __devinit bnx2x_prev_interrupted_dmae(struct bnx2x *bp)
9741 } 9741 }
9742} 9742}
9743 9743
9744static int __devinit bnx2x_prev_unload(struct bnx2x *bp) 9744static int bnx2x_prev_unload(struct bnx2x *bp)
9745{ 9745{
9746 int time_counter = 10; 9746 int time_counter = 10;
9747 u32 rc, fw, hw_lock_reg, hw_lock_val; 9747 u32 rc, fw, hw_lock_reg, hw_lock_val;
@@ -9808,7 +9808,7 @@ static int __devinit bnx2x_prev_unload(struct bnx2x *bp)
9808 return rc; 9808 return rc;
9809} 9809}
9810 9810
9811static void __devinit bnx2x_get_common_hwinfo(struct bnx2x *bp) 9811static void bnx2x_get_common_hwinfo(struct bnx2x *bp)
9812{ 9812{
9813 u32 val, val2, val3, val4, id, boot_mode; 9813 u32 val, val2, val3, val4, id, boot_mode;
9814 u16 pmc; 9814 u16 pmc;
@@ -9991,7 +9991,7 @@ static void __devinit bnx2x_get_common_hwinfo(struct bnx2x *bp)
9991#define IGU_FID(val) GET_FIELD((val), IGU_REG_MAPPING_MEMORY_FID) 9991#define IGU_FID(val) GET_FIELD((val), IGU_REG_MAPPING_MEMORY_FID)
9992#define IGU_VEC(val) GET_FIELD((val), IGU_REG_MAPPING_MEMORY_VECTOR) 9992#define IGU_VEC(val) GET_FIELD((val), IGU_REG_MAPPING_MEMORY_VECTOR)
9993 9993
9994static int __devinit bnx2x_get_igu_cam_info(struct bnx2x *bp) 9994static int bnx2x_get_igu_cam_info(struct bnx2x *bp)
9995{ 9995{
9996 int pfid = BP_FUNC(bp); 9996 int pfid = BP_FUNC(bp);
9997 int igu_sb_id; 9997 int igu_sb_id;
@@ -10050,7 +10050,7 @@ static int __devinit bnx2x_get_igu_cam_info(struct bnx2x *bp)
10050 return 0; 10050 return 0;
10051} 10051}
10052 10052
10053static void __devinit bnx2x_link_settings_supported(struct bnx2x *bp, 10053static void bnx2x_link_settings_supported(struct bnx2x *bp,
10054 u32 switch_cfg) 10054 u32 switch_cfg)
10055{ 10055{
10056 int cfg_size = 0, idx, port = BP_PORT(bp); 10056 int cfg_size = 0, idx, port = BP_PORT(bp);
@@ -10149,7 +10149,7 @@ static void __devinit bnx2x_link_settings_supported(struct bnx2x *bp,
10149 bp->port.supported[1]); 10149 bp->port.supported[1]);
10150} 10150}
10151 10151
10152static void __devinit bnx2x_link_settings_requested(struct bnx2x *bp) 10152static void bnx2x_link_settings_requested(struct bnx2x *bp)
10153{ 10153{
10154 u32 link_config, idx, cfg_size = 0; 10154 u32 link_config, idx, cfg_size = 0;
10155 bp->port.advertising[0] = 0; 10155 bp->port.advertising[0] = 0;
@@ -10335,7 +10335,7 @@ static void __devinit bnx2x_link_settings_requested(struct bnx2x *bp)
10335 } 10335 }
10336} 10336}
10337 10337
10338static void __devinit bnx2x_set_mac_buf(u8 *mac_buf, u32 mac_lo, u16 mac_hi) 10338static void bnx2x_set_mac_buf(u8 *mac_buf, u32 mac_lo, u16 mac_hi)
10339{ 10339{
10340 mac_hi = cpu_to_be16(mac_hi); 10340 mac_hi = cpu_to_be16(mac_hi);
10341 mac_lo = cpu_to_be32(mac_lo); 10341 mac_lo = cpu_to_be32(mac_lo);
@@ -10343,7 +10343,7 @@ static void __devinit bnx2x_set_mac_buf(u8 *mac_buf, u32 mac_lo, u16 mac_hi)
10343 memcpy(mac_buf + sizeof(mac_hi), &mac_lo, sizeof(mac_lo)); 10343 memcpy(mac_buf + sizeof(mac_hi), &mac_lo, sizeof(mac_lo));
10344} 10344}
10345 10345
10346static void __devinit bnx2x_get_port_hwinfo(struct bnx2x *bp) 10346static void bnx2x_get_port_hwinfo(struct bnx2x *bp)
10347{ 10347{
10348 int port = BP_PORT(bp); 10348 int port = BP_PORT(bp);
10349 u32 config; 10349 u32 config;
@@ -10447,7 +10447,7 @@ void bnx2x_get_iscsi_info(struct bnx2x *bp)
10447 10447
10448} 10448}
10449 10449
10450static void __devinit bnx2x_get_ext_wwn_info(struct bnx2x *bp, int func) 10450static void bnx2x_get_ext_wwn_info(struct bnx2x *bp, int func)
10451{ 10451{
10452 /* Port info */ 10452 /* Port info */
10453 bp->cnic_eth_dev.fcoe_wwn_port_name_hi = 10453 bp->cnic_eth_dev.fcoe_wwn_port_name_hi =
@@ -10461,7 +10461,7 @@ static void __devinit bnx2x_get_ext_wwn_info(struct bnx2x *bp, int func)
10461 bp->cnic_eth_dev.fcoe_wwn_node_name_lo = 10461 bp->cnic_eth_dev.fcoe_wwn_node_name_lo =
10462 MF_CFG_RD(bp, func_ext_config[func].fcoe_wwn_node_name_lower); 10462 MF_CFG_RD(bp, func_ext_config[func].fcoe_wwn_node_name_lower);
10463} 10463}
10464static void __devinit bnx2x_get_fcoe_info(struct bnx2x *bp) 10464static void bnx2x_get_fcoe_info(struct bnx2x *bp)
10465{ 10465{
10466 int port = BP_PORT(bp); 10466 int port = BP_PORT(bp);
10467 int func = BP_ABS_FUNC(bp); 10467 int func = BP_ABS_FUNC(bp);
@@ -10521,7 +10521,7 @@ static void __devinit bnx2x_get_fcoe_info(struct bnx2x *bp)
10521 bp->flags |= NO_FCOE_FLAG; 10521 bp->flags |= NO_FCOE_FLAG;
10522} 10522}
10523 10523
10524static void __devinit bnx2x_get_cnic_info(struct bnx2x *bp) 10524static void bnx2x_get_cnic_info(struct bnx2x *bp)
10525{ 10525{
10526 /* 10526 /*
10527 * iSCSI may be dynamically disabled but reading 10527 * iSCSI may be dynamically disabled but reading
@@ -10532,7 +10532,7 @@ static void __devinit bnx2x_get_cnic_info(struct bnx2x *bp)
10532 bnx2x_get_fcoe_info(bp); 10532 bnx2x_get_fcoe_info(bp);
10533} 10533}
10534 10534
10535static void __devinit bnx2x_get_cnic_mac_hwinfo(struct bnx2x *bp) 10535static void bnx2x_get_cnic_mac_hwinfo(struct bnx2x *bp)
10536{ 10536{
10537 u32 val, val2; 10537 u32 val, val2;
10538 int func = BP_ABS_FUNC(bp); 10538 int func = BP_ABS_FUNC(bp);
@@ -10626,7 +10626,7 @@ static void __devinit bnx2x_get_cnic_mac_hwinfo(struct bnx2x *bp)
10626 } 10626 }
10627} 10627}
10628 10628
10629static void __devinit bnx2x_get_mac_hwinfo(struct bnx2x *bp) 10629static void bnx2x_get_mac_hwinfo(struct bnx2x *bp)
10630{ 10630{
10631 u32 val, val2; 10631 u32 val, val2;
10632 int func = BP_ABS_FUNC(bp); 10632 int func = BP_ABS_FUNC(bp);
@@ -10667,7 +10667,7 @@ static void __devinit bnx2x_get_mac_hwinfo(struct bnx2x *bp)
10667 bp->dev->dev_addr); 10667 bp->dev->dev_addr);
10668} 10668}
10669 10669
10670static bool __devinit bnx2x_get_dropless_info(struct bnx2x *bp) 10670static bool bnx2x_get_dropless_info(struct bnx2x *bp)
10671{ 10671{
10672 int tmp; 10672 int tmp;
10673 u32 cfg; 10673 u32 cfg;
@@ -10687,7 +10687,7 @@ static bool __devinit bnx2x_get_dropless_info(struct bnx2x *bp)
10687 return cfg; 10687 return cfg;
10688} 10688}
10689 10689
10690static int __devinit bnx2x_get_hwinfo(struct bnx2x *bp) 10690static int bnx2x_get_hwinfo(struct bnx2x *bp)
10691{ 10691{
10692 int /*abs*/func = BP_ABS_FUNC(bp); 10692 int /*abs*/func = BP_ABS_FUNC(bp);
10693 int vn; 10693 int vn;
@@ -10913,7 +10913,7 @@ static int __devinit bnx2x_get_hwinfo(struct bnx2x *bp)
10913 return rc; 10913 return rc;
10914} 10914}
10915 10915
10916static void __devinit bnx2x_read_fwinfo(struct bnx2x *bp) 10916static void bnx2x_read_fwinfo(struct bnx2x *bp)
10917{ 10917{
10918 int cnt, i, block_end, rodi; 10918 int cnt, i, block_end, rodi;
10919 char vpd_start[BNX2X_VPD_LEN+1]; 10919 char vpd_start[BNX2X_VPD_LEN+1];
@@ -10998,7 +10998,7 @@ out_not_found:
10998 return; 10998 return;
10999} 10999}
11000 11000
11001static void __devinit bnx2x_set_modes_bitmap(struct bnx2x *bp) 11001static void bnx2x_set_modes_bitmap(struct bnx2x *bp)
11002{ 11002{
11003 u32 flags = 0; 11003 u32 flags = 0;
11004 11004
@@ -11048,7 +11048,7 @@ static void __devinit bnx2x_set_modes_bitmap(struct bnx2x *bp)
11048 INIT_MODE_FLAGS(bp) = flags; 11048 INIT_MODE_FLAGS(bp) = flags;
11049} 11049}
11050 11050
11051static int __devinit bnx2x_init_bp(struct bnx2x *bp) 11051static int bnx2x_init_bp(struct bnx2x *bp)
11052{ 11052{
11053 int func; 11053 int func;
11054 int rc; 11054 int rc;
@@ -11531,7 +11531,7 @@ static int bnx2x_set_coherency_mask(struct bnx2x *bp)
11531 return 0; 11531 return 0;
11532} 11532}
11533 11533
11534static int __devinit bnx2x_init_dev(struct pci_dev *pdev, 11534static int bnx2x_init_dev(struct pci_dev *pdev,
11535 struct net_device *dev, 11535 struct net_device *dev,
11536 unsigned long board_type) 11536 unsigned long board_type)
11537{ 11537{
@@ -11713,7 +11713,7 @@ err_out:
11713 return rc; 11713 return rc;
11714} 11714}
11715 11715
11716static void __devinit bnx2x_get_pcie_width_speed(struct bnx2x *bp, 11716static void bnx2x_get_pcie_width_speed(struct bnx2x *bp,
11717 int *width, int *speed) 11717 int *width, int *speed)
11718{ 11718{
11719 u32 val = REG_RD(bp, PCICFG_OFFSET + PCICFG_LINK_CONTROL); 11719 u32 val = REG_RD(bp, PCICFG_OFFSET + PCICFG_LINK_CONTROL);
@@ -12018,7 +12018,7 @@ static int bnx2x_get_num_non_def_sbs(struct pci_dev *pdev,
12018 return control & PCI_MSIX_FLAGS_QSIZE; 12018 return control & PCI_MSIX_FLAGS_QSIZE;
12019} 12019}
12020 12020
12021static int __devinit bnx2x_init_one(struct pci_dev *pdev, 12021static int bnx2x_init_one(struct pci_dev *pdev,
12022 const struct pci_device_id *ent) 12022 const struct pci_device_id *ent)
12023{ 12023{
12024 struct net_device *dev = NULL; 12024 struct net_device *dev = NULL;
@@ -12207,7 +12207,7 @@ init_one_exit:
12207 return rc; 12207 return rc;
12208} 12208}
12209 12209
12210static void __devexit bnx2x_remove_one(struct pci_dev *pdev) 12210static void bnx2x_remove_one(struct pci_dev *pdev)
12211{ 12211{
12212 struct net_device *dev = pci_get_drvdata(pdev); 12212 struct net_device *dev = pci_get_drvdata(pdev);
12213 struct bnx2x *bp; 12213 struct bnx2x *bp;
@@ -12422,7 +12422,7 @@ static struct pci_driver bnx2x_pci_driver = {
12422 .name = DRV_MODULE_NAME, 12422 .name = DRV_MODULE_NAME,
12423 .id_table = bnx2x_pci_tbl, 12423 .id_table = bnx2x_pci_tbl,
12424 .probe = bnx2x_init_one, 12424 .probe = bnx2x_init_one,
12425 .remove = __devexit_p(bnx2x_remove_one), 12425 .remove = bnx2x_remove_one,
12426 .suspend = bnx2x_suspend, 12426 .suspend = bnx2x_suspend,
12427 .resume = bnx2x_resume, 12427 .resume = bnx2x_resume,
12428 .err_handler = &bnx2x_err_handler, 12428 .err_handler = &bnx2x_err_handler,
diff --git a/drivers/net/ethernet/broadcom/cnic.c b/drivers/net/ethernet/broadcom/cnic.c
index cc8434fd606e..3b825f422090 100644
--- a/drivers/net/ethernet/broadcom/cnic.c
+++ b/drivers/net/ethernet/broadcom/cnic.c
@@ -53,7 +53,7 @@
53 53
54#define DRV_MODULE_NAME "cnic" 54#define DRV_MODULE_NAME "cnic"
55 55
56static char version[] __devinitdata = 56static char version[] =
57 "Broadcom NetXtreme II CNIC Driver " DRV_MODULE_NAME " v" CNIC_MODULE_VERSION " (" CNIC_MODULE_RELDATE ")\n"; 57 "Broadcom NetXtreme II CNIC Driver " DRV_MODULE_NAME " v" CNIC_MODULE_VERSION " (" CNIC_MODULE_RELDATE ")\n";
58 58
59MODULE_AUTHOR("Michael Chan <mchan@broadcom.com> and John(Zongxi) " 59MODULE_AUTHOR("Michael Chan <mchan@broadcom.com> and John(Zongxi) "
diff --git a/drivers/net/ethernet/broadcom/sb1250-mac.c b/drivers/net/ethernet/broadcom/sb1250-mac.c
index 49e7a258da8a..3a1c8a3cf7c9 100644
--- a/drivers/net/ethernet/broadcom/sb1250-mac.c
+++ b/drivers/net/ethernet/broadcom/sb1250-mac.c
@@ -2586,7 +2586,7 @@ static int sbmac_poll(struct napi_struct *napi, int budget)
2586} 2586}
2587 2587
2588 2588
2589static int __devinit sbmac_probe(struct platform_device *pldev) 2589static int sbmac_probe(struct platform_device *pldev)
2590{ 2590{
2591 struct net_device *dev; 2591 struct net_device *dev;
2592 struct sbmac_softc *sc; 2592 struct sbmac_softc *sc;
diff --git a/drivers/net/ethernet/broadcom/tg3.c b/drivers/net/ethernet/broadcom/tg3.c
index 5cc976d01189..ac94939c03e6 100644
--- a/drivers/net/ethernet/broadcom/tg3.c
+++ b/drivers/net/ethernet/broadcom/tg3.c
@@ -211,7 +211,7 @@ static inline void _tg3_flag_clear(enum TG3_FLAGS flag, unsigned long *bits)
211#define FIRMWARE_TG3TSO "tigon/tg3_tso.bin" 211#define FIRMWARE_TG3TSO "tigon/tg3_tso.bin"
212#define FIRMWARE_TG3TSO5 "tigon/tg3_tso5.bin" 212#define FIRMWARE_TG3TSO5 "tigon/tg3_tso5.bin"
213 213
214static char version[] __devinitdata = 214static char version[] =
215 DRV_MODULE_NAME ".c:v" DRV_MODULE_VERSION " (" DRV_MODULE_RELDATE ")"; 215 DRV_MODULE_NAME ".c:v" DRV_MODULE_VERSION " (" DRV_MODULE_RELDATE ")";
216 216
217MODULE_AUTHOR("David S. Miller (davem@redhat.com) and Jeff Garzik (jgarzik@pobox.com)"); 217MODULE_AUTHOR("David S. Miller (davem@redhat.com) and Jeff Garzik (jgarzik@pobox.com)");
@@ -9938,7 +9938,7 @@ restart_timer:
9938 add_timer(&tp->timer); 9938 add_timer(&tp->timer);
9939} 9939}
9940 9940
9941static void __devinit tg3_timer_init(struct tg3 *tp) 9941static void tg3_timer_init(struct tg3 *tp)
9942{ 9942{
9943 if (tg3_flag(tp, TAGGED_STATUS) && 9943 if (tg3_flag(tp, TAGGED_STATUS) &&
9944 GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_5717 && 9944 GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_5717 &&
@@ -12829,7 +12829,7 @@ static const struct net_device_ops tg3_netdev_ops = {
12829#endif 12829#endif
12830}; 12830};
12831 12831
12832static void __devinit tg3_get_eeprom_size(struct tg3 *tp) 12832static void tg3_get_eeprom_size(struct tg3 *tp)
12833{ 12833{
12834 u32 cursize, val, magic; 12834 u32 cursize, val, magic;
12835 12835
@@ -12863,7 +12863,7 @@ static void __devinit tg3_get_eeprom_size(struct tg3 *tp)
12863 tp->nvram_size = cursize; 12863 tp->nvram_size = cursize;
12864} 12864}
12865 12865
12866static void __devinit tg3_get_nvram_size(struct tg3 *tp) 12866static void tg3_get_nvram_size(struct tg3 *tp)
12867{ 12867{
12868 u32 val; 12868 u32 val;
12869 12869
@@ -12896,7 +12896,7 @@ static void __devinit tg3_get_nvram_size(struct tg3 *tp)
12896 tp->nvram_size = TG3_NVRAM_SIZE_512KB; 12896 tp->nvram_size = TG3_NVRAM_SIZE_512KB;
12897} 12897}
12898 12898
12899static void __devinit tg3_get_nvram_info(struct tg3 *tp) 12899static void tg3_get_nvram_info(struct tg3 *tp)
12900{ 12900{
12901 u32 nvcfg1; 12901 u32 nvcfg1;
12902 12902
@@ -12947,7 +12947,7 @@ static void __devinit tg3_get_nvram_info(struct tg3 *tp)
12947 } 12947 }
12948} 12948}
12949 12949
12950static void __devinit tg3_nvram_get_pagesize(struct tg3 *tp, u32 nvmcfg1) 12950static void tg3_nvram_get_pagesize(struct tg3 *tp, u32 nvmcfg1)
12951{ 12951{
12952 switch (nvmcfg1 & NVRAM_CFG1_5752PAGE_SIZE_MASK) { 12952 switch (nvmcfg1 & NVRAM_CFG1_5752PAGE_SIZE_MASK) {
12953 case FLASH_5752PAGE_SIZE_256: 12953 case FLASH_5752PAGE_SIZE_256:
@@ -12974,7 +12974,7 @@ static void __devinit tg3_nvram_get_pagesize(struct tg3 *tp, u32 nvmcfg1)
12974 } 12974 }
12975} 12975}
12976 12976
12977static void __devinit tg3_get_5752_nvram_info(struct tg3 *tp) 12977static void tg3_get_5752_nvram_info(struct tg3 *tp)
12978{ 12978{
12979 u32 nvcfg1; 12979 u32 nvcfg1;
12980 12980
@@ -13015,7 +13015,7 @@ static void __devinit tg3_get_5752_nvram_info(struct tg3 *tp)
13015 } 13015 }
13016} 13016}
13017 13017
13018static void __devinit tg3_get_5755_nvram_info(struct tg3 *tp) 13018static void tg3_get_5755_nvram_info(struct tg3 *tp)
13019{ 13019{
13020 u32 nvcfg1, protect = 0; 13020 u32 nvcfg1, protect = 0;
13021 13021
@@ -13071,7 +13071,7 @@ static void __devinit tg3_get_5755_nvram_info(struct tg3 *tp)
13071 } 13071 }
13072} 13072}
13073 13073
13074static void __devinit tg3_get_5787_nvram_info(struct tg3 *tp) 13074static void tg3_get_5787_nvram_info(struct tg3 *tp)
13075{ 13075{
13076 u32 nvcfg1; 13076 u32 nvcfg1;
13077 13077
@@ -13109,7 +13109,7 @@ static void __devinit tg3_get_5787_nvram_info(struct tg3 *tp)
13109 } 13109 }
13110} 13110}
13111 13111
13112static void __devinit tg3_get_5761_nvram_info(struct tg3 *tp) 13112static void tg3_get_5761_nvram_info(struct tg3 *tp)
13113{ 13113{
13114 u32 nvcfg1, protect = 0; 13114 u32 nvcfg1, protect = 0;
13115 13115
@@ -13184,14 +13184,14 @@ static void __devinit tg3_get_5761_nvram_info(struct tg3 *tp)
13184 } 13184 }
13185} 13185}
13186 13186
13187static void __devinit tg3_get_5906_nvram_info(struct tg3 *tp) 13187static void tg3_get_5906_nvram_info(struct tg3 *tp)
13188{ 13188{
13189 tp->nvram_jedecnum = JEDEC_ATMEL; 13189 tp->nvram_jedecnum = JEDEC_ATMEL;
13190 tg3_flag_set(tp, NVRAM_BUFFERED); 13190 tg3_flag_set(tp, NVRAM_BUFFERED);
13191 tp->nvram_pagesize = ATMEL_AT24C512_CHIP_SIZE; 13191 tp->nvram_pagesize = ATMEL_AT24C512_CHIP_SIZE;
13192} 13192}
13193 13193
13194static void __devinit tg3_get_57780_nvram_info(struct tg3 *tp) 13194static void tg3_get_57780_nvram_info(struct tg3 *tp)
13195{ 13195{
13196 u32 nvcfg1; 13196 u32 nvcfg1;
13197 13197
@@ -13264,7 +13264,7 @@ static void __devinit tg3_get_57780_nvram_info(struct tg3 *tp)
13264} 13264}
13265 13265
13266 13266
13267static void __devinit tg3_get_5717_nvram_info(struct tg3 *tp) 13267static void tg3_get_5717_nvram_info(struct tg3 *tp)
13268{ 13268{
13269 u32 nvcfg1; 13269 u32 nvcfg1;
13270 13270
@@ -13342,7 +13342,7 @@ static void __devinit tg3_get_5717_nvram_info(struct tg3 *tp)
13342 tg3_flag_set(tp, NO_NVRAM_ADDR_TRANS); 13342 tg3_flag_set(tp, NO_NVRAM_ADDR_TRANS);
13343} 13343}
13344 13344
13345static void __devinit tg3_get_5720_nvram_info(struct tg3 *tp) 13345static void tg3_get_5720_nvram_info(struct tg3 *tp)
13346{ 13346{
13347 u32 nvcfg1, nvmpinstrp; 13347 u32 nvcfg1, nvmpinstrp;
13348 13348
@@ -13455,7 +13455,7 @@ static void __devinit tg3_get_5720_nvram_info(struct tg3 *tp)
13455} 13455}
13456 13456
13457/* Chips other than 5700/5701 use the NVRAM for fetching info. */ 13457/* Chips other than 5700/5701 use the NVRAM for fetching info. */
13458static void __devinit tg3_nvram_init(struct tg3 *tp) 13458static void tg3_nvram_init(struct tg3 *tp)
13459{ 13459{
13460 tw32_f(GRC_EEPROM_ADDR, 13460 tw32_f(GRC_EEPROM_ADDR,
13461 (EEPROM_ADDR_FSM_RESET | 13461 (EEPROM_ADDR_FSM_RESET |
@@ -13525,7 +13525,7 @@ struct subsys_tbl_ent {
13525 u32 phy_id; 13525 u32 phy_id;
13526}; 13526};
13527 13527
13528static struct subsys_tbl_ent subsys_id_to_phy_id[] __devinitdata = { 13528static struct subsys_tbl_ent subsys_id_to_phy_id[] = {
13529 /* Broadcom boards. */ 13529 /* Broadcom boards. */
13530 { TG3PCI_SUBVENDOR_ID_BROADCOM, 13530 { TG3PCI_SUBVENDOR_ID_BROADCOM,
13531 TG3PCI_SUBDEVICE_ID_BROADCOM_95700A6, TG3_PHY_ID_BCM5401 }, 13531 TG3PCI_SUBDEVICE_ID_BROADCOM_95700A6, TG3_PHY_ID_BCM5401 },
@@ -13589,7 +13589,7 @@ static struct subsys_tbl_ent subsys_id_to_phy_id[] __devinitdata = {
13589 TG3PCI_SUBDEVICE_ID_IBM_5703SAX2, 0 } 13589 TG3PCI_SUBDEVICE_ID_IBM_5703SAX2, 0 }
13590}; 13590};
13591 13591
13592static struct subsys_tbl_ent * __devinit tg3_lookup_by_subsys(struct tg3 *tp) 13592static struct subsys_tbl_ent *tg3_lookup_by_subsys(struct tg3 *tp)
13593{ 13593{
13594 int i; 13594 int i;
13595 13595
@@ -13603,7 +13603,7 @@ static struct subsys_tbl_ent * __devinit tg3_lookup_by_subsys(struct tg3 *tp)
13603 return NULL; 13603 return NULL;
13604} 13604}
13605 13605
13606static void __devinit tg3_get_eeprom_hw_cfg(struct tg3 *tp) 13606static void tg3_get_eeprom_hw_cfg(struct tg3 *tp)
13607{ 13607{
13608 u32 val; 13608 u32 val;
13609 13609
@@ -13803,7 +13803,7 @@ done:
13803 device_set_wakeup_capable(&tp->pdev->dev, false); 13803 device_set_wakeup_capable(&tp->pdev->dev, false);
13804} 13804}
13805 13805
13806static int __devinit tg3_issue_otp_command(struct tg3 *tp, u32 cmd) 13806static int tg3_issue_otp_command(struct tg3 *tp, u32 cmd)
13807{ 13807{
13808 int i; 13808 int i;
13809 u32 val; 13809 u32 val;
@@ -13826,7 +13826,7 @@ static int __devinit tg3_issue_otp_command(struct tg3 *tp, u32 cmd)
13826 * configuration is a 32-bit value that straddles the alignment boundary. 13826 * configuration is a 32-bit value that straddles the alignment boundary.
13827 * We do two 32-bit reads and then shift and merge the results. 13827 * We do two 32-bit reads and then shift and merge the results.
13828 */ 13828 */
13829static u32 __devinit tg3_read_otp_phycfg(struct tg3 *tp) 13829static u32 tg3_read_otp_phycfg(struct tg3 *tp)
13830{ 13830{
13831 u32 bhalf_otp, thalf_otp; 13831 u32 bhalf_otp, thalf_otp;
13832 13832
@@ -13852,7 +13852,7 @@ static u32 __devinit tg3_read_otp_phycfg(struct tg3 *tp)
13852 return ((thalf_otp & 0x0000ffff) << 16) | (bhalf_otp >> 16); 13852 return ((thalf_otp & 0x0000ffff) << 16) | (bhalf_otp >> 16);
13853} 13853}
13854 13854
13855static void __devinit tg3_phy_init_link_config(struct tg3 *tp) 13855static void tg3_phy_init_link_config(struct tg3 *tp)
13856{ 13856{
13857 u32 adv = ADVERTISED_Autoneg; 13857 u32 adv = ADVERTISED_Autoneg;
13858 13858
@@ -13879,7 +13879,7 @@ static void __devinit tg3_phy_init_link_config(struct tg3 *tp)
13879 tp->old_link = -1; 13879 tp->old_link = -1;
13880} 13880}
13881 13881
13882static int __devinit tg3_phy_probe(struct tg3 *tp) 13882static int tg3_phy_probe(struct tg3 *tp)
13883{ 13883{
13884 u32 hw_phy_id_1, hw_phy_id_2; 13884 u32 hw_phy_id_1, hw_phy_id_2;
13885 u32 hw_phy_id, hw_phy_id_masked; 13885 u32 hw_phy_id, hw_phy_id_masked;
@@ -14007,7 +14007,7 @@ skip_phy_reset:
14007 return err; 14007 return err;
14008} 14008}
14009 14009
14010static void __devinit tg3_read_vpd(struct tg3 *tp) 14010static void tg3_read_vpd(struct tg3 *tp)
14011{ 14011{
14012 u8 *vpd_data; 14012 u8 *vpd_data;
14013 unsigned int block_end, rosize, len; 14013 unsigned int block_end, rosize, len;
@@ -14128,7 +14128,7 @@ nomatch:
14128 } 14128 }
14129} 14129}
14130 14130
14131static int __devinit tg3_fw_img_is_valid(struct tg3 *tp, u32 offset) 14131static int tg3_fw_img_is_valid(struct tg3 *tp, u32 offset)
14132{ 14132{
14133 u32 val; 14133 u32 val;
14134 14134
@@ -14141,7 +14141,7 @@ static int __devinit tg3_fw_img_is_valid(struct tg3 *tp, u32 offset)
14141 return 1; 14141 return 1;
14142} 14142}
14143 14143
14144static void __devinit tg3_read_bc_ver(struct tg3 *tp) 14144static void tg3_read_bc_ver(struct tg3 *tp)
14145{ 14145{
14146 u32 val, offset, start, ver_offset; 14146 u32 val, offset, start, ver_offset;
14147 int i, dst_off; 14147 int i, dst_off;
@@ -14193,7 +14193,7 @@ static void __devinit tg3_read_bc_ver(struct tg3 *tp)
14193 } 14193 }
14194} 14194}
14195 14195
14196static void __devinit tg3_read_hwsb_ver(struct tg3 *tp) 14196static void tg3_read_hwsb_ver(struct tg3 *tp)
14197{ 14197{
14198 u32 val, major, minor; 14198 u32 val, major, minor;
14199 14199
@@ -14209,7 +14209,7 @@ static void __devinit tg3_read_hwsb_ver(struct tg3 *tp)
14209 snprintf(&tp->fw_ver[0], 32, "sb v%d.%02d", major, minor); 14209 snprintf(&tp->fw_ver[0], 32, "sb v%d.%02d", major, minor);
14210} 14210}
14211 14211
14212static void __devinit tg3_read_sb_ver(struct tg3 *tp, u32 val) 14212static void tg3_read_sb_ver(struct tg3 *tp, u32 val)
14213{ 14213{
14214 u32 offset, major, minor, build; 14214 u32 offset, major, minor, build;
14215 14215
@@ -14264,7 +14264,7 @@ static void __devinit tg3_read_sb_ver(struct tg3 *tp, u32 val)
14264 } 14264 }
14265} 14265}
14266 14266
14267static void __devinit tg3_read_mgmtfw_ver(struct tg3 *tp) 14267static void tg3_read_mgmtfw_ver(struct tg3 *tp)
14268{ 14268{
14269 u32 val, offset, start; 14269 u32 val, offset, start;
14270 int i, vlen; 14270 int i, vlen;
@@ -14316,7 +14316,7 @@ static void __devinit tg3_read_mgmtfw_ver(struct tg3 *tp)
14316 } 14316 }
14317} 14317}
14318 14318
14319static void __devinit tg3_probe_ncsi(struct tg3 *tp) 14319static void tg3_probe_ncsi(struct tg3 *tp)
14320{ 14320{
14321 u32 apedata; 14321 u32 apedata;
14322 14322
@@ -14332,7 +14332,7 @@ static void __devinit tg3_probe_ncsi(struct tg3 *tp)
14332 tg3_flag_set(tp, APE_HAS_NCSI); 14332 tg3_flag_set(tp, APE_HAS_NCSI);
14333} 14333}
14334 14334
14335static void __devinit tg3_read_dash_ver(struct tg3 *tp) 14335static void tg3_read_dash_ver(struct tg3 *tp)
14336{ 14336{
14337 int vlen; 14337 int vlen;
14338 u32 apedata; 14338 u32 apedata;
@@ -14355,7 +14355,7 @@ static void __devinit tg3_read_dash_ver(struct tg3 *tp)
14355 (apedata & APE_FW_VERSION_BLDMSK)); 14355 (apedata & APE_FW_VERSION_BLDMSK));
14356} 14356}
14357 14357
14358static void __devinit tg3_read_fw_ver(struct tg3 *tp) 14358static void tg3_read_fw_ver(struct tg3 *tp)
14359{ 14359{
14360 u32 val; 14360 u32 val;
14361 bool vpd_vers = false; 14361 bool vpd_vers = false;
@@ -14408,7 +14408,7 @@ static DEFINE_PCI_DEVICE_TABLE(tg3_write_reorder_chipsets) = {
14408 { }, 14408 { },
14409}; 14409};
14410 14410
14411static struct pci_dev * __devinit tg3_find_peer(struct tg3 *tp) 14411static struct pci_dev *tg3_find_peer(struct tg3 *tp)
14412{ 14412{
14413 struct pci_dev *peer; 14413 struct pci_dev *peer;
14414 unsigned int func, devnr = tp->pdev->devfn & ~7; 14414 unsigned int func, devnr = tp->pdev->devfn & ~7;
@@ -14436,7 +14436,7 @@ static struct pci_dev * __devinit tg3_find_peer(struct tg3 *tp)
14436 return peer; 14436 return peer;
14437} 14437}
14438 14438
14439static void __devinit tg3_detect_asic_rev(struct tg3 *tp, u32 misc_ctrl_reg) 14439static void tg3_detect_asic_rev(struct tg3 *tp, u32 misc_ctrl_reg)
14440{ 14440{
14441 tp->pci_chip_rev_id = misc_ctrl_reg >> MISC_HOST_CTRL_CHIPREV_SHIFT; 14441 tp->pci_chip_rev_id = misc_ctrl_reg >> MISC_HOST_CTRL_CHIPREV_SHIFT;
14442 if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_USE_PROD_ID_REG) { 14442 if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_USE_PROD_ID_REG) {
@@ -14539,7 +14539,7 @@ static bool tg3_10_100_only_device(struct tg3 *tp,
14539 return false; 14539 return false;
14540} 14540}
14541 14541
14542static int __devinit tg3_get_invariants(struct tg3 *tp, 14542static int tg3_get_invariants(struct tg3 *tp,
14543 const struct pci_device_id *ent) 14543 const struct pci_device_id *ent)
14544{ 14544{
14545 u32 misc_ctrl_reg; 14545 u32 misc_ctrl_reg;
@@ -15299,7 +15299,7 @@ static int __devinit tg3_get_invariants(struct tg3 *tp,
15299} 15299}
15300 15300
15301#ifdef CONFIG_SPARC 15301#ifdef CONFIG_SPARC
15302static int __devinit tg3_get_macaddr_sparc(struct tg3 *tp) 15302static int tg3_get_macaddr_sparc(struct tg3 *tp)
15303{ 15303{
15304 struct net_device *dev = tp->dev; 15304 struct net_device *dev = tp->dev;
15305 struct pci_dev *pdev = tp->pdev; 15305 struct pci_dev *pdev = tp->pdev;
@@ -15316,7 +15316,7 @@ static int __devinit tg3_get_macaddr_sparc(struct tg3 *tp)
15316 return -ENODEV; 15316 return -ENODEV;
15317} 15317}
15318 15318
15319static int __devinit tg3_get_default_macaddr_sparc(struct tg3 *tp) 15319static int tg3_get_default_macaddr_sparc(struct tg3 *tp)
15320{ 15320{
15321 struct net_device *dev = tp->dev; 15321 struct net_device *dev = tp->dev;
15322 15322
@@ -15326,7 +15326,7 @@ static int __devinit tg3_get_default_macaddr_sparc(struct tg3 *tp)
15326} 15326}
15327#endif 15327#endif
15328 15328
15329static int __devinit tg3_get_device_address(struct tg3 *tp) 15329static int tg3_get_device_address(struct tg3 *tp)
15330{ 15330{
15331 struct net_device *dev = tp->dev; 15331 struct net_device *dev = tp->dev;
15332 u32 hi, lo, mac_offset; 15332 u32 hi, lo, mac_offset;
@@ -15405,7 +15405,7 @@ static int __devinit tg3_get_device_address(struct tg3 *tp)
15405#define BOUNDARY_SINGLE_CACHELINE 1 15405#define BOUNDARY_SINGLE_CACHELINE 1
15406#define BOUNDARY_MULTI_CACHELINE 2 15406#define BOUNDARY_MULTI_CACHELINE 2
15407 15407
15408static u32 __devinit tg3_calc_dma_bndry(struct tg3 *tp, u32 val) 15408static u32 tg3_calc_dma_bndry(struct tg3 *tp, u32 val)
15409{ 15409{
15410 int cacheline_size; 15410 int cacheline_size;
15411 u8 byte; 15411 u8 byte;
@@ -15546,7 +15546,8 @@ out:
15546 return val; 15546 return val;
15547} 15547}
15548 15548
15549static int __devinit tg3_do_test_dma(struct tg3 *tp, u32 *buf, dma_addr_t buf_dma, int size, int to_device) 15549static int tg3_do_test_dma(struct tg3 *tp, u32 *buf, dma_addr_t buf_dma,
15550 int size, int to_device)
15550{ 15551{
15551 struct tg3_internal_buffer_desc test_desc; 15552 struct tg3_internal_buffer_desc test_desc;
15552 u32 sram_dma_descs; 15553 u32 sram_dma_descs;
@@ -15633,7 +15634,7 @@ static DEFINE_PCI_DEVICE_TABLE(tg3_dma_wait_state_chipsets) = {
15633 { }, 15634 { },
15634}; 15635};
15635 15636
15636static int __devinit tg3_test_dma(struct tg3 *tp) 15637static int tg3_test_dma(struct tg3 *tp)
15637{ 15638{
15638 dma_addr_t buf_dma; 15639 dma_addr_t buf_dma;
15639 u32 *buf, saved_dma_rwctrl; 15640 u32 *buf, saved_dma_rwctrl;
@@ -15823,7 +15824,7 @@ out_nofree:
15823 return ret; 15824 return ret;
15824} 15825}
15825 15826
15826static void __devinit tg3_init_bufmgr_config(struct tg3 *tp) 15827static void tg3_init_bufmgr_config(struct tg3 *tp)
15827{ 15828{
15828 if (tg3_flag(tp, 57765_PLUS)) { 15829 if (tg3_flag(tp, 57765_PLUS)) {
15829 tp->bufmgr_config.mbuf_read_dma_low_water = 15830 tp->bufmgr_config.mbuf_read_dma_low_water =
@@ -15879,7 +15880,7 @@ static void __devinit tg3_init_bufmgr_config(struct tg3 *tp)
15879 tp->bufmgr_config.dma_high_water = DEFAULT_DMA_HIGH_WATER; 15880 tp->bufmgr_config.dma_high_water = DEFAULT_DMA_HIGH_WATER;
15880} 15881}
15881 15882
15882static char * __devinit tg3_phy_string(struct tg3 *tp) 15883static char *tg3_phy_string(struct tg3 *tp)
15883{ 15884{
15884 switch (tp->phy_id & TG3_PHY_ID_MASK) { 15885 switch (tp->phy_id & TG3_PHY_ID_MASK) {
15885 case TG3_PHY_ID_BCM5400: return "5400"; 15886 case TG3_PHY_ID_BCM5400: return "5400";
@@ -15910,7 +15911,7 @@ static char * __devinit tg3_phy_string(struct tg3 *tp)
15910 } 15911 }
15911} 15912}
15912 15913
15913static char * __devinit tg3_bus_string(struct tg3 *tp, char *str) 15914static char *tg3_bus_string(struct tg3 *tp, char *str)
15914{ 15915{
15915 if (tg3_flag(tp, PCI_EXPRESS)) { 15916 if (tg3_flag(tp, PCI_EXPRESS)) {
15916 strcpy(str, "PCI Express"); 15917 strcpy(str, "PCI Express");
@@ -15946,7 +15947,7 @@ static char * __devinit tg3_bus_string(struct tg3 *tp, char *str)
15946 return str; 15947 return str;
15947} 15948}
15948 15949
15949static void __devinit tg3_init_coal(struct tg3 *tp) 15950static void tg3_init_coal(struct tg3 *tp)
15950{ 15951{
15951 struct ethtool_coalesce *ec = &tp->coal; 15952 struct ethtool_coalesce *ec = &tp->coal;
15952 15953
@@ -15977,7 +15978,7 @@ static void __devinit tg3_init_coal(struct tg3 *tp)
15977 } 15978 }
15978} 15979}
15979 15980
15980static int __devinit tg3_init_one(struct pci_dev *pdev, 15981static int tg3_init_one(struct pci_dev *pdev,
15981 const struct pci_device_id *ent) 15982 const struct pci_device_id *ent)
15982{ 15983{
15983 struct net_device *dev; 15984 struct net_device *dev;
@@ -16357,7 +16358,7 @@ err_out_disable_pdev:
16357 return err; 16358 return err;
16358} 16359}
16359 16360
16360static void __devexit tg3_remove_one(struct pci_dev *pdev) 16361static void tg3_remove_one(struct pci_dev *pdev)
16361{ 16362{
16362 struct net_device *dev = pci_get_drvdata(pdev); 16363 struct net_device *dev = pci_get_drvdata(pdev);
16363 16364
@@ -16626,7 +16627,7 @@ static struct pci_driver tg3_driver = {
16626 .name = DRV_MODULE_NAME, 16627 .name = DRV_MODULE_NAME,
16627 .id_table = tg3_pci_tbl, 16628 .id_table = tg3_pci_tbl,
16628 .probe = tg3_init_one, 16629 .probe = tg3_init_one,
16629 .remove = __devexit_p(tg3_remove_one), 16630 .remove = tg3_remove_one,
16630 .err_handler = &tg3_err_handler, 16631 .err_handler = &tg3_err_handler,
16631 .driver.pm = TG3_PM_OPS, 16632 .driver.pm = TG3_PM_OPS,
16632}; 16633};
diff --git a/drivers/net/ethernet/brocade/bna/bnad.c b/drivers/net/ethernet/brocade/bna/bnad.c
index ce1eac529470..76b2af64adc2 100644
--- a/drivers/net/ethernet/brocade/bna/bnad.c
+++ b/drivers/net/ethernet/brocade/bna/bnad.c
@@ -3226,7 +3226,7 @@ bnad_pci_uninit(struct pci_dev *pdev)
3226 pci_disable_device(pdev); 3226 pci_disable_device(pdev);
3227} 3227}
3228 3228
3229static int __devinit 3229static int
3230bnad_pci_probe(struct pci_dev *pdev, 3230bnad_pci_probe(struct pci_dev *pdev,
3231 const struct pci_device_id *pcidev_id) 3231 const struct pci_device_id *pcidev_id)
3232{ 3232{
@@ -3426,7 +3426,7 @@ unlock_mutex:
3426 return err; 3426 return err;
3427} 3427}
3428 3428
3429static void __devexit 3429static void
3430bnad_pci_remove(struct pci_dev *pdev) 3430bnad_pci_remove(struct pci_dev *pdev)
3431{ 3431{
3432 struct net_device *netdev = pci_get_drvdata(pdev); 3432 struct net_device *netdev = pci_get_drvdata(pdev);
@@ -3490,7 +3490,7 @@ static struct pci_driver bnad_pci_driver = {
3490 .name = BNAD_NAME, 3490 .name = BNAD_NAME,
3491 .id_table = bnad_pci_id_table, 3491 .id_table = bnad_pci_id_table,
3492 .probe = bnad_pci_probe, 3492 .probe = bnad_pci_probe,
3493 .remove = __devexit_p(bnad_pci_remove), 3493 .remove = bnad_pci_remove,
3494}; 3494};
3495 3495
3496static int __init 3496static int __init
diff --git a/drivers/net/ethernet/cadence/at91_ether.c b/drivers/net/ethernet/cadence/at91_ether.c
index 716cc014a56e..3becdb2deb46 100644
--- a/drivers/net/ethernet/cadence/at91_ether.c
+++ b/drivers/net/ethernet/cadence/at91_ether.c
@@ -456,7 +456,7 @@ err_free_dev:
456 return res; 456 return res;
457} 457}
458 458
459static int __devexit at91ether_remove(struct platform_device *pdev) 459static int at91ether_remove(struct platform_device *pdev)
460{ 460{
461 struct net_device *dev = platform_get_drvdata(pdev); 461 struct net_device *dev = platform_get_drvdata(pdev);
462 struct macb *lp = netdev_priv(dev); 462 struct macb *lp = netdev_priv(dev);
@@ -509,7 +509,7 @@ static int at91ether_resume(struct platform_device *pdev)
509#endif 509#endif
510 510
511static struct platform_driver at91ether_driver = { 511static struct platform_driver at91ether_driver = {
512 .remove = __devexit_p(at91ether_remove), 512 .remove = at91ether_remove,
513 .suspend = at91ether_suspend, 513 .suspend = at91ether_suspend,
514 .resume = at91ether_resume, 514 .resume = at91ether_resume,
515 .driver = { 515 .driver = {
diff --git a/drivers/net/ethernet/cadence/macb.c b/drivers/net/ethernet/cadence/macb.c
index 6a59bce38a8c..a9b0830fb39d 100644
--- a/drivers/net/ethernet/cadence/macb.c
+++ b/drivers/net/ethernet/cadence/macb.c
@@ -1470,7 +1470,7 @@ static const struct of_device_id macb_dt_ids[] = {
1470 1470
1471MODULE_DEVICE_TABLE(of, macb_dt_ids); 1471MODULE_DEVICE_TABLE(of, macb_dt_ids);
1472 1472
1473static int __devinit macb_get_phy_mode_dt(struct platform_device *pdev) 1473static int macb_get_phy_mode_dt(struct platform_device *pdev)
1474{ 1474{
1475 struct device_node *np = pdev->dev.of_node; 1475 struct device_node *np = pdev->dev.of_node;
1476 1476
@@ -1480,7 +1480,7 @@ static int __devinit macb_get_phy_mode_dt(struct platform_device *pdev)
1480 return -ENODEV; 1480 return -ENODEV;
1481} 1481}
1482 1482
1483static int __devinit macb_get_hwaddr_dt(struct macb *bp) 1483static int macb_get_hwaddr_dt(struct macb *bp)
1484{ 1484{
1485 struct device_node *np = bp->pdev->dev.of_node; 1485 struct device_node *np = bp->pdev->dev.of_node;
1486 if (np) { 1486 if (np) {
@@ -1494,11 +1494,11 @@ static int __devinit macb_get_hwaddr_dt(struct macb *bp)
1494 return -ENODEV; 1494 return -ENODEV;
1495} 1495}
1496#else 1496#else
1497static int __devinit macb_get_phy_mode_dt(struct platform_device *pdev) 1497static int macb_get_phy_mode_dt(struct platform_device *pdev)
1498{ 1498{
1499 return -ENODEV; 1499 return -ENODEV;
1500} 1500}
1501static int __devinit macb_get_hwaddr_dt(struct macb *bp) 1501static int macb_get_hwaddr_dt(struct macb *bp)
1502{ 1502{
1503 return -ENODEV; 1503 return -ENODEV;
1504} 1504}
diff --git a/drivers/net/ethernet/chelsio/cxgb/cxgb2.c b/drivers/net/ethernet/chelsio/cxgb/cxgb2.c
index 1d17c92f2dda..5f60623dd7fd 100644
--- a/drivers/net/ethernet/chelsio/cxgb/cxgb2.c
+++ b/drivers/net/ethernet/chelsio/cxgb/cxgb2.c
@@ -974,7 +974,7 @@ static const struct net_device_ops cxgb_netdev_ops = {
974#endif 974#endif
975}; 975};
976 976
977static int __devinit init_one(struct pci_dev *pdev, 977static int init_one(struct pci_dev *pdev,
978 const struct pci_device_id *ent) 978 const struct pci_device_id *ent)
979{ 979{
980 static int version_printed; 980 static int version_printed;
@@ -1332,7 +1332,7 @@ static inline void t1_sw_reset(struct pci_dev *pdev)
1332 pci_write_config_dword(pdev, A_PCICFG_PM_CSR, 0); 1332 pci_write_config_dword(pdev, A_PCICFG_PM_CSR, 0);
1333} 1333}
1334 1334
1335static void __devexit remove_one(struct pci_dev *pdev) 1335static void remove_one(struct pci_dev *pdev)
1336{ 1336{
1337 struct net_device *dev = pci_get_drvdata(pdev); 1337 struct net_device *dev = pci_get_drvdata(pdev);
1338 struct adapter *adapter = dev->ml_priv; 1338 struct adapter *adapter = dev->ml_priv;
@@ -1361,7 +1361,7 @@ static struct pci_driver driver = {
1361 .name = DRV_NAME, 1361 .name = DRV_NAME,
1362 .id_table = t1_pci_tbl, 1362 .id_table = t1_pci_tbl,
1363 .probe = init_one, 1363 .probe = init_one,
1364 .remove = __devexit_p(remove_one), 1364 .remove = remove_one,
1365}; 1365};
1366 1366
1367static int __init t1_init_module(void) 1367static int __init t1_init_module(void)
diff --git a/drivers/net/ethernet/chelsio/cxgb/sge.c b/drivers/net/ethernet/chelsio/cxgb/sge.c
index 47a84359d4e4..9a0a85898a50 100644
--- a/drivers/net/ethernet/chelsio/cxgb/sge.c
+++ b/drivers/net/ethernet/chelsio/cxgb/sge.c
@@ -2071,7 +2071,7 @@ static void espibug_workaround(unsigned long data)
2071/* 2071/*
2072 * Creates a t1_sge structure and returns suggested resource parameters. 2072 * Creates a t1_sge structure and returns suggested resource parameters.
2073 */ 2073 */
2074struct sge * __devinit t1_sge_create(struct adapter *adapter, 2074struct sge *t1_sge_create(struct adapter *adapter,
2075 struct sge_params *p) 2075 struct sge_params *p)
2076{ 2076{
2077 struct sge *sge = kzalloc(sizeof(*sge), GFP_KERNEL); 2077 struct sge *sge = kzalloc(sizeof(*sge), GFP_KERNEL);
diff --git a/drivers/net/ethernet/chelsio/cxgb/subr.c b/drivers/net/ethernet/chelsio/cxgb/subr.c
index 8a43c7e19701..9527dc196f87 100644
--- a/drivers/net/ethernet/chelsio/cxgb/subr.c
+++ b/drivers/net/ethernet/chelsio/cxgb/subr.c
@@ -892,7 +892,7 @@ static void power_sequence_xpak(adapter_t* adapter)
892 } 892 }
893} 893}
894 894
895int __devinit t1_get_board_rev(adapter_t *adapter, const struct board_info *bi, 895int t1_get_board_rev(adapter_t *adapter, const struct board_info *bi,
896 struct adapter_params *p) 896 struct adapter_params *p)
897{ 897{
898 p->chip_version = bi->chip_term; 898 p->chip_version = bi->chip_term;
@@ -992,7 +992,7 @@ out_err:
992/* 992/*
993 * Determine a card's PCI mode. 993 * Determine a card's PCI mode.
994 */ 994 */
995static void __devinit get_pci_mode(adapter_t *adapter, struct chelsio_pci_params *p) 995static void get_pci_mode(adapter_t *adapter, struct chelsio_pci_params *p)
996{ 996{
997 static const unsigned short speed_map[] = { 33, 66, 100, 133 }; 997 static const unsigned short speed_map[] = { 33, 66, 100, 133 };
998 u32 pci_mode; 998 u32 pci_mode;
@@ -1028,7 +1028,7 @@ void t1_free_sw_modules(adapter_t *adapter)
1028 t1_espi_destroy(adapter->espi); 1028 t1_espi_destroy(adapter->espi);
1029} 1029}
1030 1030
1031static void __devinit init_link_config(struct link_config *lc, 1031static void init_link_config(struct link_config *lc,
1032 const struct board_info *bi) 1032 const struct board_info *bi)
1033{ 1033{
1034 lc->supported = bi->caps; 1034 lc->supported = bi->caps;
@@ -1049,7 +1049,7 @@ static void __devinit init_link_config(struct link_config *lc,
1049 * Allocate and initialize the data structures that hold the SW state of 1049 * Allocate and initialize the data structures that hold the SW state of
1050 * the Terminator HW modules. 1050 * the Terminator HW modules.
1051 */ 1051 */
1052int __devinit t1_init_sw_modules(adapter_t *adapter, 1052int t1_init_sw_modules(adapter_t *adapter,
1053 const struct board_info *bi) 1053 const struct board_info *bi)
1054{ 1054{
1055 unsigned int i; 1055 unsigned int i;
diff --git a/drivers/net/ethernet/chelsio/cxgb/tp.c b/drivers/net/ethernet/chelsio/cxgb/tp.c
index 8bed4a59e65f..b146acabf982 100644
--- a/drivers/net/ethernet/chelsio/cxgb/tp.c
+++ b/drivers/net/ethernet/chelsio/cxgb/tp.c
@@ -55,7 +55,7 @@ void t1_tp_destroy(struct petp *tp)
55 kfree(tp); 55 kfree(tp);
56} 56}
57 57
58struct petp *__devinit t1_tp_create(adapter_t * adapter, struct tp_params *p) 58struct petp *t1_tp_create(adapter_t *adapter, struct tp_params *p)
59{ 59{
60 struct petp *tp = kzalloc(sizeof(*tp), GFP_KERNEL); 60 struct petp *tp = kzalloc(sizeof(*tp), GFP_KERNEL);
61 61
diff --git a/drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c b/drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c
index 9c9f3260344a..4aa3b21c6f7f 100644
--- a/drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c
+++ b/drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c
@@ -3078,7 +3078,7 @@ static void set_nqsets(struct adapter *adap)
3078 } 3078 }
3079} 3079}
3080 3080
3081static int __devinit cxgb_enable_msix(struct adapter *adap) 3081static int cxgb_enable_msix(struct adapter *adap)
3082{ 3082{
3083 struct msix_entry entries[SGE_QSETS + 1]; 3083 struct msix_entry entries[SGE_QSETS + 1];
3084 int vectors; 3084 int vectors;
@@ -3108,7 +3108,7 @@ static int __devinit cxgb_enable_msix(struct adapter *adap)
3108 return err; 3108 return err;
3109} 3109}
3110 3110
3111static void __devinit print_port_info(struct adapter *adap, 3111static void print_port_info(struct adapter *adap,
3112 const struct adapter_info *ai) 3112 const struct adapter_info *ai)
3113{ 3113{
3114 static const char *pci_variant[] = { 3114 static const char *pci_variant[] = {
@@ -3165,7 +3165,7 @@ static const struct net_device_ops cxgb_netdev_ops = {
3165#endif 3165#endif
3166}; 3166};
3167 3167
3168static void __devinit cxgb3_init_iscsi_mac(struct net_device *dev) 3168static void cxgb3_init_iscsi_mac(struct net_device *dev)
3169{ 3169{
3170 struct port_info *pi = netdev_priv(dev); 3170 struct port_info *pi = netdev_priv(dev);
3171 3171
@@ -3176,7 +3176,7 @@ static void __devinit cxgb3_init_iscsi_mac(struct net_device *dev)
3176#define TSO_FLAGS (NETIF_F_TSO | NETIF_F_TSO6 | NETIF_F_TSO_ECN) 3176#define TSO_FLAGS (NETIF_F_TSO | NETIF_F_TSO6 | NETIF_F_TSO_ECN)
3177#define VLAN_FEAT (NETIF_F_SG | NETIF_F_IP_CSUM | TSO_FLAGS | \ 3177#define VLAN_FEAT (NETIF_F_SG | NETIF_F_IP_CSUM | TSO_FLAGS | \
3178 NETIF_F_IPV6_CSUM | NETIF_F_HIGHDMA) 3178 NETIF_F_IPV6_CSUM | NETIF_F_HIGHDMA)
3179static int __devinit init_one(struct pci_dev *pdev, 3179static int init_one(struct pci_dev *pdev,
3180 const struct pci_device_id *ent) 3180 const struct pci_device_id *ent)
3181{ 3181{
3182 static int version_printed; 3182 static int version_printed;
@@ -3381,7 +3381,7 @@ out:
3381 return err; 3381 return err;
3382} 3382}
3383 3383
3384static void __devexit remove_one(struct pci_dev *pdev) 3384static void remove_one(struct pci_dev *pdev)
3385{ 3385{
3386 struct adapter *adapter = pci_get_drvdata(pdev); 3386 struct adapter *adapter = pci_get_drvdata(pdev);
3387 3387
@@ -3425,7 +3425,7 @@ static struct pci_driver driver = {
3425 .name = DRV_NAME, 3425 .name = DRV_NAME,
3426 .id_table = cxgb3_pci_tbl, 3426 .id_table = cxgb3_pci_tbl,
3427 .probe = init_one, 3427 .probe = init_one,
3428 .remove = __devexit_p(remove_one), 3428 .remove = remove_one,
3429 .err_handler = &t3_err_handler, 3429 .err_handler = &t3_err_handler,
3430}; 3430};
3431 3431
diff --git a/drivers/net/ethernet/chelsio/cxgb3/cxgb3_offload.c b/drivers/net/ethernet/chelsio/cxgb3/cxgb3_offload.c
index 2dbbcbb450d3..942dace361d2 100644
--- a/drivers/net/ethernet/chelsio/cxgb3/cxgb3_offload.c
+++ b/drivers/net/ethernet/chelsio/cxgb3/cxgb3_offload.c
@@ -1382,7 +1382,7 @@ static inline int adap2type(struct adapter *adapter)
1382 return type; 1382 return type;
1383} 1383}
1384 1384
1385void __devinit cxgb3_adapter_ofld(struct adapter *adapter) 1385void cxgb3_adapter_ofld(struct adapter *adapter)
1386{ 1386{
1387 struct t3cdev *tdev = &adapter->tdev; 1387 struct t3cdev *tdev = &adapter->tdev;
1388 1388
@@ -1396,7 +1396,7 @@ void __devinit cxgb3_adapter_ofld(struct adapter *adapter)
1396 register_tdev(tdev); 1396 register_tdev(tdev);
1397} 1397}
1398 1398
1399void __devexit cxgb3_adapter_unofld(struct adapter *adapter) 1399void cxgb3_adapter_unofld(struct adapter *adapter)
1400{ 1400{
1401 struct t3cdev *tdev = &adapter->tdev; 1401 struct t3cdev *tdev = &adapter->tdev;
1402 1402
diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
index 0df1284df497..bef893d4c68a 100644
--- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
+++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
@@ -2148,7 +2148,7 @@ static const struct file_operations mem_debugfs_fops = {
2148 .llseek = default_llseek, 2148 .llseek = default_llseek,
2149}; 2149};
2150 2150
2151static void __devinit add_debugfs_mem(struct adapter *adap, const char *name, 2151static void add_debugfs_mem(struct adapter *adap, const char *name,
2152 unsigned int idx, unsigned int size_mb) 2152 unsigned int idx, unsigned int size_mb)
2153{ 2153{
2154 struct dentry *de; 2154 struct dentry *de;
@@ -2159,7 +2159,7 @@ static void __devinit add_debugfs_mem(struct adapter *adap, const char *name,
2159 de->d_inode->i_size = size_mb << 20; 2159 de->d_inode->i_size = size_mb << 20;
2160} 2160}
2161 2161
2162static int __devinit setup_debugfs(struct adapter *adap) 2162static int setup_debugfs(struct adapter *adap)
2163{ 2163{
2164 int i; 2164 int i;
2165 2165
@@ -4173,7 +4173,7 @@ static inline void init_rspq(struct sge_rspq *q, u8 timer_idx, u8 pkt_cnt_idx,
4173 * of ports we found and the number of available CPUs. Most settings can be 4173 * of ports we found and the number of available CPUs. Most settings can be
4174 * modified by the admin prior to actual use. 4174 * modified by the admin prior to actual use.
4175 */ 4175 */
4176static void __devinit cfg_queues(struct adapter *adap) 4176static void cfg_queues(struct adapter *adap)
4177{ 4177{
4178 struct sge *s = &adap->sge; 4178 struct sge *s = &adap->sge;
4179 int i, q10g = 0, n10g = 0, qidx = 0; 4179 int i, q10g = 0, n10g = 0, qidx = 0;
@@ -4257,7 +4257,7 @@ static void __devinit cfg_queues(struct adapter *adap)
4257 * Reduce the number of Ethernet queues across all ports to at most n. 4257 * Reduce the number of Ethernet queues across all ports to at most n.
4258 * n provides at least one queue per port. 4258 * n provides at least one queue per port.
4259 */ 4259 */
4260static void __devinit reduce_ethqs(struct adapter *adap, int n) 4260static void reduce_ethqs(struct adapter *adap, int n)
4261{ 4261{
4262 int i; 4262 int i;
4263 struct port_info *pi; 4263 struct port_info *pi;
@@ -4284,7 +4284,7 @@ static void __devinit reduce_ethqs(struct adapter *adap, int n)
4284/* 2 MSI-X vectors needed for the FW queue and non-data interrupts */ 4284/* 2 MSI-X vectors needed for the FW queue and non-data interrupts */
4285#define EXTRA_VECS 2 4285#define EXTRA_VECS 2
4286 4286
4287static int __devinit enable_msix(struct adapter *adap) 4287static int enable_msix(struct adapter *adap)
4288{ 4288{
4289 int ofld_need = 0; 4289 int ofld_need = 0;
4290 int i, err, want, need; 4290 int i, err, want, need;
@@ -4333,7 +4333,7 @@ static int __devinit enable_msix(struct adapter *adap)
4333 4333
4334#undef EXTRA_VECS 4334#undef EXTRA_VECS
4335 4335
4336static int __devinit init_rss(struct adapter *adap) 4336static int init_rss(struct adapter *adap)
4337{ 4337{
4338 unsigned int i, j; 4338 unsigned int i, j;
4339 4339
@@ -4349,7 +4349,7 @@ static int __devinit init_rss(struct adapter *adap)
4349 return 0; 4349 return 0;
4350} 4350}
4351 4351
4352static void __devinit print_port_info(const struct net_device *dev) 4352static void print_port_info(const struct net_device *dev)
4353{ 4353{
4354 static const char *base[] = { 4354 static const char *base[] = {
4355 "R XFI", "R XAUI", "T SGMII", "T XFI", "T XAUI", "KX4", "CX4", 4355 "R XFI", "R XAUI", "T SGMII", "T XFI", "T XAUI", "KX4", "CX4",
@@ -4386,7 +4386,7 @@ static void __devinit print_port_info(const struct net_device *dev)
4386 adap->params.vpd.sn, adap->params.vpd.ec); 4386 adap->params.vpd.sn, adap->params.vpd.ec);
4387} 4387}
4388 4388
4389static void __devinit enable_pcie_relaxed_ordering(struct pci_dev *dev) 4389static void enable_pcie_relaxed_ordering(struct pci_dev *dev)
4390{ 4390{
4391 pcie_capability_set_word(dev, PCI_EXP_DEVCTL, PCI_EXP_DEVCTL_RELAX_EN); 4391 pcie_capability_set_word(dev, PCI_EXP_DEVCTL, PCI_EXP_DEVCTL_RELAX_EN);
4392} 4392}
@@ -4419,7 +4419,7 @@ static void free_some_resources(struct adapter *adapter)
4419#define VLAN_FEAT (NETIF_F_SG | NETIF_F_IP_CSUM | TSO_FLAGS | \ 4419#define VLAN_FEAT (NETIF_F_SG | NETIF_F_IP_CSUM | TSO_FLAGS | \
4420 NETIF_F_IPV6_CSUM | NETIF_F_HIGHDMA) 4420 NETIF_F_IPV6_CSUM | NETIF_F_HIGHDMA)
4421 4421
4422static int __devinit init_one(struct pci_dev *pdev, 4422static int init_one(struct pci_dev *pdev,
4423 const struct pci_device_id *ent) 4423 const struct pci_device_id *ent)
4424{ 4424{
4425 int func, i, err; 4425 int func, i, err;
@@ -4640,7 +4640,7 @@ sriov:
4640 return err; 4640 return err;
4641} 4641}
4642 4642
4643static void __devexit remove_one(struct pci_dev *pdev) 4643static void remove_one(struct pci_dev *pdev)
4644{ 4644{
4645 struct adapter *adapter = pci_get_drvdata(pdev); 4645 struct adapter *adapter = pci_get_drvdata(pdev);
4646 4646
@@ -4680,7 +4680,7 @@ static struct pci_driver cxgb4_driver = {
4680 .name = KBUILD_MODNAME, 4680 .name = KBUILD_MODNAME,
4681 .id_table = cxgb4_pci_tbl, 4681 .id_table = cxgb4_pci_tbl,
4682 .probe = init_one, 4682 .probe = init_one,
4683 .remove = __devexit_p(remove_one), 4683 .remove = remove_one,
4684 .err_handler = &cxgb4_eeh, 4684 .err_handler = &cxgb4_eeh,
4685}; 4685};
4686 4686
diff --git a/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c b/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c
index 730ae2cfa49e..8ea773630d10 100644
--- a/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c
+++ b/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c
@@ -2003,7 +2003,7 @@ void t4_tp_wr_bits_indirect(struct adapter *adap, unsigned int addr,
2003 * 2003 *
2004 * Initialize the congestion control parameters. 2004 * Initialize the congestion control parameters.
2005 */ 2005 */
2006static void __devinit init_cong_ctrl(unsigned short *a, unsigned short *b) 2006static void init_cong_ctrl(unsigned short *a, unsigned short *b)
2007{ 2007{
2008 a[0] = a[1] = a[2] = a[3] = a[4] = a[5] = a[6] = a[7] = a[8] = 1; 2008 a[0] = a[1] = a[2] = a[3] = a[4] = a[5] = a[6] = a[7] = a[8] = 1;
2009 a[9] = 2; 2009 a[9] = 2;
@@ -3440,7 +3440,7 @@ int t4_handle_fw_rpl(struct adapter *adap, const __be64 *rpl)
3440 return 0; 3440 return 0;
3441} 3441}
3442 3442
3443static void __devinit get_pci_mode(struct adapter *adapter, 3443static void get_pci_mode(struct adapter *adapter,
3444 struct pci_params *p) 3444 struct pci_params *p)
3445{ 3445{
3446 u16 val; 3446 u16 val;
@@ -3460,7 +3460,7 @@ static void __devinit get_pci_mode(struct adapter *adapter,
3460 * Initializes the SW state maintained for each link, including the link's 3460 * Initializes the SW state maintained for each link, including the link's
3461 * capabilities and default speed/flow-control/autonegotiation settings. 3461 * capabilities and default speed/flow-control/autonegotiation settings.
3462 */ 3462 */
3463static void __devinit init_link_config(struct link_config *lc, 3463static void init_link_config(struct link_config *lc,
3464 unsigned int caps) 3464 unsigned int caps)
3465{ 3465{
3466 lc->supported = caps; 3466 lc->supported = caps;
@@ -3485,7 +3485,7 @@ int t4_wait_dev_ready(struct adapter *adap)
3485 return t4_read_reg(adap, PL_WHOAMI) != 0xffffffff ? 0 : -EIO; 3485 return t4_read_reg(adap, PL_WHOAMI) != 0xffffffff ? 0 : -EIO;
3486} 3486}
3487 3487
3488static int __devinit get_flash_params(struct adapter *adap) 3488static int get_flash_params(struct adapter *adap)
3489{ 3489{
3490 int ret; 3490 int ret;
3491 u32 info; 3491 u32 info;
@@ -3521,7 +3521,7 @@ static int __devinit get_flash_params(struct adapter *adap)
3521 * values for some adapter tunables, take PHYs out of reset, and 3521 * values for some adapter tunables, take PHYs out of reset, and
3522 * initialize the MDIO interface. 3522 * initialize the MDIO interface.
3523 */ 3523 */
3524int __devinit t4_prep_adapter(struct adapter *adapter) 3524int t4_prep_adapter(struct adapter *adapter)
3525{ 3525{
3526 int ret; 3526 int ret;
3527 3527
@@ -3549,7 +3549,7 @@ int __devinit t4_prep_adapter(struct adapter *adapter)
3549 return 0; 3549 return 0;
3550} 3550}
3551 3551
3552int __devinit t4_port_init(struct adapter *adap, int mbox, int pf, int vf) 3552int t4_port_init(struct adapter *adap, int mbox, int pf, int vf)
3553{ 3553{
3554 u8 addr[6]; 3554 u8 addr[6];
3555 int ret, i, j = 0; 3555 int ret, i, j = 0;
diff --git a/drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c b/drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c
index 9dad56101e23..f866eb5e35de 100644
--- a/drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c
+++ b/drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c
@@ -2023,7 +2023,7 @@ static struct cxgb4vf_debugfs_entry debugfs_files[] = {
2023 * Set up out /sys/kernel/debug/cxgb4vf sub-nodes. We assume that the 2023 * Set up out /sys/kernel/debug/cxgb4vf sub-nodes. We assume that the
2024 * directory (debugfs_root) has already been set up. 2024 * directory (debugfs_root) has already been set up.
2025 */ 2025 */
2026static int __devinit setup_debugfs(struct adapter *adapter) 2026static int setup_debugfs(struct adapter *adapter)
2027{ 2027{
2028 int i; 2028 int i;
2029 2029
@@ -2064,7 +2064,7 @@ static void cleanup_debugfs(struct adapter *adapter)
2064 * adapter parameters we're going to be using and initialize basic adapter 2064 * adapter parameters we're going to be using and initialize basic adapter
2065 * hardware support. 2065 * hardware support.
2066 */ 2066 */
2067static int __devinit adap_init0(struct adapter *adapter) 2067static int adap_init0(struct adapter *adapter)
2068{ 2068{
2069 struct vf_resources *vfres = &adapter->params.vfres; 2069 struct vf_resources *vfres = &adapter->params.vfres;
2070 struct sge_params *sge_params = &adapter->params.sge; 2070 struct sge_params *sge_params = &adapter->params.sge;
@@ -2266,7 +2266,7 @@ static inline void init_rspq(struct sge_rspq *rspq, u8 timer_idx,
2266 * be modified by the admin via ethtool and cxgbtool prior to the adapter 2266 * be modified by the admin via ethtool and cxgbtool prior to the adapter
2267 * being brought up for the first time. 2267 * being brought up for the first time.
2268 */ 2268 */
2269static void __devinit cfg_queues(struct adapter *adapter) 2269static void cfg_queues(struct adapter *adapter)
2270{ 2270{
2271 struct sge *s = &adapter->sge; 2271 struct sge *s = &adapter->sge;
2272 int q10g, n10g, qidx, pidx, qs; 2272 int q10g, n10g, qidx, pidx, qs;
@@ -2361,7 +2361,7 @@ static void __devinit cfg_queues(struct adapter *adapter)
2361 * Reduce the number of Ethernet queues across all ports to at most n. 2361 * Reduce the number of Ethernet queues across all ports to at most n.
2362 * n provides at least one queue per port. 2362 * n provides at least one queue per port.
2363 */ 2363 */
2364static void __devinit reduce_ethqs(struct adapter *adapter, int n) 2364static void reduce_ethqs(struct adapter *adapter, int n)
2365{ 2365{
2366 int i; 2366 int i;
2367 struct port_info *pi; 2367 struct port_info *pi;
@@ -2400,7 +2400,7 @@ static void __devinit reduce_ethqs(struct adapter *adapter, int n)
2400 * for our "extras". Note that this process may lower the maximum number of 2400 * for our "extras". Note that this process may lower the maximum number of
2401 * allowed Queue Sets ... 2401 * allowed Queue Sets ...
2402 */ 2402 */
2403static int __devinit enable_msix(struct adapter *adapter) 2403static int enable_msix(struct adapter *adapter)
2404{ 2404{
2405 int i, err, want, need; 2405 int i, err, want, need;
2406 struct msix_entry entries[MSIX_ENTRIES]; 2406 struct msix_entry entries[MSIX_ENTRIES];
@@ -2462,7 +2462,7 @@ static const struct net_device_ops cxgb4vf_netdev_ops = {
2462 * state needed to manage the device. This routine is called "init_one" in 2462 * state needed to manage the device. This routine is called "init_one" in
2463 * the PF Driver ... 2463 * the PF Driver ...
2464 */ 2464 */
2465static int __devinit cxgb4vf_pci_probe(struct pci_dev *pdev, 2465static int cxgb4vf_pci_probe(struct pci_dev *pdev,
2466 const struct pci_device_id *ent) 2466 const struct pci_device_id *ent)
2467{ 2467{
2468 static int version_printed; 2468 static int version_printed;
@@ -2769,7 +2769,7 @@ err_disable_device:
2769 * "probe" routine and quiesce the device (disable interrupts, etc.). (Note 2769 * "probe" routine and quiesce the device (disable interrupts, etc.). (Note
2770 * that this is called "remove_one" in the PF Driver.) 2770 * that this is called "remove_one" in the PF Driver.)
2771 */ 2771 */
2772static void __devexit cxgb4vf_pci_remove(struct pci_dev *pdev) 2772static void cxgb4vf_pci_remove(struct pci_dev *pdev)
2773{ 2773{
2774 struct adapter *adapter = pci_get_drvdata(pdev); 2774 struct adapter *adapter = pci_get_drvdata(pdev);
2775 2775
@@ -2835,7 +2835,7 @@ static void __devexit cxgb4vf_pci_remove(struct pci_dev *pdev)
2835 * "Shutdown" quiesce the device, stopping Ingress Packet and Interrupt 2835 * "Shutdown" quiesce the device, stopping Ingress Packet and Interrupt
2836 * delivery. 2836 * delivery.
2837 */ 2837 */
2838static void __devexit cxgb4vf_pci_shutdown(struct pci_dev *pdev) 2838static void cxgb4vf_pci_shutdown(struct pci_dev *pdev)
2839{ 2839{
2840 struct adapter *adapter; 2840 struct adapter *adapter;
2841 int pidx; 2841 int pidx;
@@ -2905,8 +2905,8 @@ static struct pci_driver cxgb4vf_driver = {
2905 .name = KBUILD_MODNAME, 2905 .name = KBUILD_MODNAME,
2906 .id_table = cxgb4vf_pci_tbl, 2906 .id_table = cxgb4vf_pci_tbl,
2907 .probe = cxgb4vf_pci_probe, 2907 .probe = cxgb4vf_pci_probe,
2908 .remove = __devexit_p(cxgb4vf_pci_remove), 2908 .remove = cxgb4vf_pci_remove,
2909 .shutdown = __devexit_p(cxgb4vf_pci_shutdown), 2909 .shutdown = cxgb4vf_pci_shutdown,
2910}; 2910};
2911 2911
2912/* 2912/*
diff --git a/drivers/net/ethernet/chelsio/cxgb4vf/t4vf_common.h b/drivers/net/ethernet/chelsio/cxgb4vf/t4vf_common.h
index a65c80aed1f2..283f9d0d37fd 100644
--- a/drivers/net/ethernet/chelsio/cxgb4vf/t4vf_common.h
+++ b/drivers/net/ethernet/chelsio/cxgb4vf/t4vf_common.h
@@ -232,8 +232,8 @@ static inline int t4vf_wr_mbox_ns(struct adapter *adapter, const void *cmd,
232 return t4vf_wr_mbox_core(adapter, cmd, size, rpl, false); 232 return t4vf_wr_mbox_core(adapter, cmd, size, rpl, false);
233} 233}
234 234
235int __devinit t4vf_wait_dev_ready(struct adapter *); 235int t4vf_wait_dev_ready(struct adapter *);
236int __devinit t4vf_port_init(struct adapter *, int); 236int t4vf_port_init(struct adapter *, int);
237 237
238int t4vf_fw_reset(struct adapter *); 238int t4vf_fw_reset(struct adapter *);
239int t4vf_query_params(struct adapter *, unsigned int, const u32 *, u32 *); 239int t4vf_query_params(struct adapter *, unsigned int, const u32 *, u32 *);
diff --git a/drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c b/drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c
index fe3fd3dad6f7..9b70cccf8437 100644
--- a/drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c
+++ b/drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c
@@ -46,7 +46,7 @@
46 * returning a value other than all 1's). Return an error if it doesn't 46 * returning a value other than all 1's). Return an error if it doesn't
47 * become ready ... 47 * become ready ...
48 */ 48 */
49int __devinit t4vf_wait_dev_ready(struct adapter *adapter) 49int t4vf_wait_dev_ready(struct adapter *adapter)
50{ 50{
51 const u32 whoami = T4VF_PL_BASE_ADDR + PL_VF_WHOAMI; 51 const u32 whoami = T4VF_PL_BASE_ADDR + PL_VF_WHOAMI;
52 const u32 notready1 = 0xffffffff; 52 const u32 notready1 = 0xffffffff;
@@ -253,7 +253,7 @@ static int hash_mac_addr(const u8 *addr)
253 * Initializes the SW state maintained for each link, including the link's 253 * Initializes the SW state maintained for each link, including the link's
254 * capabilities and default speed/flow-control/autonegotiation settings. 254 * capabilities and default speed/flow-control/autonegotiation settings.
255 */ 255 */
256static void __devinit init_link_config(struct link_config *lc, 256static void init_link_config(struct link_config *lc,
257 unsigned int caps) 257 unsigned int caps)
258{ 258{
259 lc->supported = caps; 259 lc->supported = caps;
@@ -275,7 +275,7 @@ static void __devinit init_link_config(struct link_config *lc,
275 * @adapter: the adapter 275 * @adapter: the adapter
276 * @pidx: the adapter port index 276 * @pidx: the adapter port index
277 */ 277 */
278int __devinit t4vf_port_init(struct adapter *adapter, int pidx) 278int t4vf_port_init(struct adapter *adapter, int pidx)
279{ 279{
280 struct port_info *pi = adap2pinfo(adapter, pidx); 280 struct port_info *pi = adap2pinfo(adapter, pidx);
281 struct fw_vi_cmd vi_cmd, vi_rpl; 281 struct fw_vi_cmd vi_cmd, vi_rpl;
diff --git a/drivers/net/ethernet/cisco/enic/enic_main.c b/drivers/net/ethernet/cisco/enic/enic_main.c
index ad1468b3ab91..930f03bd1263 100644
--- a/drivers/net/ethernet/cisco/enic/enic_main.c
+++ b/drivers/net/ethernet/cisco/enic/enic_main.c
@@ -2275,7 +2275,7 @@ static void enic_iounmap(struct enic *enic)
2275 iounmap(enic->bar[i].vaddr); 2275 iounmap(enic->bar[i].vaddr);
2276} 2276}
2277 2277
2278static int __devinit enic_probe(struct pci_dev *pdev, 2278static int enic_probe(struct pci_dev *pdev,
2279 const struct pci_device_id *ent) 2279 const struct pci_device_id *ent)
2280{ 2280{
2281 struct device *dev = &pdev->dev; 2281 struct device *dev = &pdev->dev;
@@ -2552,7 +2552,7 @@ err_out_free_netdev:
2552 return err; 2552 return err;
2553} 2553}
2554 2554
2555static void __devexit enic_remove(struct pci_dev *pdev) 2555static void enic_remove(struct pci_dev *pdev)
2556{ 2556{
2557 struct net_device *netdev = pci_get_drvdata(pdev); 2557 struct net_device *netdev = pci_get_drvdata(pdev);
2558 2558
@@ -2584,7 +2584,7 @@ static struct pci_driver enic_driver = {
2584 .name = DRV_NAME, 2584 .name = DRV_NAME,
2585 .id_table = enic_id_table, 2585 .id_table = enic_id_table,
2586 .probe = enic_probe, 2586 .probe = enic_probe,
2587 .remove = __devexit_p(enic_remove), 2587 .remove = enic_remove,
2588}; 2588};
2589 2589
2590static int __init enic_init_module(void) 2590static int __init enic_init_module(void)
diff --git a/drivers/net/ethernet/davicom/dm9000.c b/drivers/net/ethernet/davicom/dm9000.c
index 36499d5edd95..c716e95a61fe 100644
--- a/drivers/net/ethernet/davicom/dm9000.c
+++ b/drivers/net/ethernet/davicom/dm9000.c
@@ -1359,7 +1359,7 @@ static const struct net_device_ops dm9000_netdev_ops = {
1359/* 1359/*
1360 * Search DM9000 board, allocate space and register it 1360 * Search DM9000 board, allocate space and register it
1361 */ 1361 */
1362static int __devinit 1362static int
1363dm9000_probe(struct platform_device *pdev) 1363dm9000_probe(struct platform_device *pdev)
1364{ 1364{
1365 struct dm9000_plat_data *pdata = pdev->dev.platform_data; 1365 struct dm9000_plat_data *pdata = pdev->dev.platform_data;
@@ -1661,7 +1661,7 @@ static const struct dev_pm_ops dm9000_drv_pm_ops = {
1661 .resume = dm9000_drv_resume, 1661 .resume = dm9000_drv_resume,
1662}; 1662};
1663 1663
1664static int __devexit 1664static int
1665dm9000_drv_remove(struct platform_device *pdev) 1665dm9000_drv_remove(struct platform_device *pdev)
1666{ 1666{
1667 struct net_device *ndev = platform_get_drvdata(pdev); 1667 struct net_device *ndev = platform_get_drvdata(pdev);
@@ -1683,7 +1683,7 @@ static struct platform_driver dm9000_driver = {
1683 .pm = &dm9000_drv_pm_ops, 1683 .pm = &dm9000_drv_pm_ops,
1684 }, 1684 },
1685 .probe = dm9000_probe, 1685 .probe = dm9000_probe,
1686 .remove = __devexit_p(dm9000_drv_remove), 1686 .remove = dm9000_drv_remove,
1687}; 1687};
1688 1688
1689static int __init 1689static int __init
diff --git a/drivers/net/ethernet/dec/tulip/de2104x.c b/drivers/net/ethernet/dec/tulip/de2104x.c
index 77335853ac36..0918e3879abe 100644
--- a/drivers/net/ethernet/dec/tulip/de2104x.c
+++ b/drivers/net/ethernet/dec/tulip/de2104x.c
@@ -1700,7 +1700,7 @@ static const struct ethtool_ops de_ethtool_ops = {
1700 .get_regs = de_get_regs, 1700 .get_regs = de_get_regs,
1701}; 1701};
1702 1702
1703static void __devinit de21040_get_mac_address (struct de_private *de) 1703static void de21040_get_mac_address(struct de_private *de)
1704{ 1704{
1705 unsigned i; 1705 unsigned i;
1706 1706
@@ -1721,7 +1721,7 @@ static void __devinit de21040_get_mac_address (struct de_private *de)
1721 } 1721 }
1722} 1722}
1723 1723
1724static void __devinit de21040_get_media_info(struct de_private *de) 1724static void de21040_get_media_info(struct de_private *de)
1725{ 1725{
1726 unsigned int i; 1726 unsigned int i;
1727 1727
@@ -1748,7 +1748,8 @@ static void __devinit de21040_get_media_info(struct de_private *de)
1748} 1748}
1749 1749
1750/* Note: this routine returns extra data bits for size detection. */ 1750/* Note: this routine returns extra data bits for size detection. */
1751static unsigned __devinit tulip_read_eeprom(void __iomem *regs, int location, int addr_len) 1751static unsigned tulip_read_eeprom(void __iomem *regs, int location,
1752 int addr_len)
1752{ 1753{
1753 int i; 1754 int i;
1754 unsigned retval = 0; 1755 unsigned retval = 0;
@@ -1783,7 +1784,7 @@ static unsigned __devinit tulip_read_eeprom(void __iomem *regs, int location, in
1783 return retval; 1784 return retval;
1784} 1785}
1785 1786
1786static void __devinit de21041_get_srom_info (struct de_private *de) 1787static void de21041_get_srom_info(struct de_private *de)
1787{ 1788{
1788 unsigned i, sa_offset = 0, ofs; 1789 unsigned i, sa_offset = 0, ofs;
1789 u8 ee_data[DE_EEPROM_SIZE + 6] = {}; 1790 u8 ee_data[DE_EEPROM_SIZE + 6] = {};
@@ -1961,8 +1962,8 @@ static const struct net_device_ops de_netdev_ops = {
1961 .ndo_validate_addr = eth_validate_addr, 1962 .ndo_validate_addr = eth_validate_addr,
1962}; 1963};
1963 1964
1964static int __devinit de_init_one (struct pci_dev *pdev, 1965static int de_init_one(struct pci_dev *pdev,
1965 const struct pci_device_id *ent) 1966 const struct pci_device_id *ent)
1966{ 1967{
1967 struct net_device *dev; 1968 struct net_device *dev;
1968 struct de_private *de; 1969 struct de_private *de;
@@ -2099,7 +2100,7 @@ err_out_free:
2099 return rc; 2100 return rc;
2100} 2101}
2101 2102
2102static void __devexit de_remove_one (struct pci_dev *pdev) 2103static void de_remove_one(struct pci_dev *pdev)
2103{ 2104{
2104 struct net_device *dev = pci_get_drvdata(pdev); 2105 struct net_device *dev = pci_get_drvdata(pdev);
2105 struct de_private *de = netdev_priv(dev); 2106 struct de_private *de = netdev_priv(dev);
@@ -2184,7 +2185,7 @@ static struct pci_driver de_driver = {
2184 .name = DRV_NAME, 2185 .name = DRV_NAME,
2185 .id_table = de_pci_tbl, 2186 .id_table = de_pci_tbl,
2186 .probe = de_init_one, 2187 .probe = de_init_one,
2187 .remove = __devexit_p(de_remove_one), 2188 .remove = de_remove_one,
2188#ifdef CONFIG_PM 2189#ifdef CONFIG_PM
2189 .suspend = de_suspend, 2190 .suspend = de_suspend,
2190 .resume = de_resume, 2191 .resume = de_resume,
diff --git a/drivers/net/ethernet/dec/tulip/de4x5.c b/drivers/net/ethernet/dec/tulip/de4x5.c
index f879e9224846..c411aedd8e60 100644
--- a/drivers/net/ethernet/dec/tulip/de4x5.c
+++ b/drivers/net/ethernet/dec/tulip/de4x5.c
@@ -479,7 +479,7 @@
479 479
480#include "de4x5.h" 480#include "de4x5.h"
481 481
482static const char version[] __devinitconst = 482static const char version[] =
483 KERN_INFO "de4x5.c:V0.546 2001/02/22 davies@maniac.ultranet.com\n"; 483 KERN_INFO "de4x5.c:V0.546 2001/02/22 davies@maniac.ultranet.com\n";
484 484
485#define c_char const char 485#define c_char const char
@@ -1092,7 +1092,7 @@ static const struct net_device_ops de4x5_netdev_ops = {
1092}; 1092};
1093 1093
1094 1094
1095static int __devinit 1095static int
1096de4x5_hw_init(struct net_device *dev, u_long iobase, struct device *gendev) 1096de4x5_hw_init(struct net_device *dev, u_long iobase, struct device *gendev)
1097{ 1097{
1098 char name[DE4X5_NAME_LENGTH + 1]; 1098 char name[DE4X5_NAME_LENGTH + 1];
@@ -2077,7 +2077,7 @@ static int __init de4x5_eisa_probe (struct device *gendev)
2077 return status; 2077 return status;
2078} 2078}
2079 2079
2080static int __devexit de4x5_eisa_remove (struct device *device) 2080static int de4x5_eisa_remove(struct device *device)
2081{ 2081{
2082 struct net_device *dev; 2082 struct net_device *dev;
2083 u_long iobase; 2083 u_long iobase;
@@ -2104,7 +2104,7 @@ static struct eisa_driver de4x5_eisa_driver = {
2104 .driver = { 2104 .driver = {
2105 .name = "de4x5", 2105 .name = "de4x5",
2106 .probe = de4x5_eisa_probe, 2106 .probe = de4x5_eisa_probe,
2107 .remove = __devexit_p (de4x5_eisa_remove), 2107 .remove = de4x5_eisa_remove,
2108 } 2108 }
2109}; 2109};
2110MODULE_DEVICE_TABLE(eisa, de4x5_eisa_ids); 2110MODULE_DEVICE_TABLE(eisa, de4x5_eisa_ids);
@@ -2118,7 +2118,7 @@ MODULE_DEVICE_TABLE(eisa, de4x5_eisa_ids);
2118** DECchips, we can find the base SROM irrespective of the BIOS scan direction. 2118** DECchips, we can find the base SROM irrespective of the BIOS scan direction.
2119** For single port cards this is a time waster... 2119** For single port cards this is a time waster...
2120*/ 2120*/
2121static void __devinit 2121static void
2122srom_search(struct net_device *dev, struct pci_dev *pdev) 2122srom_search(struct net_device *dev, struct pci_dev *pdev)
2123{ 2123{
2124 u_char pb; 2124 u_char pb;
@@ -2192,8 +2192,8 @@ srom_search(struct net_device *dev, struct pci_dev *pdev)
2192** kernels use the V0.535[n] drivers. 2192** kernels use the V0.535[n] drivers.
2193*/ 2193*/
2194 2194
2195static int __devinit de4x5_pci_probe (struct pci_dev *pdev, 2195static int de4x5_pci_probe(struct pci_dev *pdev,
2196 const struct pci_device_id *ent) 2196 const struct pci_device_id *ent)
2197{ 2197{
2198 u_char pb, pbus = 0, dev_num, dnum = 0, timer; 2198 u_char pb, pbus = 0, dev_num, dnum = 0, timer;
2199 u_short vendor, status; 2199 u_short vendor, status;
@@ -2314,7 +2314,7 @@ static int __devinit de4x5_pci_probe (struct pci_dev *pdev,
2314 return error; 2314 return error;
2315} 2315}
2316 2316
2317static void __devexit de4x5_pci_remove (struct pci_dev *pdev) 2317static void de4x5_pci_remove(struct pci_dev *pdev)
2318{ 2318{
2319 struct net_device *dev; 2319 struct net_device *dev;
2320 u_long iobase; 2320 u_long iobase;
@@ -2344,7 +2344,7 @@ static struct pci_driver de4x5_pci_driver = {
2344 .name = "de4x5", 2344 .name = "de4x5",
2345 .id_table = de4x5_pci_tbl, 2345 .id_table = de4x5_pci_tbl,
2346 .probe = de4x5_pci_probe, 2346 .probe = de4x5_pci_probe,
2347 .remove = __devexit_p (de4x5_pci_remove), 2347 .remove = de4x5_pci_remove,
2348}; 2348};
2349 2349
2350#endif 2350#endif
diff --git a/drivers/net/ethernet/dec/tulip/dmfe.c b/drivers/net/ethernet/dec/tulip/dmfe.c
index d23755ea9bc7..56a8fe7d4ef2 100644
--- a/drivers/net/ethernet/dec/tulip/dmfe.c
+++ b/drivers/net/ethernet/dec/tulip/dmfe.c
@@ -291,8 +291,8 @@ enum dmfe_CR6_bits {
291}; 291};
292 292
293/* Global variable declaration ----------------------------- */ 293/* Global variable declaration ----------------------------- */
294static int __devinitdata printed_version; 294static int printed_version;
295static const char version[] __devinitconst = 295static const char version[] =
296 "Davicom DM9xxx net driver, version " DRV_VERSION " (" DRV_RELDATE ")"; 296 "Davicom DM9xxx net driver, version " DRV_VERSION " (" DRV_RELDATE ")";
297 297
298static int dmfe_debug; 298static int dmfe_debug;
@@ -367,8 +367,8 @@ static const struct net_device_ops netdev_ops = {
367 * Search DM910X board ,allocate space and register it 367 * Search DM910X board ,allocate space and register it
368 */ 368 */
369 369
370static int __devinit dmfe_init_one (struct pci_dev *pdev, 370static int dmfe_init_one(struct pci_dev *pdev,
371 const struct pci_device_id *ent) 371 const struct pci_device_id *ent)
372{ 372{
373 struct dmfe_board_info *db; /* board information structure */ 373 struct dmfe_board_info *db; /* board information structure */
374 struct net_device *dev; 374 struct net_device *dev;
@@ -531,7 +531,7 @@ err_out_free:
531} 531}
532 532
533 533
534static void __devexit dmfe_remove_one (struct pci_dev *pdev) 534static void dmfe_remove_one(struct pci_dev *pdev)
535{ 535{
536 struct net_device *dev = pci_get_drvdata(pdev); 536 struct net_device *dev = pci_get_drvdata(pdev);
537 struct dmfe_board_info *db = netdev_priv(dev); 537 struct dmfe_board_info *db = netdev_priv(dev);
@@ -2187,7 +2187,7 @@ static struct pci_driver dmfe_driver = {
2187 .name = "dmfe", 2187 .name = "dmfe",
2188 .id_table = dmfe_pci_tbl, 2188 .id_table = dmfe_pci_tbl,
2189 .probe = dmfe_init_one, 2189 .probe = dmfe_init_one,
2190 .remove = __devexit_p(dmfe_remove_one), 2190 .remove = dmfe_remove_one,
2191 .suspend = dmfe_suspend, 2191 .suspend = dmfe_suspend,
2192 .resume = dmfe_resume 2192 .resume = dmfe_resume
2193}; 2193};
diff --git a/drivers/net/ethernet/dec/tulip/eeprom.c b/drivers/net/ethernet/dec/tulip/eeprom.c
index 44f7e8e82d85..df5a892fb49c 100644
--- a/drivers/net/ethernet/dec/tulip/eeprom.c
+++ b/drivers/net/ethernet/dec/tulip/eeprom.c
@@ -26,7 +26,7 @@
26 */ 26 */
27 27
28/* Known cards that have old-style EEPROMs. */ 28/* Known cards that have old-style EEPROMs. */
29static struct eeprom_fixup eeprom_fixups[] __devinitdata = { 29static struct eeprom_fixup eeprom_fixups[] = {
30 {"Asante", 0, 0, 0x94, {0x1e00, 0x0000, 0x0800, 0x0100, 0x018c, 30 {"Asante", 0, 0, 0x94, {0x1e00, 0x0000, 0x0800, 0x0100, 0x018c,
31 0x0000, 0x0000, 0xe078, 0x0001, 0x0050, 0x0018 }}, 31 0x0000, 0x0000, 0xe078, 0x0001, 0x0050, 0x0018 }},
32 {"SMC9332DST", 0, 0, 0xC0, { 0x1e00, 0x0000, 0x0800, 0x041f, 32 {"SMC9332DST", 0, 0, 0xC0, { 0x1e00, 0x0000, 0x0800, 0x041f,
@@ -79,7 +79,7 @@ static struct eeprom_fixup eeprom_fixups[] __devinitdata = {
79 {NULL}}; 79 {NULL}};
80 80
81 81
82static const char *const block_name[] __devinitconst = { 82static const char *const block_name[] = {
83 "21140 non-MII", 83 "21140 non-MII",
84 "21140 MII PHY", 84 "21140 MII PHY",
85 "21142 Serial PHY", 85 "21142 Serial PHY",
@@ -102,7 +102,7 @@ static const char *const block_name[] __devinitconst = {
102 * #ifdef __hppa__ should completely optimize this function away for 102 * #ifdef __hppa__ should completely optimize this function away for
103 * non-parisc hardware. 103 * non-parisc hardware.
104 */ 104 */
105static void __devinit tulip_build_fake_mediatable(struct tulip_private *tp) 105static void tulip_build_fake_mediatable(struct tulip_private *tp)
106{ 106{
107#ifdef CONFIG_GSC 107#ifdef CONFIG_GSC
108 if (tp->flags & NEEDS_FAKE_MEDIA_TABLE) { 108 if (tp->flags & NEEDS_FAKE_MEDIA_TABLE) {
@@ -140,7 +140,7 @@ static void __devinit tulip_build_fake_mediatable(struct tulip_private *tp)
140#endif 140#endif
141} 141}
142 142
143void __devinit tulip_parse_eeprom(struct net_device *dev) 143void tulip_parse_eeprom(struct net_device *dev)
144{ 144{
145 /* 145 /*
146 dev is not registered at this point, so logging messages can't 146 dev is not registered at this point, so logging messages can't
@@ -339,7 +339,7 @@ subsequent_board:
339#define EE_READ_CMD (6) 339#define EE_READ_CMD (6)
340 340
341/* Note: this routine returns extra data bits for size detection. */ 341/* Note: this routine returns extra data bits for size detection. */
342int __devinit tulip_read_eeprom(struct net_device *dev, int location, int addr_len) 342int tulip_read_eeprom(struct net_device *dev, int location, int addr_len)
343{ 343{
344 int i; 344 int i;
345 unsigned retval = 0; 345 unsigned retval = 0;
diff --git a/drivers/net/ethernet/dec/tulip/media.c b/drivers/net/ethernet/dec/tulip/media.c
index ae937c6749e7..93a4afaa09f1 100644
--- a/drivers/net/ethernet/dec/tulip/media.c
+++ b/drivers/net/ethernet/dec/tulip/media.c
@@ -447,7 +447,7 @@ int tulip_check_duplex(struct net_device *dev)
447 return 0; 447 return 0;
448} 448}
449 449
450void __devinit tulip_find_mii (struct net_device *dev, int board_idx) 450void tulip_find_mii(struct net_device *dev, int board_idx)
451{ 451{
452 struct tulip_private *tp = netdev_priv(dev); 452 struct tulip_private *tp = netdev_priv(dev);
453 int phyn, phy_idx = 0; 453 int phyn, phy_idx = 0;
diff --git a/drivers/net/ethernet/dec/tulip/tulip_core.c b/drivers/net/ethernet/dec/tulip/tulip_core.c
index 885700a19978..157c8e6e93f9 100644
--- a/drivers/net/ethernet/dec/tulip/tulip_core.c
+++ b/drivers/net/ethernet/dec/tulip/tulip_core.c
@@ -37,7 +37,7 @@
37#include <asm/prom.h> 37#include <asm/prom.h>
38#endif 38#endif
39 39
40static char version[] __devinitdata = 40static char version[] =
41 "Linux Tulip driver version " DRV_VERSION " (" DRV_RELDATE ")\n"; 41 "Linux Tulip driver version " DRV_VERSION " (" DRV_RELDATE ")\n";
42 42
43/* A few user-configurable values. */ 43/* A few user-configurable values. */
@@ -1191,8 +1191,8 @@ static void set_rx_mode(struct net_device *dev)
1191} 1191}
1192 1192
1193#ifdef CONFIG_TULIP_MWI 1193#ifdef CONFIG_TULIP_MWI
1194static void __devinit tulip_mwi_config (struct pci_dev *pdev, 1194static void tulip_mwi_config(struct pci_dev *pdev,
1195 struct net_device *dev) 1195 struct net_device *dev)
1196{ 1196{
1197 struct tulip_private *tp = netdev_priv(dev); 1197 struct tulip_private *tp = netdev_priv(dev);
1198 u8 cache; 1198 u8 cache;
@@ -1301,8 +1301,8 @@ DEFINE_PCI_DEVICE_TABLE(early_486_chipsets) = {
1301 { }, 1301 { },
1302}; 1302};
1303 1303
1304static int __devinit tulip_init_one (struct pci_dev *pdev, 1304static int tulip_init_one(struct pci_dev *pdev,
1305 const struct pci_device_id *ent) 1305 const struct pci_device_id *ent)
1306{ 1306{
1307 struct tulip_private *tp; 1307 struct tulip_private *tp;
1308 /* See note below on the multiport cards. */ 1308 /* See note below on the multiport cards. */
@@ -1927,7 +1927,7 @@ static int tulip_resume(struct pci_dev *pdev)
1927#endif /* CONFIG_PM */ 1927#endif /* CONFIG_PM */
1928 1928
1929 1929
1930static void __devexit tulip_remove_one (struct pci_dev *pdev) 1930static void tulip_remove_one(struct pci_dev *pdev)
1931{ 1931{
1932 struct net_device *dev = pci_get_drvdata (pdev); 1932 struct net_device *dev = pci_get_drvdata (pdev);
1933 struct tulip_private *tp; 1933 struct tulip_private *tp;
@@ -1974,7 +1974,7 @@ static struct pci_driver tulip_driver = {
1974 .name = DRV_NAME, 1974 .name = DRV_NAME,
1975 .id_table = tulip_pci_tbl, 1975 .id_table = tulip_pci_tbl,
1976 .probe = tulip_init_one, 1976 .probe = tulip_init_one,
1977 .remove = __devexit_p(tulip_remove_one), 1977 .remove = tulip_remove_one,
1978#ifdef CONFIG_PM 1978#ifdef CONFIG_PM
1979 .suspend = tulip_suspend, 1979 .suspend = tulip_suspend,
1980 .resume = tulip_resume, 1980 .resume = tulip_resume,
diff --git a/drivers/net/ethernet/dec/tulip/uli526x.c b/drivers/net/ethernet/dec/tulip/uli526x.c
index 75d45f8a37dc..93845afe1cea 100644
--- a/drivers/net/ethernet/dec/tulip/uli526x.c
+++ b/drivers/net/ethernet/dec/tulip/uli526x.c
@@ -204,8 +204,8 @@ enum uli526x_CR6_bits {
204}; 204};
205 205
206/* Global variable declaration ----------------------------- */ 206/* Global variable declaration ----------------------------- */
207static int __devinitdata printed_version; 207static int printed_version;
208static const char version[] __devinitconst = 208static const char version[] =
209 "ULi M5261/M5263 net driver, version " DRV_VERSION " (" DRV_RELDATE ")"; 209 "ULi M5261/M5263 net driver, version " DRV_VERSION " (" DRV_RELDATE ")";
210 210
211static int uli526x_debug; 211static int uli526x_debug;
@@ -281,8 +281,8 @@ static const struct net_device_ops netdev_ops = {
281 * Search ULI526X board, allocate space and register it 281 * Search ULI526X board, allocate space and register it
282 */ 282 */
283 283
284static int __devinit uli526x_init_one (struct pci_dev *pdev, 284static int uli526x_init_one(struct pci_dev *pdev,
285 const struct pci_device_id *ent) 285 const struct pci_device_id *ent)
286{ 286{
287 struct uli526x_board_info *db; /* board information structure */ 287 struct uli526x_board_info *db; /* board information structure */
288 struct net_device *dev; 288 struct net_device *dev;
@@ -436,7 +436,7 @@ err_out_free:
436} 436}
437 437
438 438
439static void __devexit uli526x_remove_one (struct pci_dev *pdev) 439static void uli526x_remove_one(struct pci_dev *pdev)
440{ 440{
441 struct net_device *dev = pci_get_drvdata(pdev); 441 struct net_device *dev = pci_get_drvdata(pdev);
442 struct uli526x_board_info *db = netdev_priv(dev); 442 struct uli526x_board_info *db = netdev_priv(dev);
@@ -1788,7 +1788,7 @@ static struct pci_driver uli526x_driver = {
1788 .name = "uli526x", 1788 .name = "uli526x",
1789 .id_table = uli526x_pci_tbl, 1789 .id_table = uli526x_pci_tbl,
1790 .probe = uli526x_init_one, 1790 .probe = uli526x_init_one,
1791 .remove = __devexit_p(uli526x_remove_one), 1791 .remove = uli526x_remove_one,
1792 .suspend = uli526x_suspend, 1792 .suspend = uli526x_suspend,
1793 .resume = uli526x_resume, 1793 .resume = uli526x_resume,
1794}; 1794};
diff --git a/drivers/net/ethernet/dec/tulip/winbond-840.c b/drivers/net/ethernet/dec/tulip/winbond-840.c
index 7c1ec4d7920b..0a1bda857e76 100644
--- a/drivers/net/ethernet/dec/tulip/winbond-840.c
+++ b/drivers/net/ethernet/dec/tulip/winbond-840.c
@@ -236,7 +236,7 @@ struct pci_id_info {
236 int drv_flags; /* Driver use, intended as capability flags. */ 236 int drv_flags; /* Driver use, intended as capability flags. */
237}; 237};
238 238
239static const struct pci_id_info pci_id_tbl[] __devinitconst = { 239static const struct pci_id_info pci_id_tbl[] = {
240 { /* Sometime a Level-One switch card. */ 240 { /* Sometime a Level-One switch card. */
241 "Winbond W89c840", CanHaveMII | HasBrokenTx | FDXOnNoMII}, 241 "Winbond W89c840", CanHaveMII | HasBrokenTx | FDXOnNoMII},
242 { "Winbond W89c840", CanHaveMII | HasBrokenTx}, 242 { "Winbond W89c840", CanHaveMII | HasBrokenTx},
@@ -358,8 +358,8 @@ static const struct net_device_ops netdev_ops = {
358 .ndo_validate_addr = eth_validate_addr, 358 .ndo_validate_addr = eth_validate_addr,
359}; 359};
360 360
361static int __devinit w840_probe1 (struct pci_dev *pdev, 361static int w840_probe1(struct pci_dev *pdev,
362 const struct pci_device_id *ent) 362 const struct pci_device_id *ent)
363{ 363{
364 struct net_device *dev; 364 struct net_device *dev;
365 struct netdev_private *np; 365 struct netdev_private *np;
@@ -1532,7 +1532,7 @@ static int netdev_close(struct net_device *dev)
1532 return 0; 1532 return 0;
1533} 1533}
1534 1534
1535static void __devexit w840_remove1 (struct pci_dev *pdev) 1535static void w840_remove1(struct pci_dev *pdev)
1536{ 1536{
1537 struct net_device *dev = pci_get_drvdata(pdev); 1537 struct net_device *dev = pci_get_drvdata(pdev);
1538 1538
@@ -1647,7 +1647,7 @@ static struct pci_driver w840_driver = {
1647 .name = DRV_NAME, 1647 .name = DRV_NAME,
1648 .id_table = w840_pci_tbl, 1648 .id_table = w840_pci_tbl,
1649 .probe = w840_probe1, 1649 .probe = w840_probe1,
1650 .remove = __devexit_p(w840_remove1), 1650 .remove = w840_remove1,
1651#ifdef CONFIG_PM 1651#ifdef CONFIG_PM
1652 .suspend = w840_suspend, 1652 .suspend = w840_suspend,
1653 .resume = w840_resume, 1653 .resume = w840_resume,
diff --git a/drivers/net/ethernet/dec/tulip/xircom_cb.c b/drivers/net/ethernet/dec/tulip/xircom_cb.c
index 138bf83bc98e..88feced9a629 100644
--- a/drivers/net/ethernet/dec/tulip/xircom_cb.c
+++ b/drivers/net/ethernet/dec/tulip/xircom_cb.c
@@ -148,7 +148,7 @@ static struct pci_driver xircom_ops = {
148 .name = "xircom_cb", 148 .name = "xircom_cb",
149 .id_table = xircom_pci_table, 149 .id_table = xircom_pci_table,
150 .probe = xircom_probe, 150 .probe = xircom_probe,
151 .remove = __devexit_p(xircom_remove), 151 .remove = xircom_remove,
152}; 152};
153 153
154 154
@@ -190,7 +190,7 @@ static const struct net_device_ops netdev_ops = {
190 first two packets that get send, and pump hates that. 190 first two packets that get send, and pump hates that.
191 191
192 */ 192 */
193static int __devinit xircom_probe(struct pci_dev *pdev, const struct pci_device_id *id) 193static int xircom_probe(struct pci_dev *pdev, const struct pci_device_id *id)
194{ 194{
195 struct device *d = &pdev->dev; 195 struct device *d = &pdev->dev;
196 struct net_device *dev = NULL; 196 struct net_device *dev = NULL;
@@ -312,7 +312,7 @@ err_disable:
312 Interrupts and such are already stopped in the "ifconfig ethX down" 312 Interrupts and such are already stopped in the "ifconfig ethX down"
313 code. 313 code.
314 */ 314 */
315static void __devexit xircom_remove(struct pci_dev *pdev) 315static void xircom_remove(struct pci_dev *pdev)
316{ 316{
317 struct net_device *dev = pci_get_drvdata(pdev); 317 struct net_device *dev = pci_get_drvdata(pdev);
318 struct xircom_private *card = netdev_priv(dev); 318 struct xircom_private *card = netdev_priv(dev);
diff --git a/drivers/net/ethernet/dlink/dl2k.c b/drivers/net/ethernet/dlink/dl2k.c
index 2fb01bf18155..1d342d37915c 100644
--- a/drivers/net/ethernet/dlink/dl2k.c
+++ b/drivers/net/ethernet/dlink/dl2k.c
@@ -23,7 +23,7 @@
23#define dr16(reg) ioread16(ioaddr + (reg)) 23#define dr16(reg) ioread16(ioaddr + (reg))
24#define dr8(reg) ioread8(ioaddr + (reg)) 24#define dr8(reg) ioread8(ioaddr + (reg))
25 25
26static char version[] __devinitdata = 26static char version[] =
27 KERN_INFO DRV_NAME " " DRV_VERSION " " DRV_RELDATE "\n"; 27 KERN_INFO DRV_NAME " " DRV_VERSION " " DRV_RELDATE "\n";
28#define MAX_UNITS 8 28#define MAX_UNITS 8
29static int mtu[MAX_UNITS]; 29static int mtu[MAX_UNITS];
@@ -110,7 +110,7 @@ static const struct net_device_ops netdev_ops = {
110 .ndo_change_mtu = change_mtu, 110 .ndo_change_mtu = change_mtu,
111}; 111};
112 112
113static int __devinit 113static int
114rio_probe1 (struct pci_dev *pdev, const struct pci_device_id *ent) 114rio_probe1 (struct pci_dev *pdev, const struct pci_device_id *ent)
115{ 115{
116 struct net_device *dev; 116 struct net_device *dev;
@@ -1727,7 +1727,7 @@ rio_close (struct net_device *dev)
1727 return 0; 1727 return 0;
1728} 1728}
1729 1729
1730static void __devexit 1730static void
1731rio_remove1 (struct pci_dev *pdev) 1731rio_remove1 (struct pci_dev *pdev)
1732{ 1732{
1733 struct net_device *dev = pci_get_drvdata (pdev); 1733 struct net_device *dev = pci_get_drvdata (pdev);
@@ -1755,7 +1755,7 @@ static struct pci_driver rio_driver = {
1755 .name = "dl2k", 1755 .name = "dl2k",
1756 .id_table = rio_pci_tbl, 1756 .id_table = rio_pci_tbl,
1757 .probe = rio_probe1, 1757 .probe = rio_probe1,
1758 .remove = __devexit_p(rio_remove1), 1758 .remove = rio_remove1,
1759}; 1759};
1760 1760
1761module_pci_driver(rio_driver); 1761module_pci_driver(rio_driver);
diff --git a/drivers/net/ethernet/dlink/sundance.c b/drivers/net/ethernet/dlink/sundance.c
index bbeb4c7a85ba..28fc11b2f1ea 100644
--- a/drivers/net/ethernet/dlink/sundance.c
+++ b/drivers/net/ethernet/dlink/sundance.c
@@ -102,7 +102,7 @@ static char *media[MAX_UNITS];
102#include <linux/mii.h> 102#include <linux/mii.h>
103 103
104/* These identify the driver base version and may not be removed. */ 104/* These identify the driver base version and may not be removed. */
105static const char version[] __devinitconst = 105static const char version[] =
106 KERN_INFO DRV_NAME ".c:v" DRV_VERSION " " DRV_RELDATE 106 KERN_INFO DRV_NAME ".c:v" DRV_VERSION " " DRV_RELDATE
107 " Written by Donald Becker\n"; 107 " Written by Donald Becker\n";
108 108
@@ -218,7 +218,7 @@ enum {
218struct pci_id_info { 218struct pci_id_info {
219 const char *name; 219 const char *name;
220}; 220};
221static const struct pci_id_info pci_id_tbl[] __devinitconst = { 221static const struct pci_id_info pci_id_tbl[] = {
222 {"D-Link DFE-550TX FAST Ethernet Adapter"}, 222 {"D-Link DFE-550TX FAST Ethernet Adapter"},
223 {"D-Link DFE-550FX 100Mbps Fiber-optics Adapter"}, 223 {"D-Link DFE-550FX 100Mbps Fiber-optics Adapter"},
224 {"D-Link DFE-580TX 4 port Server Adapter"}, 224 {"D-Link DFE-580TX 4 port Server Adapter"},
@@ -482,8 +482,8 @@ static const struct net_device_ops netdev_ops = {
482 .ndo_validate_addr = eth_validate_addr, 482 .ndo_validate_addr = eth_validate_addr,
483}; 483};
484 484
485static int __devinit sundance_probe1 (struct pci_dev *pdev, 485static int sundance_probe1(struct pci_dev *pdev,
486 const struct pci_device_id *ent) 486 const struct pci_device_id *ent)
487{ 487{
488 struct net_device *dev; 488 struct net_device *dev;
489 struct netdev_private *np; 489 struct netdev_private *np;
@@ -711,7 +711,7 @@ static int change_mtu(struct net_device *dev, int new_mtu)
711 711
712#define eeprom_delay(ee_addr) ioread32(ee_addr) 712#define eeprom_delay(ee_addr) ioread32(ee_addr)
713/* Read the EEPROM and MII Management Data I/O (MDIO) interfaces. */ 713/* Read the EEPROM and MII Management Data I/O (MDIO) interfaces. */
714static int __devinit eeprom_read(void __iomem *ioaddr, int location) 714static int eeprom_read(void __iomem *ioaddr, int location)
715{ 715{
716 int boguscnt = 10000; /* Typical 1900 ticks. */ 716 int boguscnt = 10000; /* Typical 1900 ticks. */
717 iowrite16(0x0200 | (location & 0xff), ioaddr + EECtrl); 717 iowrite16(0x0200 | (location & 0xff), ioaddr + EECtrl);
@@ -1914,7 +1914,7 @@ static int netdev_close(struct net_device *dev)
1914 return 0; 1914 return 0;
1915} 1915}
1916 1916
1917static void __devexit sundance_remove1 (struct pci_dev *pdev) 1917static void sundance_remove1(struct pci_dev *pdev)
1918{ 1918{
1919 struct net_device *dev = pci_get_drvdata(pdev); 1919 struct net_device *dev = pci_get_drvdata(pdev);
1920 1920
@@ -1989,7 +1989,7 @@ static struct pci_driver sundance_driver = {
1989 .name = DRV_NAME, 1989 .name = DRV_NAME,
1990 .id_table = sundance_pci_tbl, 1990 .id_table = sundance_pci_tbl,
1991 .probe = sundance_probe1, 1991 .probe = sundance_probe1,
1992 .remove = __devexit_p(sundance_remove1), 1992 .remove = sundance_remove1,
1993#ifdef CONFIG_PM 1993#ifdef CONFIG_PM
1994 .suspend = sundance_suspend, 1994 .suspend = sundance_suspend,
1995 .resume = sundance_resume, 1995 .resume = sundance_resume,
diff --git a/drivers/net/ethernet/dnet.c b/drivers/net/ethernet/dnet.c
index feb5095d81b7..2c177b329c8b 100644
--- a/drivers/net/ethernet/dnet.c
+++ b/drivers/net/ethernet/dnet.c
@@ -72,7 +72,7 @@ static void __dnet_set_hwaddr(struct dnet *bp)
72 dnet_writew_mac(bp, DNET_INTERNAL_MAC_ADDR_2_REG, tmp); 72 dnet_writew_mac(bp, DNET_INTERNAL_MAC_ADDR_2_REG, tmp);
73} 73}
74 74
75static void __devinit dnet_get_hwaddr(struct dnet *bp) 75static void dnet_get_hwaddr(struct dnet *bp)
76{ 76{
77 u16 tmp; 77 u16 tmp;
78 u8 addr[6]; 78 u8 addr[6];
@@ -826,7 +826,7 @@ static const struct net_device_ops dnet_netdev_ops = {
826 .ndo_change_mtu = eth_change_mtu, 826 .ndo_change_mtu = eth_change_mtu,
827}; 827};
828 828
829static int __devinit dnet_probe(struct platform_device *pdev) 829static int dnet_probe(struct platform_device *pdev)
830{ 830{
831 struct resource *res; 831 struct resource *res;
832 struct net_device *dev; 832 struct net_device *dev;
@@ -942,7 +942,7 @@ err_out:
942 return err; 942 return err;
943} 943}
944 944
945static int __devexit dnet_remove(struct platform_device *pdev) 945static int dnet_remove(struct platform_device *pdev)
946{ 946{
947 947
948 struct net_device *dev; 948 struct net_device *dev;
@@ -968,7 +968,7 @@ static int __devexit dnet_remove(struct platform_device *pdev)
968 968
969static struct platform_driver dnet_driver = { 969static struct platform_driver dnet_driver = {
970 .probe = dnet_probe, 970 .probe = dnet_probe,
971 .remove = __devexit_p(dnet_remove), 971 .remove = dnet_remove,
972 .driver = { 972 .driver = {
973 .name = "dnet", 973 .name = "dnet",
974 }, 974 },
diff --git a/drivers/net/ethernet/emulex/benet/be_main.c b/drivers/net/ethernet/emulex/benet/be_main.c
index 0661e9379583..b003abc24227 100644
--- a/drivers/net/ethernet/emulex/benet/be_main.c
+++ b/drivers/net/ethernet/emulex/benet/be_main.c
@@ -3761,7 +3761,7 @@ static int be_stats_init(struct be_adapter *adapter)
3761 return 0; 3761 return 0;
3762} 3762}
3763 3763
3764static void __devexit be_remove(struct pci_dev *pdev) 3764static void be_remove(struct pci_dev *pdev)
3765{ 3765{
3766 struct be_adapter *adapter = pci_get_drvdata(pdev); 3766 struct be_adapter *adapter = pci_get_drvdata(pdev);
3767 3767
@@ -3994,7 +3994,7 @@ static inline char *func_name(struct be_adapter *adapter)
3994 return be_physfn(adapter) ? "PF" : "VF"; 3994 return be_physfn(adapter) ? "PF" : "VF";
3995} 3995}
3996 3996
3997static int __devinit be_probe(struct pci_dev *pdev, 3997static int be_probe(struct pci_dev *pdev,
3998 const struct pci_device_id *pdev_id) 3998 const struct pci_device_id *pdev_id)
3999{ 3999{
4000 int status = 0; 4000 int status = 0;
diff --git a/drivers/net/ethernet/ethoc.c b/drivers/net/ethernet/ethoc.c
index 94b7bfcdb24e..8db1c06008de 100644
--- a/drivers/net/ethernet/ethoc.c
+++ b/drivers/net/ethernet/ethoc.c
@@ -665,7 +665,7 @@ static void ethoc_mdio_poll(struct net_device *dev)
665{ 665{
666} 666}
667 667
668static int __devinit ethoc_mdio_probe(struct net_device *dev) 668static int ethoc_mdio_probe(struct net_device *dev)
669{ 669{
670 struct ethoc *priv = netdev_priv(dev); 670 struct ethoc *priv = netdev_priv(dev);
671 struct phy_device *phy; 671 struct phy_device *phy;
@@ -905,7 +905,7 @@ static const struct net_device_ops ethoc_netdev_ops = {
905 * ethoc_probe - initialize OpenCores ethernet MAC 905 * ethoc_probe - initialize OpenCores ethernet MAC
906 * pdev: platform device 906 * pdev: platform device
907 */ 907 */
908static int __devinit ethoc_probe(struct platform_device *pdev) 908static int ethoc_probe(struct platform_device *pdev)
909{ 909{
910 struct net_device *netdev = NULL; 910 struct net_device *netdev = NULL;
911 struct resource *res = NULL; 911 struct resource *res = NULL;
@@ -1143,7 +1143,7 @@ out:
1143 * ethoc_remove - shutdown OpenCores ethernet MAC 1143 * ethoc_remove - shutdown OpenCores ethernet MAC
1144 * @pdev: platform device 1144 * @pdev: platform device
1145 */ 1145 */
1146static int __devexit ethoc_remove(struct platform_device *pdev) 1146static int ethoc_remove(struct platform_device *pdev)
1147{ 1147{
1148 struct net_device *netdev = platform_get_drvdata(pdev); 1148 struct net_device *netdev = platform_get_drvdata(pdev);
1149 struct ethoc *priv = netdev_priv(netdev); 1149 struct ethoc *priv = netdev_priv(netdev);
@@ -1190,7 +1190,7 @@ MODULE_DEVICE_TABLE(of, ethoc_match);
1190 1190
1191static struct platform_driver ethoc_driver = { 1191static struct platform_driver ethoc_driver = {
1192 .probe = ethoc_probe, 1192 .probe = ethoc_probe,
1193 .remove = __devexit_p(ethoc_remove), 1193 .remove = ethoc_remove,
1194 .suspend = ethoc_suspend, 1194 .suspend = ethoc_suspend,
1195 .resume = ethoc_resume, 1195 .resume = ethoc_resume,
1196 .driver = { 1196 .driver = {
diff --git a/drivers/net/ethernet/fealnx.c b/drivers/net/ethernet/fealnx.c
index 0e4a0ac86aa8..519c2895e8f7 100644
--- a/drivers/net/ethernet/fealnx.c
+++ b/drivers/net/ethernet/fealnx.c
@@ -92,7 +92,7 @@ static int full_duplex[MAX_UNITS] = { -1, -1, -1, -1, -1, -1, -1, -1 };
92#include <asm/byteorder.h> 92#include <asm/byteorder.h>
93 93
94/* These identify the driver base version and may not be removed. */ 94/* These identify the driver base version and may not be removed. */
95static const char version[] __devinitconst = 95static const char version[] =
96 KERN_INFO DRV_NAME ".c:v" DRV_VERSION " " DRV_RELDATE "\n"; 96 KERN_INFO DRV_NAME ".c:v" DRV_VERSION " " DRV_RELDATE "\n";
97 97
98 98
@@ -150,7 +150,7 @@ struct chip_info {
150 int flags; 150 int flags;
151}; 151};
152 152
153static const struct chip_info skel_netdrv_tbl[] __devinitconst = { 153static const struct chip_info skel_netdrv_tbl[] = {
154 { "100/10M Ethernet PCI Adapter", HAS_MII_XCVR }, 154 { "100/10M Ethernet PCI Adapter", HAS_MII_XCVR },
155 { "100/10M Ethernet PCI Adapter", HAS_CHIP_XCVR }, 155 { "100/10M Ethernet PCI Adapter", HAS_CHIP_XCVR },
156 { "1000/100/10M Ethernet PCI Adapter", HAS_MII_XCVR }, 156 { "1000/100/10M Ethernet PCI Adapter", HAS_MII_XCVR },
@@ -477,7 +477,7 @@ static const struct net_device_ops netdev_ops = {
477 .ndo_validate_addr = eth_validate_addr, 477 .ndo_validate_addr = eth_validate_addr,
478}; 478};
479 479
480static int __devinit fealnx_init_one(struct pci_dev *pdev, 480static int fealnx_init_one(struct pci_dev *pdev,
481 const struct pci_device_id *ent) 481 const struct pci_device_id *ent)
482{ 482{
483 struct netdev_private *np; 483 struct netdev_private *np;
@@ -684,7 +684,7 @@ err_out_res:
684} 684}
685 685
686 686
687static void __devexit fealnx_remove_one(struct pci_dev *pdev) 687static void fealnx_remove_one(struct pci_dev *pdev)
688{ 688{
689 struct net_device *dev = pci_get_drvdata(pdev); 689 struct net_device *dev = pci_get_drvdata(pdev);
690 690
@@ -1950,7 +1950,7 @@ static struct pci_driver fealnx_driver = {
1950 .name = "fealnx", 1950 .name = "fealnx",
1951 .id_table = fealnx_pci_tbl, 1951 .id_table = fealnx_pci_tbl,
1952 .probe = fealnx_init_one, 1952 .probe = fealnx_init_one,
1953 .remove = __devexit_p(fealnx_remove_one), 1953 .remove = fealnx_remove_one,
1954}; 1954};
1955 1955
1956static int __init fealnx_init(void) 1956static int __init fealnx_init(void)
diff --git a/drivers/net/ethernet/freescale/fec.c b/drivers/net/ethernet/freescale/fec.c
index 2665162ff4e5..0704bcab178a 100644
--- a/drivers/net/ethernet/freescale/fec.c
+++ b/drivers/net/ethernet/freescale/fec.c
@@ -1484,7 +1484,7 @@ static int fec_enet_init(struct net_device *ndev)
1484} 1484}
1485 1485
1486#ifdef CONFIG_OF 1486#ifdef CONFIG_OF
1487static int __devinit fec_get_phy_mode_dt(struct platform_device *pdev) 1487static int fec_get_phy_mode_dt(struct platform_device *pdev)
1488{ 1488{
1489 struct device_node *np = pdev->dev.of_node; 1489 struct device_node *np = pdev->dev.of_node;
1490 1490
@@ -1494,7 +1494,7 @@ static int __devinit fec_get_phy_mode_dt(struct platform_device *pdev)
1494 return -ENODEV; 1494 return -ENODEV;
1495} 1495}
1496 1496
1497static void __devinit fec_reset_phy(struct platform_device *pdev) 1497static void fec_reset_phy(struct platform_device *pdev)
1498{ 1498{
1499 int err, phy_reset; 1499 int err, phy_reset;
1500 int msec = 1; 1500 int msec = 1;
@@ -1533,7 +1533,7 @@ static inline void fec_reset_phy(struct platform_device *pdev)
1533} 1533}
1534#endif /* CONFIG_OF */ 1534#endif /* CONFIG_OF */
1535 1535
1536static int __devinit 1536static int
1537fec_probe(struct platform_device *pdev) 1537fec_probe(struct platform_device *pdev)
1538{ 1538{
1539 struct fec_enet_private *fep; 1539 struct fec_enet_private *fep;
@@ -1701,7 +1701,7 @@ failed_alloc_etherdev:
1701 return ret; 1701 return ret;
1702} 1702}
1703 1703
1704static int __devexit 1704static int
1705fec_drv_remove(struct platform_device *pdev) 1705fec_drv_remove(struct platform_device *pdev)
1706{ 1706{
1707 struct net_device *ndev = platform_get_drvdata(pdev); 1707 struct net_device *ndev = platform_get_drvdata(pdev);
@@ -1790,7 +1790,7 @@ static struct platform_driver fec_driver = {
1790 }, 1790 },
1791 .id_table = fec_devtype, 1791 .id_table = fec_devtype,
1792 .probe = fec_probe, 1792 .probe = fec_probe,
1793 .remove = __devexit_p(fec_drv_remove), 1793 .remove = fec_drv_remove,
1794}; 1794};
1795 1795
1796module_platform_driver(fec_driver); 1796module_platform_driver(fec_driver);
diff --git a/drivers/net/ethernet/freescale/fec_mpc52xx.c b/drivers/net/ethernet/freescale/fec_mpc52xx.c
index 2933d08b036e..817d081d2cd8 100644
--- a/drivers/net/ethernet/freescale/fec_mpc52xx.c
+++ b/drivers/net/ethernet/freescale/fec_mpc52xx.c
@@ -845,7 +845,7 @@ static const struct net_device_ops mpc52xx_fec_netdev_ops = {
845/* OF Driver */ 845/* OF Driver */
846/* ======================================================================== */ 846/* ======================================================================== */
847 847
848static int __devinit mpc52xx_fec_probe(struct platform_device *op) 848static int mpc52xx_fec_probe(struct platform_device *op)
849{ 849{
850 int rv; 850 int rv;
851 struct net_device *ndev; 851 struct net_device *ndev;
diff --git a/drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c b/drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c
index 2b7633f766d9..e9879c5af7ba 100644
--- a/drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c
+++ b/drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c
@@ -1004,7 +1004,7 @@ static const struct net_device_ops fs_enet_netdev_ops = {
1004}; 1004};
1005 1005
1006static struct of_device_id fs_enet_match[]; 1006static struct of_device_id fs_enet_match[];
1007static int __devinit fs_enet_probe(struct platform_device *ofdev) 1007static int fs_enet_probe(struct platform_device *ofdev)
1008{ 1008{
1009 const struct of_device_id *match; 1009 const struct of_device_id *match;
1010 struct net_device *ndev; 1010 struct net_device *ndev;
diff --git a/drivers/net/ethernet/freescale/fs_enet/mii-bitbang.c b/drivers/net/ethernet/freescale/fs_enet/mii-bitbang.c
index 151453309401..3f35b6a983e9 100644
--- a/drivers/net/ethernet/freescale/fs_enet/mii-bitbang.c
+++ b/drivers/net/ethernet/freescale/fs_enet/mii-bitbang.c
@@ -108,7 +108,7 @@ static struct mdiobb_ops bb_ops = {
108 .get_mdio_data = mdio_read, 108 .get_mdio_data = mdio_read,
109}; 109};
110 110
111static int __devinit fs_mii_bitbang_init(struct mii_bus *bus, 111static int fs_mii_bitbang_init(struct mii_bus *bus,
112 struct device_node *np) 112 struct device_node *np)
113{ 113{
114 struct resource res; 114 struct resource res;
@@ -150,7 +150,7 @@ static int __devinit fs_mii_bitbang_init(struct mii_bus *bus,
150 return 0; 150 return 0;
151} 151}
152 152
153static int __devinit fs_enet_mdio_probe(struct platform_device *ofdev) 153static int fs_enet_mdio_probe(struct platform_device *ofdev)
154{ 154{
155 struct mii_bus *new_bus; 155 struct mii_bus *new_bus;
156 struct bb_info *bitbang; 156 struct bb_info *bitbang;
diff --git a/drivers/net/ethernet/freescale/fs_enet/mii-fec.c b/drivers/net/ethernet/freescale/fs_enet/mii-fec.c
index cdf702a59485..18e8ef203736 100644
--- a/drivers/net/ethernet/freescale/fs_enet/mii-fec.c
+++ b/drivers/net/ethernet/freescale/fs_enet/mii-fec.c
@@ -102,7 +102,7 @@ static int fs_enet_fec_mii_reset(struct mii_bus *bus)
102} 102}
103 103
104static struct of_device_id fs_enet_mdio_fec_match[]; 104static struct of_device_id fs_enet_mdio_fec_match[];
105static int __devinit fs_enet_mdio_probe(struct platform_device *ofdev) 105static int fs_enet_mdio_probe(struct platform_device *ofdev)
106{ 106{
107 const struct of_device_id *match; 107 const struct of_device_id *match;
108 struct resource res; 108 struct resource res;
diff --git a/drivers/net/ethernet/freescale/xgmac_mdio.c b/drivers/net/ethernet/freescale/xgmac_mdio.c
index 1afb5ea2a984..418068b941b1 100644
--- a/drivers/net/ethernet/freescale/xgmac_mdio.c
+++ b/drivers/net/ethernet/freescale/xgmac_mdio.c
@@ -189,7 +189,7 @@ static int xgmac_mdio_reset(struct mii_bus *bus)
189 return ret; 189 return ret;
190} 190}
191 191
192static int __devinit xgmac_mdio_probe(struct platform_device *pdev) 192static int xgmac_mdio_probe(struct platform_device *pdev)
193{ 193{
194 struct device_node *np = pdev->dev.of_node; 194 struct device_node *np = pdev->dev.of_node;
195 struct mii_bus *bus; 195 struct mii_bus *bus;
@@ -240,7 +240,7 @@ err_ioremap:
240 return ret; 240 return ret;
241} 241}
242 242
243static int __devexit xgmac_mdio_remove(struct platform_device *pdev) 243static int xgmac_mdio_remove(struct platform_device *pdev)
244{ 244{
245 struct mii_bus *bus = dev_get_drvdata(&pdev->dev); 245 struct mii_bus *bus = dev_get_drvdata(&pdev->dev);
246 246
diff --git a/drivers/net/ethernet/hp/hp100.c b/drivers/net/ethernet/hp/hp100.c
index 3f4391bede81..598e576ddf51 100644
--- a/drivers/net/ethernet/hp/hp100.c
+++ b/drivers/net/ethernet/hp/hp100.c
@@ -308,7 +308,7 @@ static void wait(void)
308 * Read board id and convert to string. 308 * Read board id and convert to string.
309 * Effectively same code as decode_eisa_sig 309 * Effectively same code as decode_eisa_sig
310 */ 310 */
311static __devinit const char *hp100_read_id(int ioaddr) 311static const char *hp100_read_id(int ioaddr)
312{ 312{
313 int i; 313 int i;
314 static char str[HP100_SIG_LEN]; 314 static char str[HP100_SIG_LEN];
@@ -447,7 +447,7 @@ static const struct net_device_ops hp100_netdev_ops = {
447 .ndo_validate_addr = eth_validate_addr, 447 .ndo_validate_addr = eth_validate_addr,
448}; 448};
449 449
450static int __devinit hp100_probe1(struct net_device *dev, int ioaddr, 450static int hp100_probe1(struct net_device *dev, int ioaddr,
451 u_char bus, struct pci_dev *pci_dev) 451 u_char bus, struct pci_dev *pci_dev)
452{ 452{
453 int i; 453 int i;
@@ -2866,7 +2866,7 @@ static int __init hp100_eisa_probe (struct device *gendev)
2866 return err; 2866 return err;
2867} 2867}
2868 2868
2869static int __devexit hp100_eisa_remove (struct device *gendev) 2869static int hp100_eisa_remove(struct device *gendev)
2870{ 2870{
2871 struct net_device *dev = dev_get_drvdata(gendev); 2871 struct net_device *dev = dev_get_drvdata(gendev);
2872 cleanup_dev(dev); 2872 cleanup_dev(dev);
@@ -2878,14 +2878,14 @@ static struct eisa_driver hp100_eisa_driver = {
2878 .driver = { 2878 .driver = {
2879 .name = "hp100", 2879 .name = "hp100",
2880 .probe = hp100_eisa_probe, 2880 .probe = hp100_eisa_probe,
2881 .remove = __devexit_p (hp100_eisa_remove), 2881 .remove = hp100_eisa_remove,
2882 } 2882 }
2883}; 2883};
2884#endif 2884#endif
2885 2885
2886#ifdef CONFIG_PCI 2886#ifdef CONFIG_PCI
2887static int __devinit hp100_pci_probe (struct pci_dev *pdev, 2887static int hp100_pci_probe(struct pci_dev *pdev,
2888 const struct pci_device_id *ent) 2888 const struct pci_device_id *ent)
2889{ 2889{
2890 struct net_device *dev; 2890 struct net_device *dev;
2891 int ioaddr; 2891 int ioaddr;
@@ -2937,7 +2937,7 @@ static int __devinit hp100_pci_probe (struct pci_dev *pdev,
2937 return err; 2937 return err;
2938} 2938}
2939 2939
2940static void __devexit hp100_pci_remove (struct pci_dev *pdev) 2940static void hp100_pci_remove(struct pci_dev *pdev)
2941{ 2941{
2942 struct net_device *dev = pci_get_drvdata(pdev); 2942 struct net_device *dev = pci_get_drvdata(pdev);
2943 2943
@@ -2950,7 +2950,7 @@ static struct pci_driver hp100_pci_driver = {
2950 .name = "hp100", 2950 .name = "hp100",
2951 .id_table = hp100_pci_tbl, 2951 .id_table = hp100_pci_tbl,
2952 .probe = hp100_pci_probe, 2952 .probe = hp100_pci_probe,
2953 .remove = __devexit_p(hp100_pci_remove), 2953 .remove = hp100_pci_remove,
2954}; 2954};
2955#endif 2955#endif
2956 2956
diff --git a/drivers/net/ethernet/i825xx/ether1.c b/drivers/net/ethernet/i825xx/ether1.c
index 7b9609da6fe4..5d353c660068 100644
--- a/drivers/net/ethernet/i825xx/ether1.c
+++ b/drivers/net/ethernet/i825xx/ether1.c
@@ -72,7 +72,7 @@ static void ether1_timeout(struct net_device *dev);
72 72
73/* ------------------------------------------------------------------------- */ 73/* ------------------------------------------------------------------------- */
74 74
75static char version[] __devinitdata = "ether1 ethernet driver (c) 2000 Russell King v1.07\n"; 75static char version[] = "ether1 ethernet driver (c) 2000 Russell King v1.07\n";
76 76
77#define BUS_16 16 77#define BUS_16 16
78#define BUS_8 8 78#define BUS_8 8
@@ -250,7 +250,7 @@ ether1_readbuffer (struct net_device *dev, void *data, unsigned int start, unsig
250 } while (thislen); 250 } while (thislen);
251} 251}
252 252
253static int __devinit 253static int
254ether1_ramtest(struct net_device *dev, unsigned char byte) 254ether1_ramtest(struct net_device *dev, unsigned char byte)
255{ 255{
256 unsigned char *buffer = kmalloc (BUFFER_SIZE, GFP_KERNEL); 256 unsigned char *buffer = kmalloc (BUFFER_SIZE, GFP_KERNEL);
@@ -304,7 +304,7 @@ ether1_reset (struct net_device *dev)
304 return BUS_16; 304 return BUS_16;
305} 305}
306 306
307static int __devinit 307static int
308ether1_init_2(struct net_device *dev) 308ether1_init_2(struct net_device *dev)
309{ 309{
310 int i; 310 int i;
@@ -966,7 +966,7 @@ ether1_setmulticastlist (struct net_device *dev)
966 966
967/* ------------------------------------------------------------------------- */ 967/* ------------------------------------------------------------------------- */
968 968
969static void __devinit ether1_banner(void) 969static void ether1_banner(void)
970{ 970{
971 static unsigned int version_printed = 0; 971 static unsigned int version_printed = 0;
972 972
@@ -985,7 +985,7 @@ static const struct net_device_ops ether1_netdev_ops = {
985 .ndo_set_mac_address = eth_mac_addr, 985 .ndo_set_mac_address = eth_mac_addr,
986}; 986};
987 987
988static int __devinit 988static int
989ether1_probe(struct expansion_card *ec, const struct ecard_id *id) 989ether1_probe(struct expansion_card *ec, const struct ecard_id *id)
990{ 990{
991 struct net_device *dev; 991 struct net_device *dev;
@@ -1046,7 +1046,7 @@ ether1_probe(struct expansion_card *ec, const struct ecard_id *id)
1046 return ret; 1046 return ret;
1047} 1047}
1048 1048
1049static void __devexit ether1_remove(struct expansion_card *ec) 1049static void ether1_remove(struct expansion_card *ec)
1050{ 1050{
1051 struct net_device *dev = ecard_get_drvdata(ec); 1051 struct net_device *dev = ecard_get_drvdata(ec);
1052 1052
@@ -1064,7 +1064,7 @@ static const struct ecard_id ether1_ids[] = {
1064 1064
1065static struct ecard_driver ether1_driver = { 1065static struct ecard_driver ether1_driver = {
1066 .probe = ether1_probe, 1066 .probe = ether1_probe,
1067 .remove = __devexit_p(ether1_remove), 1067 .remove = ether1_remove,
1068 .id_table = ether1_ids, 1068 .id_table = ether1_ids,
1069 .drv = { 1069 .drv = {
1070 .name = "ether1", 1070 .name = "ether1",
diff --git a/drivers/net/ethernet/i825xx/lasi_82596.c b/drivers/net/ethernet/i825xx/lasi_82596.c
index 6eba352c52e0..f42f1b707733 100644
--- a/drivers/net/ethernet/i825xx/lasi_82596.c
+++ b/drivers/net/ethernet/i825xx/lasi_82596.c
@@ -150,7 +150,7 @@ static void mpu_port(struct net_device *dev, int c, dma_addr_t x)
150 150
151#define LAN_PROM_ADDR 0xF0810000 151#define LAN_PROM_ADDR 0xF0810000
152 152
153static int __devinit 153static int
154lan_init_chip(struct parisc_device *dev) 154lan_init_chip(struct parisc_device *dev)
155{ 155{
156 struct net_device *netdevice; 156 struct net_device *netdevice;
@@ -195,7 +195,7 @@ lan_init_chip(struct parisc_device *dev)
195 return retval; 195 return retval;
196} 196}
197 197
198static int __devexit lan_remove_chip (struct parisc_device *pdev) 198static int lan_remove_chip(struct parisc_device *pdev)
199{ 199{
200 struct net_device *dev = parisc_get_drvdata(pdev); 200 struct net_device *dev = parisc_get_drvdata(pdev);
201 struct i596_private *lp = netdev_priv(dev); 201 struct i596_private *lp = netdev_priv(dev);
@@ -219,10 +219,10 @@ static struct parisc_driver lan_driver = {
219 .name = "lasi_82596", 219 .name = "lasi_82596",
220 .id_table = lan_tbl, 220 .id_table = lan_tbl,
221 .probe = lan_init_chip, 221 .probe = lan_init_chip,
222 .remove = __devexit_p(lan_remove_chip), 222 .remove = lan_remove_chip,
223}; 223};
224 224
225static int __devinit lasi_82596_init(void) 225static int lasi_82596_init(void)
226{ 226{
227 printk(KERN_INFO LASI_82596_DRIVER_VERSION "\n"); 227 printk(KERN_INFO LASI_82596_DRIVER_VERSION "\n");
228 return register_parisc_driver(&lan_driver); 228 return register_parisc_driver(&lan_driver);
diff --git a/drivers/net/ethernet/i825xx/lib82596.c b/drivers/net/ethernet/i825xx/lib82596.c
index 3efbd8dbb63d..f045ea4dc514 100644
--- a/drivers/net/ethernet/i825xx/lib82596.c
+++ b/drivers/net/ethernet/i825xx/lib82596.c
@@ -1048,7 +1048,7 @@ static const struct net_device_ops i596_netdev_ops = {
1048#endif 1048#endif
1049}; 1049};
1050 1050
1051static int __devinit i82596_probe(struct net_device *dev) 1051static int i82596_probe(struct net_device *dev)
1052{ 1052{
1053 int i; 1053 int i;
1054 struct i596_private *lp = netdev_priv(dev); 1054 struct i596_private *lp = netdev_priv(dev);
diff --git a/drivers/net/ethernet/i825xx/sni_82596.c b/drivers/net/ethernet/i825xx/sni_82596.c
index 6b2a88817473..4ceae9a30274 100644
--- a/drivers/net/ethernet/i825xx/sni_82596.c
+++ b/drivers/net/ethernet/i825xx/sni_82596.c
@@ -75,7 +75,7 @@ static void mpu_port(struct net_device *dev, int c, dma_addr_t x)
75} 75}
76 76
77 77
78static int __devinit sni_82596_probe(struct platform_device *dev) 78static int sni_82596_probe(struct platform_device *dev)
79{ 79{
80 struct net_device *netdevice; 80 struct net_device *netdevice;
81 struct i596_private *lp; 81 struct i596_private *lp;
@@ -147,7 +147,7 @@ probe_failed_free_mpu:
147 return retval; 147 return retval;
148} 148}
149 149
150static int __devexit sni_82596_driver_remove(struct platform_device *pdev) 150static int sni_82596_driver_remove(struct platform_device *pdev)
151{ 151{
152 struct net_device *dev = platform_get_drvdata(pdev); 152 struct net_device *dev = platform_get_drvdata(pdev);
153 struct i596_private *lp = netdev_priv(dev); 153 struct i596_private *lp = netdev_priv(dev);
@@ -163,14 +163,14 @@ static int __devexit sni_82596_driver_remove(struct platform_device *pdev)
163 163
164static struct platform_driver sni_82596_driver = { 164static struct platform_driver sni_82596_driver = {
165 .probe = sni_82596_probe, 165 .probe = sni_82596_probe,
166 .remove = __devexit_p(sni_82596_driver_remove), 166 .remove = sni_82596_driver_remove,
167 .driver = { 167 .driver = {
168 .name = sni_82596_string, 168 .name = sni_82596_string,
169 .owner = THIS_MODULE, 169 .owner = THIS_MODULE,
170 }, 170 },
171}; 171};
172 172
173static int __devinit sni_82596_init(void) 173static int sni_82596_init(void)
174{ 174{
175 printk(KERN_INFO SNI_82596_DRIVER_VERSION "\n"); 175 printk(KERN_INFO SNI_82596_DRIVER_VERSION "\n");
176 return platform_driver_register(&sni_82596_driver); 176 return platform_driver_register(&sni_82596_driver);
diff --git a/drivers/net/ethernet/ibm/ehea/ehea_main.c b/drivers/net/ethernet/ibm/ehea/ehea_main.c
index 09faf333e941..e238130574ca 100644
--- a/drivers/net/ethernet/ibm/ehea/ehea_main.c
+++ b/drivers/net/ethernet/ibm/ehea/ehea_main.c
@@ -98,10 +98,10 @@ static struct ehea_fw_handle_array ehea_fw_handles;
98static struct ehea_bcmc_reg_array ehea_bcmc_regs; 98static struct ehea_bcmc_reg_array ehea_bcmc_regs;
99 99
100 100
101static int __devinit ehea_probe_adapter(struct platform_device *dev, 101static int ehea_probe_adapter(struct platform_device *dev,
102 const struct of_device_id *id); 102 const struct of_device_id *id);
103 103
104static int __devexit ehea_remove(struct platform_device *dev); 104static int ehea_remove(struct platform_device *dev);
105 105
106static struct of_device_id ehea_device_table[] = { 106static struct of_device_id ehea_device_table[] = {
107 { 107 {
@@ -2909,7 +2909,7 @@ static ssize_t ehea_show_port_id(struct device *dev,
2909static DEVICE_ATTR(log_port_id, S_IRUSR | S_IRGRP | S_IROTH, ehea_show_port_id, 2909static DEVICE_ATTR(log_port_id, S_IRUSR | S_IRGRP | S_IROTH, ehea_show_port_id,
2910 NULL); 2910 NULL);
2911 2911
2912static void __devinit logical_port_release(struct device *dev) 2912static void logical_port_release(struct device *dev)
2913{ 2913{
2914 struct ehea_port *port = container_of(dev, struct ehea_port, ofdev.dev); 2914 struct ehea_port *port = container_of(dev, struct ehea_port, ofdev.dev);
2915 of_node_put(port->ofdev.dev.of_node); 2915 of_node_put(port->ofdev.dev.of_node);
@@ -3257,7 +3257,7 @@ static void ehea_remove_device_sysfs(struct platform_device *dev)
3257 device_remove_file(&dev->dev, &dev_attr_remove_port); 3257 device_remove_file(&dev->dev, &dev_attr_remove_port);
3258} 3258}
3259 3259
3260static int __devinit ehea_probe_adapter(struct platform_device *dev, 3260static int ehea_probe_adapter(struct platform_device *dev,
3261 const struct of_device_id *id) 3261 const struct of_device_id *id)
3262{ 3262{
3263 struct ehea_adapter *adapter; 3263 struct ehea_adapter *adapter;
@@ -3364,7 +3364,7 @@ out:
3364 return ret; 3364 return ret;
3365} 3365}
3366 3366
3367static int __devexit ehea_remove(struct platform_device *dev) 3367static int ehea_remove(struct platform_device *dev)
3368{ 3368{
3369 struct ehea_adapter *adapter = dev_get_drvdata(&dev->dev); 3369 struct ehea_adapter *adapter = dev_get_drvdata(&dev->dev);
3370 int i; 3370 int i;
diff --git a/drivers/net/ethernet/ibm/emac/core.c b/drivers/net/ethernet/ibm/emac/core.c
index a0fe6e3fce61..c791ad3907b2 100644
--- a/drivers/net/ethernet/ibm/emac/core.c
+++ b/drivers/net/ethernet/ibm/emac/core.c
@@ -2261,7 +2261,7 @@ struct emac_depentry {
2261#define EMAC_DEP_PREV_IDX 5 2261#define EMAC_DEP_PREV_IDX 5
2262#define EMAC_DEP_COUNT 6 2262#define EMAC_DEP_COUNT 6
2263 2263
2264static int __devinit emac_check_deps(struct emac_instance *dev, 2264static int emac_check_deps(struct emac_instance *dev,
2265 struct emac_depentry *deps) 2265 struct emac_depentry *deps)
2266{ 2266{
2267 int i, there = 0; 2267 int i, there = 0;
@@ -2314,7 +2314,7 @@ static void emac_put_deps(struct emac_instance *dev)
2314 of_dev_put(dev->tah_dev); 2314 of_dev_put(dev->tah_dev);
2315} 2315}
2316 2316
2317static int __devinit emac_of_bus_notify(struct notifier_block *nb, 2317static int emac_of_bus_notify(struct notifier_block *nb,
2318 unsigned long action, void *data) 2318 unsigned long action, void *data)
2319{ 2319{
2320 /* We are only intereted in device addition */ 2320 /* We are only intereted in device addition */
@@ -2323,11 +2323,11 @@ static int __devinit emac_of_bus_notify(struct notifier_block *nb,
2323 return 0; 2323 return 0;
2324} 2324}
2325 2325
2326static struct notifier_block emac_of_bus_notifier __devinitdata = { 2326static struct notifier_block emac_of_bus_notifier = {
2327 .notifier_call = emac_of_bus_notify 2327 .notifier_call = emac_of_bus_notify
2328}; 2328};
2329 2329
2330static int __devinit emac_wait_deps(struct emac_instance *dev) 2330static int emac_wait_deps(struct emac_instance *dev)
2331{ 2331{
2332 struct emac_depentry deps[EMAC_DEP_COUNT]; 2332 struct emac_depentry deps[EMAC_DEP_COUNT];
2333 int i, err; 2333 int i, err;
@@ -2367,7 +2367,7 @@ static int __devinit emac_wait_deps(struct emac_instance *dev)
2367 return err; 2367 return err;
2368} 2368}
2369 2369
2370static int __devinit emac_read_uint_prop(struct device_node *np, const char *name, 2370static int emac_read_uint_prop(struct device_node *np, const char *name,
2371 u32 *val, int fatal) 2371 u32 *val, int fatal)
2372{ 2372{
2373 int len; 2373 int len;
@@ -2382,7 +2382,7 @@ static int __devinit emac_read_uint_prop(struct device_node *np, const char *nam
2382 return 0; 2382 return 0;
2383} 2383}
2384 2384
2385static int __devinit emac_init_phy(struct emac_instance *dev) 2385static int emac_init_phy(struct emac_instance *dev)
2386{ 2386{
2387 struct device_node *np = dev->ofdev->dev.of_node; 2387 struct device_node *np = dev->ofdev->dev.of_node;
2388 struct net_device *ndev = dev->ndev; 2388 struct net_device *ndev = dev->ndev;
@@ -2518,7 +2518,7 @@ static int __devinit emac_init_phy(struct emac_instance *dev)
2518 return 0; 2518 return 0;
2519} 2519}
2520 2520
2521static int __devinit emac_init_config(struct emac_instance *dev) 2521static int emac_init_config(struct emac_instance *dev)
2522{ 2522{
2523 struct device_node *np = dev->ofdev->dev.of_node; 2523 struct device_node *np = dev->ofdev->dev.of_node;
2524 const void *p; 2524 const void *p;
@@ -2703,7 +2703,7 @@ static const struct net_device_ops emac_gige_netdev_ops = {
2703 .ndo_change_mtu = emac_change_mtu, 2703 .ndo_change_mtu = emac_change_mtu,
2704}; 2704};
2705 2705
2706static int __devinit emac_probe(struct platform_device *ofdev) 2706static int emac_probe(struct platform_device *ofdev)
2707{ 2707{
2708 struct net_device *ndev; 2708 struct net_device *ndev;
2709 struct emac_instance *dev; 2709 struct emac_instance *dev;
@@ -2930,7 +2930,7 @@ static int __devinit emac_probe(struct platform_device *ofdev)
2930 return err; 2930 return err;
2931} 2931}
2932 2932
2933static int __devexit emac_remove(struct platform_device *ofdev) 2933static int emac_remove(struct platform_device *ofdev)
2934{ 2934{
2935 struct emac_instance *dev = dev_get_drvdata(&ofdev->dev); 2935 struct emac_instance *dev = dev_get_drvdata(&ofdev->dev);
2936 2936
diff --git a/drivers/net/ethernet/ibm/emac/mal.c b/drivers/net/ethernet/ibm/emac/mal.c
index 84c6b6cf9c14..8becaaf6eb5c 100644
--- a/drivers/net/ethernet/ibm/emac/mal.c
+++ b/drivers/net/ethernet/ibm/emac/mal.c
@@ -33,7 +33,7 @@
33 33
34static int mal_count; 34static int mal_count;
35 35
36int __devinit mal_register_commac(struct mal_instance *mal, 36int mal_register_commac(struct mal_instance *mal,
37 struct mal_commac *commac) 37 struct mal_commac *commac)
38{ 38{
39 unsigned long flags; 39 unsigned long flags;
@@ -517,7 +517,7 @@ void *mal_dump_regs(struct mal_instance *mal, void *buf)
517 return regs + 1; 517 return regs + 1;
518} 518}
519 519
520static int __devinit mal_probe(struct platform_device *ofdev) 520static int mal_probe(struct platform_device *ofdev)
521{ 521{
522 struct mal_instance *mal; 522 struct mal_instance *mal;
523 int err = 0, i, bd_size; 523 int err = 0, i, bd_size;
@@ -729,7 +729,7 @@ static int __devinit mal_probe(struct platform_device *ofdev)
729 return err; 729 return err;
730} 730}
731 731
732static int __devexit mal_remove(struct platform_device *ofdev) 732static int mal_remove(struct platform_device *ofdev)
733{ 733{
734 struct mal_instance *mal = dev_get_drvdata(&ofdev->dev); 734 struct mal_instance *mal = dev_get_drvdata(&ofdev->dev);
735 735
diff --git a/drivers/net/ethernet/ibm/emac/rgmii.c b/drivers/net/ethernet/ibm/emac/rgmii.c
index d3123282e18e..39251765b55d 100644
--- a/drivers/net/ethernet/ibm/emac/rgmii.c
+++ b/drivers/net/ethernet/ibm/emac/rgmii.c
@@ -93,7 +93,7 @@ static inline u32 rgmii_mode_mask(int mode, int input)
93 } 93 }
94} 94}
95 95
96int __devinit rgmii_attach(struct platform_device *ofdev, int input, int mode) 96int rgmii_attach(struct platform_device *ofdev, int input, int mode)
97{ 97{
98 struct rgmii_instance *dev = dev_get_drvdata(&ofdev->dev); 98 struct rgmii_instance *dev = dev_get_drvdata(&ofdev->dev);
99 struct rgmii_regs __iomem *p = dev->base; 99 struct rgmii_regs __iomem *p = dev->base;
@@ -228,7 +228,7 @@ void *rgmii_dump_regs(struct platform_device *ofdev, void *buf)
228} 228}
229 229
230 230
231static int __devinit rgmii_probe(struct platform_device *ofdev) 231static int rgmii_probe(struct platform_device *ofdev)
232{ 232{
233 struct device_node *np = ofdev->dev.of_node; 233 struct device_node *np = ofdev->dev.of_node;
234 struct rgmii_instance *dev; 234 struct rgmii_instance *dev;
@@ -289,7 +289,7 @@ static int __devinit rgmii_probe(struct platform_device *ofdev)
289 return rc; 289 return rc;
290} 290}
291 291
292static int __devexit rgmii_remove(struct platform_device *ofdev) 292static int rgmii_remove(struct platform_device *ofdev)
293{ 293{
294 struct rgmii_instance *dev = dev_get_drvdata(&ofdev->dev); 294 struct rgmii_instance *dev = dev_get_drvdata(&ofdev->dev);
295 295
diff --git a/drivers/net/ethernet/ibm/emac/tah.c b/drivers/net/ethernet/ibm/emac/tah.c
index 872912ef518d..795f1393e2b6 100644
--- a/drivers/net/ethernet/ibm/emac/tah.c
+++ b/drivers/net/ethernet/ibm/emac/tah.c
@@ -23,7 +23,7 @@
23#include "emac.h" 23#include "emac.h"
24#include "core.h" 24#include "core.h"
25 25
26int __devinit tah_attach(struct platform_device *ofdev, int channel) 26int tah_attach(struct platform_device *ofdev, int channel)
27{ 27{
28 struct tah_instance *dev = dev_get_drvdata(&ofdev->dev); 28 struct tah_instance *dev = dev_get_drvdata(&ofdev->dev);
29 29
@@ -87,7 +87,7 @@ void *tah_dump_regs(struct platform_device *ofdev, void *buf)
87 return regs + 1; 87 return regs + 1;
88} 88}
89 89
90static int __devinit tah_probe(struct platform_device *ofdev) 90static int tah_probe(struct platform_device *ofdev)
91{ 91{
92 struct device_node *np = ofdev->dev.of_node; 92 struct device_node *np = ofdev->dev.of_node;
93 struct tah_instance *dev; 93 struct tah_instance *dev;
@@ -135,7 +135,7 @@ static int __devinit tah_probe(struct platform_device *ofdev)
135 return rc; 135 return rc;
136} 136}
137 137
138static int __devexit tah_remove(struct platform_device *ofdev) 138static int tah_remove(struct platform_device *ofdev)
139{ 139{
140 struct tah_instance *dev = dev_get_drvdata(&ofdev->dev); 140 struct tah_instance *dev = dev_get_drvdata(&ofdev->dev);
141 141
diff --git a/drivers/net/ethernet/ibm/emac/zmii.c b/drivers/net/ethernet/ibm/emac/zmii.c
index 415e9b4d5408..f91202f42125 100644
--- a/drivers/net/ethernet/ibm/emac/zmii.c
+++ b/drivers/net/ethernet/ibm/emac/zmii.c
@@ -82,7 +82,7 @@ static inline u32 zmii_mode_mask(int mode, int input)
82 } 82 }
83} 83}
84 84
85int __devinit zmii_attach(struct platform_device *ofdev, int input, int *mode) 85int zmii_attach(struct platform_device *ofdev, int input, int *mode)
86{ 86{
87 struct zmii_instance *dev = dev_get_drvdata(&ofdev->dev); 87 struct zmii_instance *dev = dev_get_drvdata(&ofdev->dev);
88 struct zmii_regs __iomem *p = dev->base; 88 struct zmii_regs __iomem *p = dev->base;
@@ -231,7 +231,7 @@ void *zmii_dump_regs(struct platform_device *ofdev, void *buf)
231 return regs + 1; 231 return regs + 1;
232} 232}
233 233
234static int __devinit zmii_probe(struct platform_device *ofdev) 234static int zmii_probe(struct platform_device *ofdev)
235{ 235{
236 struct device_node *np = ofdev->dev.of_node; 236 struct device_node *np = ofdev->dev.of_node;
237 struct zmii_instance *dev; 237 struct zmii_instance *dev;
@@ -282,7 +282,7 @@ static int __devinit zmii_probe(struct platform_device *ofdev)
282 return rc; 282 return rc;
283} 283}
284 284
285static int __devexit zmii_remove(struct platform_device *ofdev) 285static int zmii_remove(struct platform_device *ofdev)
286{ 286{
287 struct zmii_instance *dev = dev_get_drvdata(&ofdev->dev); 287 struct zmii_instance *dev = dev_get_drvdata(&ofdev->dev);
288 288
diff --git a/drivers/net/ethernet/ibm/ibmveth.c b/drivers/net/ethernet/ibm/ibmveth.c
index b68d28a130e6..35485f2c144c 100644
--- a/drivers/net/ethernet/ibm/ibmveth.c
+++ b/drivers/net/ethernet/ibm/ibmveth.c
@@ -1324,7 +1324,7 @@ static const struct net_device_ops ibmveth_netdev_ops = {
1324#endif 1324#endif
1325}; 1325};
1326 1326
1327static int __devinit ibmveth_probe(struct vio_dev *dev, 1327static int ibmveth_probe(struct vio_dev *dev,
1328 const struct vio_device_id *id) 1328 const struct vio_device_id *id)
1329{ 1329{
1330 int rc, i; 1330 int rc, i;
@@ -1426,7 +1426,7 @@ static int __devinit ibmveth_probe(struct vio_dev *dev,
1426 return 0; 1426 return 0;
1427} 1427}
1428 1428
1429static int __devexit ibmveth_remove(struct vio_dev *dev) 1429static int ibmveth_remove(struct vio_dev *dev)
1430{ 1430{
1431 struct net_device *netdev = dev_get_drvdata(&dev->dev); 1431 struct net_device *netdev = dev_get_drvdata(&dev->dev);
1432 struct ibmveth_adapter *adapter = netdev_priv(netdev); 1432 struct ibmveth_adapter *adapter = netdev_priv(netdev);
@@ -1593,7 +1593,7 @@ static int ibmveth_resume(struct device *dev)
1593 return 0; 1593 return 0;
1594} 1594}
1595 1595
1596static struct vio_device_id ibmveth_device_table[] __devinitdata = { 1596static struct vio_device_id ibmveth_device_table[] = {
1597 { "network", "IBM,l-lan"}, 1597 { "network", "IBM,l-lan"},
1598 { "", "" } 1598 { "", "" }
1599}; 1599};
diff --git a/drivers/net/ethernet/icplus/ipg.c b/drivers/net/ethernet/icplus/ipg.c
index 1b563bb959c2..f80ae745908d 100644
--- a/drivers/net/ethernet/icplus/ipg.c
+++ b/drivers/net/ethernet/icplus/ipg.c
@@ -2167,7 +2167,7 @@ static const struct ethtool_ops ipg_ethtool_ops = {
2167 .nway_reset = ipg_nway_reset, 2167 .nway_reset = ipg_nway_reset,
2168}; 2168};
2169 2169
2170static void __devexit ipg_remove(struct pci_dev *pdev) 2170static void ipg_remove(struct pci_dev *pdev)
2171{ 2171{
2172 struct net_device *dev = pci_get_drvdata(pdev); 2172 struct net_device *dev = pci_get_drvdata(pdev);
2173 struct ipg_nic_private *sp = netdev_priv(dev); 2173 struct ipg_nic_private *sp = netdev_priv(dev);
@@ -2199,7 +2199,7 @@ static const struct net_device_ops ipg_netdev_ops = {
2199 .ndo_validate_addr = eth_validate_addr, 2199 .ndo_validate_addr = eth_validate_addr,
2200}; 2200};
2201 2201
2202static int __devinit ipg_probe(struct pci_dev *pdev, 2202static int ipg_probe(struct pci_dev *pdev,
2203 const struct pci_device_id *id) 2203 const struct pci_device_id *id)
2204{ 2204{
2205 unsigned int i = id->driver_data; 2205 unsigned int i = id->driver_data;
@@ -2296,7 +2296,7 @@ static struct pci_driver ipg_pci_driver = {
2296 .name = IPG_DRIVER_NAME, 2296 .name = IPG_DRIVER_NAME,
2297 .id_table = ipg_pci_tbl, 2297 .id_table = ipg_pci_tbl,
2298 .probe = ipg_probe, 2298 .probe = ipg_probe,
2299 .remove = __devexit_p(ipg_remove), 2299 .remove = ipg_remove,
2300}; 2300};
2301 2301
2302static int __init ipg_init_module(void) 2302static int __init ipg_init_module(void)
diff --git a/drivers/net/ethernet/intel/e100.c b/drivers/net/ethernet/intel/e100.c
index 29ce9bd27f94..50c205098626 100644
--- a/drivers/net/ethernet/intel/e100.c
+++ b/drivers/net/ethernet/intel/e100.c
@@ -2829,7 +2829,7 @@ static const struct net_device_ops e100_netdev_ops = {
2829 .ndo_set_features = e100_set_features, 2829 .ndo_set_features = e100_set_features,
2830}; 2830};
2831 2831
2832static int __devinit e100_probe(struct pci_dev *pdev, 2832static int e100_probe(struct pci_dev *pdev,
2833 const struct pci_device_id *ent) 2833 const struct pci_device_id *ent)
2834{ 2834{
2835 struct net_device *netdev; 2835 struct net_device *netdev;
@@ -2981,7 +2981,7 @@ err_out_free_dev:
2981 return err; 2981 return err;
2982} 2982}
2983 2983
2984static void __devexit e100_remove(struct pci_dev *pdev) 2984static void e100_remove(struct pci_dev *pdev)
2985{ 2985{
2986 struct net_device *netdev = pci_get_drvdata(pdev); 2986 struct net_device *netdev = pci_get_drvdata(pdev);
2987 2987
@@ -3167,7 +3167,7 @@ static struct pci_driver e100_driver = {
3167 .name = DRV_NAME, 3167 .name = DRV_NAME,
3168 .id_table = e100_id_table, 3168 .id_table = e100_id_table,
3169 .probe = e100_probe, 3169 .probe = e100_probe,
3170 .remove = __devexit_p(e100_remove), 3170 .remove = e100_remove,
3171#ifdef CONFIG_PM 3171#ifdef CONFIG_PM
3172 /* Power Management hooks */ 3172 /* Power Management hooks */
3173 .suspend = e100_suspend, 3173 .suspend = e100_suspend,
diff --git a/drivers/net/ethernet/intel/e1000/e1000_main.c b/drivers/net/ethernet/intel/e1000/e1000_main.c
index 222bfaff4622..840fb0d39034 100644
--- a/drivers/net/ethernet/intel/e1000/e1000_main.c
+++ b/drivers/net/ethernet/intel/e1000/e1000_main.c
@@ -111,7 +111,7 @@ void e1000_update_stats(struct e1000_adapter *adapter);
111static int e1000_init_module(void); 111static int e1000_init_module(void);
112static void e1000_exit_module(void); 112static void e1000_exit_module(void);
113static int e1000_probe(struct pci_dev *pdev, const struct pci_device_id *ent); 113static int e1000_probe(struct pci_dev *pdev, const struct pci_device_id *ent);
114static void __devexit e1000_remove(struct pci_dev *pdev); 114static void e1000_remove(struct pci_dev *pdev);
115static int e1000_alloc_queues(struct e1000_adapter *adapter); 115static int e1000_alloc_queues(struct e1000_adapter *adapter);
116static int e1000_sw_init(struct e1000_adapter *adapter); 116static int e1000_sw_init(struct e1000_adapter *adapter);
117static int e1000_open(struct net_device *netdev); 117static int e1000_open(struct net_device *netdev);
@@ -202,7 +202,7 @@ static struct pci_driver e1000_driver = {
202 .name = e1000_driver_name, 202 .name = e1000_driver_name,
203 .id_table = e1000_pci_tbl, 203 .id_table = e1000_pci_tbl,
204 .probe = e1000_probe, 204 .probe = e1000_probe,
205 .remove = __devexit_p(e1000_remove), 205 .remove = e1000_remove,
206#ifdef CONFIG_PM 206#ifdef CONFIG_PM
207 /* Power Management Hooks */ 207 /* Power Management Hooks */
208 .suspend = e1000_suspend, 208 .suspend = e1000_suspend,
@@ -938,7 +938,7 @@ static int e1000_init_hw_struct(struct e1000_adapter *adapter,
938 * The OS initialization, configuring of the adapter private structure, 938 * The OS initialization, configuring of the adapter private structure,
939 * and a hardware reset occur. 939 * and a hardware reset occur.
940 **/ 940 **/
941static int __devinit e1000_probe(struct pci_dev *pdev, 941static int e1000_probe(struct pci_dev *pdev,
942 const struct pci_device_id *ent) 942 const struct pci_device_id *ent)
943{ 943{
944 struct net_device *netdev; 944 struct net_device *netdev;
@@ -1273,7 +1273,7 @@ err_pci_reg:
1273 * memory. 1273 * memory.
1274 **/ 1274 **/
1275 1275
1276static void __devexit e1000_remove(struct pci_dev *pdev) 1276static void e1000_remove(struct pci_dev *pdev)
1277{ 1277{
1278 struct net_device *netdev = pci_get_drvdata(pdev); 1278 struct net_device *netdev = pci_get_drvdata(pdev);
1279 struct e1000_adapter *adapter = netdev_priv(netdev); 1279 struct e1000_adapter *adapter = netdev_priv(netdev);
@@ -1309,7 +1309,7 @@ static void __devexit e1000_remove(struct pci_dev *pdev)
1309 * e1000_init_hw_struct MUST be called before this function 1309 * e1000_init_hw_struct MUST be called before this function
1310 **/ 1310 **/
1311 1311
1312static int __devinit e1000_sw_init(struct e1000_adapter *adapter) 1312static int e1000_sw_init(struct e1000_adapter *adapter)
1313{ 1313{
1314 adapter->rx_buffer_len = MAXIMUM_ETHERNET_VLAN_SIZE; 1314 adapter->rx_buffer_len = MAXIMUM_ETHERNET_VLAN_SIZE;
1315 1315
@@ -1340,7 +1340,7 @@ static int __devinit e1000_sw_init(struct e1000_adapter *adapter)
1340 * number of queues at compile-time. 1340 * number of queues at compile-time.
1341 **/ 1341 **/
1342 1342
1343static int __devinit e1000_alloc_queues(struct e1000_adapter *adapter) 1343static int e1000_alloc_queues(struct e1000_adapter *adapter)
1344{ 1344{
1345 adapter->tx_ring = kcalloc(adapter->num_tx_queues, 1345 adapter->tx_ring = kcalloc(adapter->num_tx_queues,
1346 sizeof(struct e1000_tx_ring), GFP_KERNEL); 1346 sizeof(struct e1000_tx_ring), GFP_KERNEL);
diff --git a/drivers/net/ethernet/intel/e1000/e1000_param.c b/drivers/net/ethernet/intel/e1000/e1000_param.c
index 1301eba8b57a..4e19aa0657f4 100644
--- a/drivers/net/ethernet/intel/e1000/e1000_param.c
+++ b/drivers/net/ethernet/intel/e1000/e1000_param.c
@@ -45,7 +45,7 @@
45 45
46#define E1000_PARAM_INIT { [0 ... E1000_MAX_NIC] = OPTION_UNSET } 46#define E1000_PARAM_INIT { [0 ... E1000_MAX_NIC] = OPTION_UNSET }
47#define E1000_PARAM(X, desc) \ 47#define E1000_PARAM(X, desc) \
48 static int __devinitdata X[E1000_MAX_NIC+1] = E1000_PARAM_INIT; \ 48 static int X[E1000_MAX_NIC+1] = E1000_PARAM_INIT; \
49 static unsigned int num_##X; \ 49 static unsigned int num_##X; \
50 module_param_array_named(X, X, int, &num_##X, 0); \ 50 module_param_array_named(X, X, int, &num_##X, 0); \
51 MODULE_PARM_DESC(X, desc); 51 MODULE_PARM_DESC(X, desc);
@@ -205,7 +205,7 @@ struct e1000_option {
205 } arg; 205 } arg;
206}; 206};
207 207
208static int __devinit e1000_validate_option(unsigned int *value, 208static int e1000_validate_option(unsigned int *value,
209 const struct e1000_option *opt, 209 const struct e1000_option *opt,
210 struct e1000_adapter *adapter) 210 struct e1000_adapter *adapter)
211{ 211{
@@ -268,7 +268,7 @@ static void e1000_check_copper_options(struct e1000_adapter *adapter);
268 * in a variable in the adapter structure. 268 * in a variable in the adapter structure.
269 **/ 269 **/
270 270
271void __devinit e1000_check_options(struct e1000_adapter *adapter) 271void e1000_check_options(struct e1000_adapter *adapter)
272{ 272{
273 struct e1000_option opt; 273 struct e1000_option opt;
274 int bd = adapter->bd_number; 274 int bd = adapter->bd_number;
@@ -534,7 +534,7 @@ void __devinit e1000_check_options(struct e1000_adapter *adapter)
534 * Handles speed and duplex options on fiber adapters 534 * Handles speed and duplex options on fiber adapters
535 **/ 535 **/
536 536
537static void __devinit e1000_check_fiber_options(struct e1000_adapter *adapter) 537static void e1000_check_fiber_options(struct e1000_adapter *adapter)
538{ 538{
539 int bd = adapter->bd_number; 539 int bd = adapter->bd_number;
540 if (num_Speed > bd) { 540 if (num_Speed > bd) {
@@ -560,7 +560,7 @@ static void __devinit e1000_check_fiber_options(struct e1000_adapter *adapter)
560 * Handles speed and duplex options on copper adapters 560 * Handles speed and duplex options on copper adapters
561 **/ 561 **/
562 562
563static void __devinit e1000_check_copper_options(struct e1000_adapter *adapter) 563static void e1000_check_copper_options(struct e1000_adapter *adapter)
564{ 564{
565 struct e1000_option opt; 565 struct e1000_option opt;
566 unsigned int speed, dplx, an; 566 unsigned int speed, dplx, an;
diff --git a/drivers/net/ethernet/intel/e1000e/netdev.c b/drivers/net/ethernet/intel/e1000e/netdev.c
index 6d06ed4e34b1..829e81471ae7 100644
--- a/drivers/net/ethernet/intel/e1000e/netdev.c
+++ b/drivers/net/ethernet/intel/e1000e/netdev.c
@@ -2503,7 +2503,7 @@ void e1000e_write_itr(struct e1000_adapter *adapter, u32 itr)
2503 * e1000_alloc_queues - Allocate memory for all rings 2503 * e1000_alloc_queues - Allocate memory for all rings
2504 * @adapter: board private structure to initialize 2504 * @adapter: board private structure to initialize
2505 **/ 2505 **/
2506static int __devinit e1000_alloc_queues(struct e1000_adapter *adapter) 2506static int e1000_alloc_queues(struct e1000_adapter *adapter)
2507{ 2507{
2508 int size = sizeof(struct e1000_ring); 2508 int size = sizeof(struct e1000_ring);
2509 2509
@@ -3676,7 +3676,7 @@ void e1000e_reinit_locked(struct e1000_adapter *adapter)
3676 * Fields are initialized based on PCI device information and 3676 * Fields are initialized based on PCI device information and
3677 * OS network device settings (MTU size). 3677 * OS network device settings (MTU size).
3678 **/ 3678 **/
3679static int __devinit e1000_sw_init(struct e1000_adapter *adapter) 3679static int e1000_sw_init(struct e1000_adapter *adapter)
3680{ 3680{
3681 struct net_device *netdev = adapter->netdev; 3681 struct net_device *netdev = adapter->netdev;
3682 3682
@@ -6024,7 +6024,7 @@ static const struct net_device_ops e1000e_netdev_ops = {
6024 * The OS initialization, configuring of the adapter private structure, 6024 * The OS initialization, configuring of the adapter private structure,
6025 * and a hardware reset occur. 6025 * and a hardware reset occur.
6026 **/ 6026 **/
6027static int __devinit e1000_probe(struct pci_dev *pdev, 6027static int e1000_probe(struct pci_dev *pdev,
6028 const struct pci_device_id *ent) 6028 const struct pci_device_id *ent)
6029{ 6029{
6030 struct net_device *netdev; 6030 struct net_device *netdev;
@@ -6361,7 +6361,7 @@ err_dma:
6361 * Hot-Plug event, or because the driver is going to be removed from 6361 * Hot-Plug event, or because the driver is going to be removed from
6362 * memory. 6362 * memory.
6363 **/ 6363 **/
6364static void __devexit e1000_remove(struct pci_dev *pdev) 6364static void e1000_remove(struct pci_dev *pdev)
6365{ 6365{
6366 struct net_device *netdev = pci_get_drvdata(pdev); 6366 struct net_device *netdev = pci_get_drvdata(pdev);
6367 struct e1000_adapter *adapter = netdev_priv(netdev); 6367 struct e1000_adapter *adapter = netdev_priv(netdev);
@@ -6512,7 +6512,7 @@ static struct pci_driver e1000_driver = {
6512 .name = e1000e_driver_name, 6512 .name = e1000e_driver_name,
6513 .id_table = e1000_pci_tbl, 6513 .id_table = e1000_pci_tbl,
6514 .probe = e1000_probe, 6514 .probe = e1000_probe,
6515 .remove = __devexit_p(e1000_remove), 6515 .remove = e1000_remove,
6516#ifdef CONFIG_PM 6516#ifdef CONFIG_PM
6517 .driver = { 6517 .driver = {
6518 .pm = &e1000_pm_ops, 6518 .pm = &e1000_pm_ops,
diff --git a/drivers/net/ethernet/intel/e1000e/param.c b/drivers/net/ethernet/intel/e1000e/param.c
index 1fbb31554e4d..b3beed2232fd 100644
--- a/drivers/net/ethernet/intel/e1000e/param.c
+++ b/drivers/net/ethernet/intel/e1000e/param.c
@@ -53,7 +53,7 @@ MODULE_PARM_DESC(copybreak,
53 */ 53 */
54#define E1000_PARAM_INIT { [0 ... E1000_MAX_NIC] = OPTION_UNSET } 54#define E1000_PARAM_INIT { [0 ... E1000_MAX_NIC] = OPTION_UNSET }
55#define E1000_PARAM(X, desc) \ 55#define E1000_PARAM(X, desc) \
56 static int __devinitdata X[E1000_MAX_NIC+1] \ 56 static int X[E1000_MAX_NIC+1] \
57 = E1000_PARAM_INIT; \ 57 = E1000_PARAM_INIT; \
58 static unsigned int num_##X; \ 58 static unsigned int num_##X; \
59 module_param_array_named(X, X, int, &num_##X, 0); \ 59 module_param_array_named(X, X, int, &num_##X, 0); \
@@ -172,7 +172,7 @@ struct e1000_option {
172 } arg; 172 } arg;
173}; 173};
174 174
175static int __devinit e1000_validate_option(unsigned int *value, 175static int e1000_validate_option(unsigned int *value,
176 const struct e1000_option *opt, 176 const struct e1000_option *opt,
177 struct e1000_adapter *adapter) 177 struct e1000_adapter *adapter)
178{ 178{
@@ -235,7 +235,7 @@ static int __devinit e1000_validate_option(unsigned int *value,
235 * value exists, a default value is used. The final value is stored 235 * value exists, a default value is used. The final value is stored
236 * in a variable in the adapter structure. 236 * in a variable in the adapter structure.
237 **/ 237 **/
238void __devinit e1000e_check_options(struct e1000_adapter *adapter) 238void e1000e_check_options(struct e1000_adapter *adapter)
239{ 239{
240 struct e1000_hw *hw = &adapter->hw; 240 struct e1000_hw *hw = &adapter->hw;
241 int bd = adapter->bd_number; 241 int bd = adapter->bd_number;
diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c
index b85b15a88981..de4ebb306530 100644
--- a/drivers/net/ethernet/intel/igb/igb_main.c
+++ b/drivers/net/ethernet/intel/igb/igb_main.c
@@ -118,7 +118,7 @@ static void igb_free_all_tx_resources(struct igb_adapter *);
118static void igb_free_all_rx_resources(struct igb_adapter *); 118static void igb_free_all_rx_resources(struct igb_adapter *);
119static void igb_setup_mrqc(struct igb_adapter *); 119static void igb_setup_mrqc(struct igb_adapter *);
120static int igb_probe(struct pci_dev *, const struct pci_device_id *); 120static int igb_probe(struct pci_dev *, const struct pci_device_id *);
121static void __devexit igb_remove(struct pci_dev *pdev); 121static void igb_remove(struct pci_dev *pdev);
122static int igb_sw_init(struct igb_adapter *); 122static int igb_sw_init(struct igb_adapter *);
123static int igb_open(struct net_device *); 123static int igb_open(struct net_device *);
124static int igb_close(struct net_device *); 124static int igb_close(struct net_device *);
@@ -228,7 +228,7 @@ static struct pci_driver igb_driver = {
228 .name = igb_driver_name, 228 .name = igb_driver_name,
229 .id_table = igb_pci_tbl, 229 .id_table = igb_pci_tbl,
230 .probe = igb_probe, 230 .probe = igb_probe,
231 .remove = __devexit_p(igb_remove), 231 .remove = igb_remove,
232#ifdef CONFIG_PM 232#ifdef CONFIG_PM
233 .driver.pm = &igb_pm_ops, 233 .driver.pm = &igb_pm_ops,
234#endif 234#endif
@@ -1824,7 +1824,7 @@ void igb_set_fw_version(struct igb_adapter *adapter)
1824 * The OS initialization, configuring of the adapter private structure, 1824 * The OS initialization, configuring of the adapter private structure,
1825 * and a hardware reset occur. 1825 * and a hardware reset occur.
1826 **/ 1826 **/
1827static int __devinit igb_probe(struct pci_dev *pdev, 1827static int igb_probe(struct pci_dev *pdev,
1828 const struct pci_device_id *ent) 1828 const struct pci_device_id *ent)
1829{ 1829{
1830 struct net_device *netdev; 1830 struct net_device *netdev;
@@ -2197,7 +2197,7 @@ err_dma:
2197 * Hot-Plug event, or because the driver is going to be removed from 2197 * Hot-Plug event, or because the driver is going to be removed from
2198 * memory. 2198 * memory.
2199 **/ 2199 **/
2200static void __devexit igb_remove(struct pci_dev *pdev) 2200static void igb_remove(struct pci_dev *pdev)
2201{ 2201{
2202 struct net_device *netdev = pci_get_drvdata(pdev); 2202 struct net_device *netdev = pci_get_drvdata(pdev);
2203 struct igb_adapter *adapter = netdev_priv(netdev); 2203 struct igb_adapter *adapter = netdev_priv(netdev);
@@ -2277,7 +2277,7 @@ static void __devexit igb_remove(struct pci_dev *pdev)
2277 * mor expensive time wise to disable SR-IOV than it is to allocate and free 2277 * mor expensive time wise to disable SR-IOV than it is to allocate and free
2278 * the memory for the VFs. 2278 * the memory for the VFs.
2279 **/ 2279 **/
2280static void __devinit igb_probe_vfs(struct igb_adapter * adapter) 2280static void igb_probe_vfs(struct igb_adapter *adapter)
2281{ 2281{
2282#ifdef CONFIG_PCI_IOV 2282#ifdef CONFIG_PCI_IOV
2283 struct pci_dev *pdev = adapter->pdev; 2283 struct pci_dev *pdev = adapter->pdev;
@@ -2338,7 +2338,7 @@ out:
2338 * Fields are initialized based on PCI device information and 2338 * Fields are initialized based on PCI device information and
2339 * OS network device settings (MTU size). 2339 * OS network device settings (MTU size).
2340 **/ 2340 **/
2341static int __devinit igb_sw_init(struct igb_adapter *adapter) 2341static int igb_sw_init(struct igb_adapter *adapter)
2342{ 2342{
2343 struct e1000_hw *hw = &adapter->hw; 2343 struct e1000_hw *hw = &adapter->hw;
2344 struct net_device *netdev = adapter->netdev; 2344 struct net_device *netdev = adapter->netdev;
diff --git a/drivers/net/ethernet/intel/igbvf/netdev.c b/drivers/net/ethernet/intel/igbvf/netdev.c
index 3d92ad8cdca1..b494309ee942 100644
--- a/drivers/net/ethernet/intel/igbvf/netdev.c
+++ b/drivers/net/ethernet/intel/igbvf/netdev.c
@@ -1098,7 +1098,7 @@ out:
1098 * igbvf_alloc_queues - Allocate memory for all rings 1098 * igbvf_alloc_queues - Allocate memory for all rings
1099 * @adapter: board private structure to initialize 1099 * @adapter: board private structure to initialize
1100 **/ 1100 **/
1101static int __devinit igbvf_alloc_queues(struct igbvf_adapter *adapter) 1101static int igbvf_alloc_queues(struct igbvf_adapter *adapter)
1102{ 1102{
1103 struct net_device *netdev = adapter->netdev; 1103 struct net_device *netdev = adapter->netdev;
1104 1104
@@ -1550,7 +1550,7 @@ void igbvf_reinit_locked(struct igbvf_adapter *adapter)
1550 * Fields are initialized based on PCI device information and 1550 * Fields are initialized based on PCI device information and
1551 * OS network device settings (MTU size). 1551 * OS network device settings (MTU size).
1552 **/ 1552 **/
1553static int __devinit igbvf_sw_init(struct igbvf_adapter *adapter) 1553static int igbvf_sw_init(struct igbvf_adapter *adapter)
1554{ 1554{
1555 struct net_device *netdev = adapter->netdev; 1555 struct net_device *netdev = adapter->netdev;
1556 s32 rc; 1556 s32 rc;
@@ -2618,7 +2618,7 @@ static const struct net_device_ops igbvf_netdev_ops = {
2618 * The OS initialization, configuring of the adapter private structure, 2618 * The OS initialization, configuring of the adapter private structure,
2619 * and a hardware reset occur. 2619 * and a hardware reset occur.
2620 **/ 2620 **/
2621static int __devinit igbvf_probe(struct pci_dev *pdev, 2621static int igbvf_probe(struct pci_dev *pdev,
2622 const struct pci_device_id *ent) 2622 const struct pci_device_id *ent)
2623{ 2623{
2624 struct net_device *netdev; 2624 struct net_device *netdev;
@@ -2818,7 +2818,7 @@ err_dma:
2818 * Hot-Plug event, or because the driver is going to be removed from 2818 * Hot-Plug event, or because the driver is going to be removed from
2819 * memory. 2819 * memory.
2820 **/ 2820 **/
2821static void __devexit igbvf_remove(struct pci_dev *pdev) 2821static void igbvf_remove(struct pci_dev *pdev)
2822{ 2822{
2823 struct net_device *netdev = pci_get_drvdata(pdev); 2823 struct net_device *netdev = pci_get_drvdata(pdev);
2824 struct igbvf_adapter *adapter = netdev_priv(netdev); 2824 struct igbvf_adapter *adapter = netdev_priv(netdev);
@@ -2875,7 +2875,7 @@ static struct pci_driver igbvf_driver = {
2875 .name = igbvf_driver_name, 2875 .name = igbvf_driver_name,
2876 .id_table = igbvf_pci_tbl, 2876 .id_table = igbvf_pci_tbl,
2877 .probe = igbvf_probe, 2877 .probe = igbvf_probe,
2878 .remove = __devexit_p(igbvf_remove), 2878 .remove = igbvf_remove,
2879#ifdef CONFIG_PM 2879#ifdef CONFIG_PM
2880 /* Power Management Hooks */ 2880 /* Power Management Hooks */
2881 .suspend = igbvf_suspend, 2881 .suspend = igbvf_suspend,
diff --git a/drivers/net/ethernet/intel/ixgb/ixgb_main.c b/drivers/net/ethernet/intel/ixgb/ixgb_main.c
index d99a2d51b948..ae96c10251be 100644
--- a/drivers/net/ethernet/intel/ixgb/ixgb_main.c
+++ b/drivers/net/ethernet/intel/ixgb/ixgb_main.c
@@ -73,7 +73,7 @@ MODULE_DEVICE_TABLE(pci, ixgb_pci_tbl);
73static int ixgb_init_module(void); 73static int ixgb_init_module(void);
74static void ixgb_exit_module(void); 74static void ixgb_exit_module(void);
75static int ixgb_probe(struct pci_dev *pdev, const struct pci_device_id *ent); 75static int ixgb_probe(struct pci_dev *pdev, const struct pci_device_id *ent);
76static void __devexit ixgb_remove(struct pci_dev *pdev); 76static void ixgb_remove(struct pci_dev *pdev);
77static int ixgb_sw_init(struct ixgb_adapter *adapter); 77static int ixgb_sw_init(struct ixgb_adapter *adapter);
78static int ixgb_open(struct net_device *netdev); 78static int ixgb_open(struct net_device *netdev);
79static int ixgb_close(struct net_device *netdev); 79static int ixgb_close(struct net_device *netdev);
@@ -125,7 +125,7 @@ static struct pci_driver ixgb_driver = {
125 .name = ixgb_driver_name, 125 .name = ixgb_driver_name,
126 .id_table = ixgb_pci_tbl, 126 .id_table = ixgb_pci_tbl,
127 .probe = ixgb_probe, 127 .probe = ixgb_probe,
128 .remove = __devexit_p(ixgb_remove), 128 .remove = ixgb_remove,
129 .err_handler = &ixgb_err_handler 129 .err_handler = &ixgb_err_handler
130}; 130};
131 131
@@ -391,7 +391,7 @@ static const struct net_device_ops ixgb_netdev_ops = {
391 * and a hardware reset occur. 391 * and a hardware reset occur.
392 **/ 392 **/
393 393
394static int __devinit 394static int
395ixgb_probe(struct pci_dev *pdev, const struct pci_device_id *ent) 395ixgb_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
396{ 396{
397 struct net_device *netdev = NULL; 397 struct net_device *netdev = NULL;
@@ -558,7 +558,7 @@ err_dma_mask:
558 * memory. 558 * memory.
559 **/ 559 **/
560 560
561static void __devexit 561static void
562ixgb_remove(struct pci_dev *pdev) 562ixgb_remove(struct pci_dev *pdev)
563{ 563{
564 struct net_device *netdev = pci_get_drvdata(pdev); 564 struct net_device *netdev = pci_get_drvdata(pdev);
@@ -584,7 +584,7 @@ ixgb_remove(struct pci_dev *pdev)
584 * OS network device settings (MTU size). 584 * OS network device settings (MTU size).
585 **/ 585 **/
586 586
587static int __devinit 587static int
588ixgb_sw_init(struct ixgb_adapter *adapter) 588ixgb_sw_init(struct ixgb_adapter *adapter)
589{ 589{
590 struct ixgb_hw *hw = &adapter->hw; 590 struct ixgb_hw *hw = &adapter->hw;
diff --git a/drivers/net/ethernet/intel/ixgb/ixgb_param.c b/drivers/net/ethernet/intel/ixgb/ixgb_param.c
index 07d83ab46e21..04a60640ddda 100644
--- a/drivers/net/ethernet/intel/ixgb/ixgb_param.c
+++ b/drivers/net/ethernet/intel/ixgb/ixgb_param.c
@@ -47,7 +47,7 @@
47 47
48#define IXGB_PARAM_INIT { [0 ... IXGB_MAX_NIC] = OPTION_UNSET } 48#define IXGB_PARAM_INIT { [0 ... IXGB_MAX_NIC] = OPTION_UNSET }
49#define IXGB_PARAM(X, desc) \ 49#define IXGB_PARAM(X, desc) \
50 static int __devinitdata X[IXGB_MAX_NIC+1] \ 50 static int X[IXGB_MAX_NIC+1] \
51 = IXGB_PARAM_INIT; \ 51 = IXGB_PARAM_INIT; \
52 static unsigned int num_##X = 0; \ 52 static unsigned int num_##X = 0; \
53 module_param_array_named(X, X, int, &num_##X, 0); \ 53 module_param_array_named(X, X, int, &num_##X, 0); \
@@ -199,7 +199,7 @@ struct ixgb_option {
199 } arg; 199 } arg;
200}; 200};
201 201
202static int __devinit 202static int
203ixgb_validate_option(unsigned int *value, const struct ixgb_option *opt) 203ixgb_validate_option(unsigned int *value, const struct ixgb_option *opt)
204{ 204{
205 if (*value == OPTION_UNSET) { 205 if (*value == OPTION_UNSET) {
@@ -257,7 +257,7 @@ ixgb_validate_option(unsigned int *value, const struct ixgb_option *opt)
257 * in a variable in the adapter structure. 257 * in a variable in the adapter structure.
258 **/ 258 **/
259 259
260void __devinit 260void
261ixgb_check_options(struct ixgb_adapter *adapter) 261ixgb_check_options(struct ixgb_adapter *adapter)
262{ 262{
263 int bd = adapter->bd_number; 263 int bd = adapter->bd_number;
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
index 79b834583188..2fa16de46786 100644
--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
@@ -4462,7 +4462,7 @@ static void ixgbe_tx_timeout(struct net_device *netdev)
4462 * Fields are initialized based on PCI device information and 4462 * Fields are initialized based on PCI device information and
4463 * OS network device settings (MTU size). 4463 * OS network device settings (MTU size).
4464 **/ 4464 **/
4465static int __devinit ixgbe_sw_init(struct ixgbe_adapter *adapter) 4465static int ixgbe_sw_init(struct ixgbe_adapter *adapter)
4466{ 4466{
4467 struct ixgbe_hw *hw = &adapter->hw; 4467 struct ixgbe_hw *hw = &adapter->hw;
4468 struct pci_dev *pdev = adapter->pdev; 4468 struct pci_dev *pdev = adapter->pdev;
@@ -7183,7 +7183,7 @@ int ixgbe_wol_supported(struct ixgbe_adapter *adapter, u16 device_id,
7183 * The OS initialization, configuring of the adapter private structure, 7183 * The OS initialization, configuring of the adapter private structure,
7184 * and a hardware reset occur. 7184 * and a hardware reset occur.
7185 **/ 7185 **/
7186static int __devinit ixgbe_probe(struct pci_dev *pdev, 7186static int ixgbe_probe(struct pci_dev *pdev,
7187 const struct pci_device_id *ent) 7187 const struct pci_device_id *ent)
7188{ 7188{
7189 struct net_device *netdev; 7189 struct net_device *netdev;
@@ -7590,7 +7590,7 @@ err_dma:
7590 * Hot-Plug event, or because the driver is going to be removed from 7590 * Hot-Plug event, or because the driver is going to be removed from
7591 * memory. 7591 * memory.
7592 **/ 7592 **/
7593static void __devexit ixgbe_remove(struct pci_dev *pdev) 7593static void ixgbe_remove(struct pci_dev *pdev)
7594{ 7594{
7595 struct ixgbe_adapter *adapter = pci_get_drvdata(pdev); 7595 struct ixgbe_adapter *adapter = pci_get_drvdata(pdev);
7596 struct net_device *netdev = adapter->netdev; 7596 struct net_device *netdev = adapter->netdev;
@@ -7830,7 +7830,7 @@ static struct pci_driver ixgbe_driver = {
7830 .name = ixgbe_driver_name, 7830 .name = ixgbe_driver_name,
7831 .id_table = ixgbe_pci_tbl, 7831 .id_table = ixgbe_pci_tbl,
7832 .probe = ixgbe_probe, 7832 .probe = ixgbe_probe,
7833 .remove = __devexit_p(ixgbe_remove), 7833 .remove = ixgbe_remove,
7834#ifdef CONFIG_PM 7834#ifdef CONFIG_PM
7835 .suspend = ixgbe_suspend, 7835 .suspend = ixgbe_suspend,
7836 .resume = ixgbe_resume, 7836 .resume = ixgbe_resume,
diff --git a/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c b/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
index f267c003a1bc..1e2f02ac268d 100644
--- a/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
+++ b/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
@@ -2009,7 +2009,7 @@ static void ixgbevf_clear_interrupt_scheme(struct ixgbevf_adapter *adapter)
2009 * Fields are initialized based on PCI device information and 2009 * Fields are initialized based on PCI device information and
2010 * OS network device settings (MTU size). 2010 * OS network device settings (MTU size).
2011 **/ 2011 **/
2012static int __devinit ixgbevf_sw_init(struct ixgbevf_adapter *adapter) 2012static int ixgbevf_sw_init(struct ixgbevf_adapter *adapter)
2013{ 2013{
2014 struct ixgbe_hw *hw = &adapter->hw; 2014 struct ixgbe_hw *hw = &adapter->hw;
2015 struct pci_dev *pdev = adapter->pdev; 2015 struct pci_dev *pdev = adapter->pdev;
@@ -3242,7 +3242,7 @@ static void ixgbevf_assign_netdev_ops(struct net_device *dev)
3242 * The OS initialization, configuring of the adapter private structure, 3242 * The OS initialization, configuring of the adapter private structure,
3243 * and a hardware reset occur. 3243 * and a hardware reset occur.
3244 **/ 3244 **/
3245static int __devinit ixgbevf_probe(struct pci_dev *pdev, 3245static int ixgbevf_probe(struct pci_dev *pdev,
3246 const struct pci_device_id *ent) 3246 const struct pci_device_id *ent)
3247{ 3247{
3248 struct net_device *netdev; 3248 struct net_device *netdev;
@@ -3414,7 +3414,7 @@ err_dma:
3414 * Hot-Plug event, or because the driver is going to be removed from 3414 * Hot-Plug event, or because the driver is going to be removed from
3415 * memory. 3415 * memory.
3416 **/ 3416 **/
3417static void __devexit ixgbevf_remove(struct pci_dev *pdev) 3417static void ixgbevf_remove(struct pci_dev *pdev)
3418{ 3418{
3419 struct net_device *netdev = pci_get_drvdata(pdev); 3419 struct net_device *netdev = pci_get_drvdata(pdev);
3420 struct ixgbevf_adapter *adapter = netdev_priv(netdev); 3420 struct ixgbevf_adapter *adapter = netdev_priv(netdev);
@@ -3528,7 +3528,7 @@ static struct pci_driver ixgbevf_driver = {
3528 .name = ixgbevf_driver_name, 3528 .name = ixgbevf_driver_name,
3529 .id_table = ixgbevf_pci_tbl, 3529 .id_table = ixgbevf_pci_tbl,
3530 .probe = ixgbevf_probe, 3530 .probe = ixgbevf_probe,
3531 .remove = __devexit_p(ixgbevf_remove), 3531 .remove = ixgbevf_remove,
3532#ifdef CONFIG_PM 3532#ifdef CONFIG_PM
3533 /* Power Management Hooks */ 3533 /* Power Management Hooks */
3534 .suspend = ixgbevf_suspend, 3534 .suspend = ixgbevf_suspend,
diff --git a/drivers/net/ethernet/jme.c b/drivers/net/ethernet/jme.c
index 60ac46f4ac08..0519afa413d2 100644
--- a/drivers/net/ethernet/jme.c
+++ b/drivers/net/ethernet/jme.c
@@ -2965,7 +2965,7 @@ static const struct net_device_ops jme_netdev_ops = {
2965#endif 2965#endif
2966}; 2966};
2967 2967
2968static int __devinit 2968static int
2969jme_init_one(struct pci_dev *pdev, 2969jme_init_one(struct pci_dev *pdev,
2970 const struct pci_device_id *ent) 2970 const struct pci_device_id *ent)
2971{ 2971{
@@ -3203,7 +3203,7 @@ err_out:
3203 return rc; 3203 return rc;
3204} 3204}
3205 3205
3206static void __devexit 3206static void
3207jme_remove_one(struct pci_dev *pdev) 3207jme_remove_one(struct pci_dev *pdev)
3208{ 3208{
3209 struct net_device *netdev = pci_get_drvdata(pdev); 3209 struct net_device *netdev = pci_get_drvdata(pdev);
@@ -3318,7 +3318,7 @@ static struct pci_driver jme_driver = {
3318 .name = DRV_NAME, 3318 .name = DRV_NAME,
3319 .id_table = jme_pci_tbl, 3319 .id_table = jme_pci_tbl,
3320 .probe = jme_init_one, 3320 .probe = jme_init_one,
3321 .remove = __devexit_p(jme_remove_one), 3321 .remove = jme_remove_one,
3322 .shutdown = jme_shutdown, 3322 .shutdown = jme_shutdown,
3323 .driver.pm = JME_PM_OPS, 3323 .driver.pm = JME_PM_OPS,
3324}; 3324};
diff --git a/drivers/net/ethernet/lantiq_etop.c b/drivers/net/ethernet/lantiq_etop.c
index 003c5bc7189f..c124e67a1a1c 100644
--- a/drivers/net/ethernet/lantiq_etop.c
+++ b/drivers/net/ethernet/lantiq_etop.c
@@ -774,7 +774,7 @@ err_out:
774 return err; 774 return err;
775} 775}
776 776
777static int __devexit 777static int
778ltq_etop_remove(struct platform_device *pdev) 778ltq_etop_remove(struct platform_device *pdev)
779{ 779{
780 struct net_device *dev = platform_get_drvdata(pdev); 780 struct net_device *dev = platform_get_drvdata(pdev);
@@ -789,7 +789,7 @@ ltq_etop_remove(struct platform_device *pdev)
789} 789}
790 790
791static struct platform_driver ltq_mii_driver = { 791static struct platform_driver ltq_mii_driver = {
792 .remove = __devexit_p(ltq_etop_remove), 792 .remove = ltq_etop_remove,
793 .driver = { 793 .driver = {
794 .name = "ltq_etop", 794 .name = "ltq_etop",
795 .owner = THIS_MODULE, 795 .owner = THIS_MODULE,
diff --git a/drivers/net/ethernet/marvell/skge.c b/drivers/net/ethernet/marvell/skge.c
index d19a143aa5a8..3d66e959a0cc 100644
--- a/drivers/net/ethernet/marvell/skge.c
+++ b/drivers/net/ethernet/marvell/skge.c
@@ -3860,7 +3860,7 @@ static struct net_device *skge_devinit(struct skge_hw *hw, int port,
3860 return dev; 3860 return dev;
3861} 3861}
3862 3862
3863static void __devinit skge_show_addr(struct net_device *dev) 3863static void skge_show_addr(struct net_device *dev)
3864{ 3864{
3865 const struct skge_port *skge = netdev_priv(dev); 3865 const struct skge_port *skge = netdev_priv(dev);
3866 3866
@@ -3869,7 +3869,7 @@ static void __devinit skge_show_addr(struct net_device *dev)
3869 3869
3870static int only_32bit_dma; 3870static int only_32bit_dma;
3871 3871
3872static int __devinit skge_probe(struct pci_dev *pdev, 3872static int skge_probe(struct pci_dev *pdev,
3873 const struct pci_device_id *ent) 3873 const struct pci_device_id *ent)
3874{ 3874{
3875 struct net_device *dev, *dev1; 3875 struct net_device *dev, *dev1;
@@ -4012,7 +4012,7 @@ err_out:
4012 return err; 4012 return err;
4013} 4013}
4014 4014
4015static void __devexit skge_remove(struct pci_dev *pdev) 4015static void skge_remove(struct pci_dev *pdev)
4016{ 4016{
4017 struct skge_hw *hw = pci_get_drvdata(pdev); 4017 struct skge_hw *hw = pci_get_drvdata(pdev);
4018 struct net_device *dev0, *dev1; 4018 struct net_device *dev0, *dev1;
@@ -4142,7 +4142,7 @@ static struct pci_driver skge_driver = {
4142 .name = DRV_NAME, 4142 .name = DRV_NAME,
4143 .id_table = skge_id_table, 4143 .id_table = skge_id_table,
4144 .probe = skge_probe, 4144 .probe = skge_probe,
4145 .remove = __devexit_p(skge_remove), 4145 .remove = skge_remove,
4146 .shutdown = skge_shutdown, 4146 .shutdown = skge_shutdown,
4147 .driver.pm = SKGE_PM_OPS, 4147 .driver.pm = SKGE_PM_OPS,
4148}; 4148};
diff --git a/drivers/net/ethernet/marvell/sky2.c b/drivers/net/ethernet/marvell/sky2.c
index 19e6494f6ed3..6ddfbcae7807 100644
--- a/drivers/net/ethernet/marvell/sky2.c
+++ b/drivers/net/ethernet/marvell/sky2.c
@@ -3140,7 +3140,7 @@ static inline u32 sky2_clk2us(const struct sky2_hw *hw, u32 clk)
3140} 3140}
3141 3141
3142 3142
3143static int __devinit sky2_init(struct sky2_hw *hw) 3143static int sky2_init(struct sky2_hw *hw)
3144{ 3144{
3145 u8 t8; 3145 u8 t8;
3146 3146
@@ -4741,7 +4741,7 @@ static const struct net_device_ops sky2_netdev_ops[2] = {
4741}; 4741};
4742 4742
4743/* Initialize network device */ 4743/* Initialize network device */
4744static __devinit struct net_device *sky2_init_netdev(struct sky2_hw *hw, 4744static struct net_device *sky2_init_netdev(struct sky2_hw *hw,
4745 unsigned port, 4745 unsigned port,
4746 int highmem, int wol) 4746 int highmem, int wol)
4747{ 4747{
@@ -4807,7 +4807,7 @@ static __devinit struct net_device *sky2_init_netdev(struct sky2_hw *hw,
4807 return dev; 4807 return dev;
4808} 4808}
4809 4809
4810static void __devinit sky2_show_addr(struct net_device *dev) 4810static void sky2_show_addr(struct net_device *dev)
4811{ 4811{
4812 const struct sky2_port *sky2 = netdev_priv(dev); 4812 const struct sky2_port *sky2 = netdev_priv(dev);
4813 4813
@@ -4815,7 +4815,7 @@ static void __devinit sky2_show_addr(struct net_device *dev)
4815} 4815}
4816 4816
4817/* Handle software interrupt used during MSI test */ 4817/* Handle software interrupt used during MSI test */
4818static irqreturn_t __devinit sky2_test_intr(int irq, void *dev_id) 4818static irqreturn_t sky2_test_intr(int irq, void *dev_id)
4819{ 4819{
4820 struct sky2_hw *hw = dev_id; 4820 struct sky2_hw *hw = dev_id;
4821 u32 status = sky2_read32(hw, B0_Y2_SP_ISRC2); 4821 u32 status = sky2_read32(hw, B0_Y2_SP_ISRC2);
@@ -4834,7 +4834,7 @@ static irqreturn_t __devinit sky2_test_intr(int irq, void *dev_id)
4834} 4834}
4835 4835
4836/* Test interrupt path by forcing a a software IRQ */ 4836/* Test interrupt path by forcing a a software IRQ */
4837static int __devinit sky2_test_msi(struct sky2_hw *hw) 4837static int sky2_test_msi(struct sky2_hw *hw)
4838{ 4838{
4839 struct pci_dev *pdev = hw->pdev; 4839 struct pci_dev *pdev = hw->pdev;
4840 int err; 4840 int err;
@@ -4896,7 +4896,7 @@ static const char *sky2_name(u8 chipid, char *buf, int sz)
4896 return buf; 4896 return buf;
4897} 4897}
4898 4898
4899static int __devinit sky2_probe(struct pci_dev *pdev, 4899static int sky2_probe(struct pci_dev *pdev,
4900 const struct pci_device_id *ent) 4900 const struct pci_device_id *ent)
4901{ 4901{
4902 struct net_device *dev, *dev1; 4902 struct net_device *dev, *dev1;
@@ -5087,7 +5087,7 @@ err_out:
5087 return err; 5087 return err;
5088} 5088}
5089 5089
5090static void __devexit sky2_remove(struct pci_dev *pdev) 5090static void sky2_remove(struct pci_dev *pdev)
5091{ 5091{
5092 struct sky2_hw *hw = pci_get_drvdata(pdev); 5092 struct sky2_hw *hw = pci_get_drvdata(pdev);
5093 int i; 5093 int i;
@@ -5208,7 +5208,7 @@ static struct pci_driver sky2_driver = {
5208 .name = DRV_NAME, 5208 .name = DRV_NAME,
5209 .id_table = sky2_id_table, 5209 .id_table = sky2_id_table,
5210 .probe = sky2_probe, 5210 .probe = sky2_probe,
5211 .remove = __devexit_p(sky2_remove), 5211 .remove = sky2_remove,
5212 .shutdown = sky2_shutdown, 5212 .shutdown = sky2_shutdown,
5213 .driver.pm = SKY2_PM_OPS, 5213 .driver.pm = SKY2_PM_OPS,
5214}; 5214};
diff --git a/drivers/net/ethernet/mellanox/mlx4/main.c b/drivers/net/ethernet/mellanox/mlx4/main.c
index 2aa80afd98d2..340551eebedf 100644
--- a/drivers/net/ethernet/mellanox/mlx4/main.c
+++ b/drivers/net/ethernet/mellanox/mlx4/main.c
@@ -98,7 +98,7 @@ MODULE_PARM_DESC(log_num_mgm_entry_size, "log mgm size, that defines the num"
98#define HCA_GLOBAL_CAP_MASK 0 98#define HCA_GLOBAL_CAP_MASK 0
99#define PF_CONTEXT_BEHAVIOUR_MASK 0 99#define PF_CONTEXT_BEHAVIOUR_MASK 0
100 100
101static char mlx4_version[] __devinitdata = 101static char mlx4_version[] =
102 DRV_NAME ": Mellanox ConnectX core driver v" 102 DRV_NAME ": Mellanox ConnectX core driver v"
103 DRV_VERSION " (" DRV_RELDATE ")\n"; 103 DRV_VERSION " (" DRV_RELDATE ")\n";
104 104
@@ -2224,7 +2224,7 @@ err_disable_pdev:
2224 return err; 2224 return err;
2225} 2225}
2226 2226
2227static int __devinit mlx4_init_one(struct pci_dev *pdev, 2227static int mlx4_init_one(struct pci_dev *pdev,
2228 const struct pci_device_id *id) 2228 const struct pci_device_id *id)
2229{ 2229{
2230 printk_once(KERN_INFO "%s", mlx4_version); 2230 printk_once(KERN_INFO "%s", mlx4_version);
@@ -2391,7 +2391,7 @@ static struct pci_driver mlx4_driver = {
2391 .name = DRV_NAME, 2391 .name = DRV_NAME,
2392 .id_table = mlx4_pci_table, 2392 .id_table = mlx4_pci_table,
2393 .probe = mlx4_init_one, 2393 .probe = mlx4_init_one,
2394 .remove = __devexit_p(mlx4_remove_one), 2394 .remove = mlx4_remove_one,
2395 .err_handler = &mlx4_err_handler, 2395 .err_handler = &mlx4_err_handler,
2396}; 2396};
2397 2397
diff --git a/drivers/net/ethernet/micrel/ks8695net.c b/drivers/net/ethernet/micrel/ks8695net.c
index e62c31234cfa..07a6ebc47c92 100644
--- a/drivers/net/ethernet/micrel/ks8695net.c
+++ b/drivers/net/ethernet/micrel/ks8695net.c
@@ -1274,7 +1274,7 @@ ks8695_open(struct net_device *ndev)
1274 * This initialises the LAN switch in the KS8695 to a known-good 1274 * This initialises the LAN switch in the KS8695 to a known-good
1275 * set of defaults. 1275 * set of defaults.
1276 */ 1276 */
1277static void __devinit 1277static void
1278ks8695_init_switch(struct ks8695_priv *ksp) 1278ks8695_init_switch(struct ks8695_priv *ksp)
1279{ 1279{
1280 u32 ctrl; 1280 u32 ctrl;
@@ -1302,7 +1302,7 @@ ks8695_init_switch(struct ks8695_priv *ksp)
1302 * This initialises a KS8695's WAN phy to sensible values for 1302 * This initialises a KS8695's WAN phy to sensible values for
1303 * autonegotiation etc. 1303 * autonegotiation etc.
1304 */ 1304 */
1305static void __devinit 1305static void
1306ks8695_init_wan_phy(struct ks8695_priv *ksp) 1306ks8695_init_wan_phy(struct ks8695_priv *ksp)
1307{ 1307{
1308 u32 ctrl; 1308 u32 ctrl;
@@ -1346,7 +1346,7 @@ static const struct net_device_ops ks8695_netdev_ops = {
1346 * wan ports, and an IORESOURCE_IRQ for the link IRQ for the wan 1346 * wan ports, and an IORESOURCE_IRQ for the link IRQ for the wan
1347 * port. 1347 * port.
1348 */ 1348 */
1349static int __devinit 1349static int
1350ks8695_probe(struct platform_device *pdev) 1350ks8695_probe(struct platform_device *pdev)
1351{ 1351{
1352 struct ks8695_priv *ksp; 1352 struct ks8695_priv *ksp;
@@ -1594,7 +1594,7 @@ ks8695_drv_resume(struct platform_device *pdev)
1594 * 1594 *
1595 * This unregisters and releases a KS8695 ethernet device. 1595 * This unregisters and releases a KS8695 ethernet device.
1596 */ 1596 */
1597static int __devexit 1597static int
1598ks8695_drv_remove(struct platform_device *pdev) 1598ks8695_drv_remove(struct platform_device *pdev)
1599{ 1599{
1600 struct net_device *ndev = platform_get_drvdata(pdev); 1600 struct net_device *ndev = platform_get_drvdata(pdev);
@@ -1617,7 +1617,7 @@ static struct platform_driver ks8695_driver = {
1617 .owner = THIS_MODULE, 1617 .owner = THIS_MODULE,
1618 }, 1618 },
1619 .probe = ks8695_probe, 1619 .probe = ks8695_probe,
1620 .remove = __devexit_p(ks8695_drv_remove), 1620 .remove = ks8695_drv_remove,
1621 .suspend = ks8695_drv_suspend, 1621 .suspend = ks8695_drv_suspend,
1622 .resume = ks8695_drv_resume, 1622 .resume = ks8695_drv_resume,
1623}; 1623};
diff --git a/drivers/net/ethernet/micrel/ks8842.c b/drivers/net/ethernet/micrel/ks8842.c
index 24fb049ac2f2..b71eb39ab448 100644
--- a/drivers/net/ethernet/micrel/ks8842.c
+++ b/drivers/net/ethernet/micrel/ks8842.c
@@ -1141,7 +1141,7 @@ static const struct ethtool_ops ks8842_ethtool_ops = {
1141 .get_link = ethtool_op_get_link, 1141 .get_link = ethtool_op_get_link,
1142}; 1142};
1143 1143
1144static int __devinit ks8842_probe(struct platform_device *pdev) 1144static int ks8842_probe(struct platform_device *pdev)
1145{ 1145{
1146 int err = -ENOMEM; 1146 int err = -ENOMEM;
1147 struct resource *iomem; 1147 struct resource *iomem;
@@ -1240,7 +1240,7 @@ err_mem_region:
1240 return err; 1240 return err;
1241} 1241}
1242 1242
1243static int __devexit ks8842_remove(struct platform_device *pdev) 1243static int ks8842_remove(struct platform_device *pdev)
1244{ 1244{
1245 struct net_device *netdev = platform_get_drvdata(pdev); 1245 struct net_device *netdev = platform_get_drvdata(pdev);
1246 struct ks8842_adapter *adapter = netdev_priv(netdev); 1246 struct ks8842_adapter *adapter = netdev_priv(netdev);
@@ -1262,7 +1262,7 @@ static struct platform_driver ks8842_platform_driver = {
1262 .owner = THIS_MODULE, 1262 .owner = THIS_MODULE,
1263 }, 1263 },
1264 .probe = ks8842_probe, 1264 .probe = ks8842_probe,
1265 .remove = __devexit_p(ks8842_remove), 1265 .remove = ks8842_remove,
1266}; 1266};
1267 1267
1268module_platform_driver(ks8842_platform_driver); 1268module_platform_driver(ks8842_platform_driver);
diff --git a/drivers/net/ethernet/micrel/ks8851.c b/drivers/net/ethernet/micrel/ks8851.c
index 1540ebeb8669..286816a4e783 100644
--- a/drivers/net/ethernet/micrel/ks8851.c
+++ b/drivers/net/ethernet/micrel/ks8851.c
@@ -1415,7 +1415,7 @@ static int ks8851_resume(struct spi_device *spi)
1415#define ks8851_resume NULL 1415#define ks8851_resume NULL
1416#endif 1416#endif
1417 1417
1418static int __devinit ks8851_probe(struct spi_device *spi) 1418static int ks8851_probe(struct spi_device *spi)
1419{ 1419{
1420 struct net_device *ndev; 1420 struct net_device *ndev;
1421 struct ks8851_net *ks; 1421 struct ks8851_net *ks;
@@ -1534,7 +1534,7 @@ err_irq:
1534 return ret; 1534 return ret;
1535} 1535}
1536 1536
1537static int __devexit ks8851_remove(struct spi_device *spi) 1537static int ks8851_remove(struct spi_device *spi)
1538{ 1538{
1539 struct ks8851_net *priv = dev_get_drvdata(&spi->dev); 1539 struct ks8851_net *priv = dev_get_drvdata(&spi->dev);
1540 1540
@@ -1554,7 +1554,7 @@ static struct spi_driver ks8851_driver = {
1554 .owner = THIS_MODULE, 1554 .owner = THIS_MODULE,
1555 }, 1555 },
1556 .probe = ks8851_probe, 1556 .probe = ks8851_probe,
1557 .remove = __devexit_p(ks8851_remove), 1557 .remove = ks8851_remove,
1558 .suspend = ks8851_suspend, 1558 .suspend = ks8851_suspend,
1559 .resume = ks8851_resume, 1559 .resume = ks8851_resume,
1560}; 1560};
diff --git a/drivers/net/ethernet/micrel/ks8851_mll.c b/drivers/net/ethernet/micrel/ks8851_mll.c
index 38529edfe350..ef8f9f92e547 100644
--- a/drivers/net/ethernet/micrel/ks8851_mll.c
+++ b/drivers/net/ethernet/micrel/ks8851_mll.c
@@ -1506,7 +1506,7 @@ static int ks_hw_init(struct ks_net *ks)
1506} 1506}
1507 1507
1508 1508
1509static int __devinit ks8851_probe(struct platform_device *pdev) 1509static int ks8851_probe(struct platform_device *pdev)
1510{ 1510{
1511 int err = -ENOMEM; 1511 int err = -ENOMEM;
1512 struct resource *io_d, *io_c; 1512 struct resource *io_d, *io_c;
@@ -1641,7 +1641,7 @@ err_mem_region:
1641 return err; 1641 return err;
1642} 1642}
1643 1643
1644static int __devexit ks8851_remove(struct platform_device *pdev) 1644static int ks8851_remove(struct platform_device *pdev)
1645{ 1645{
1646 struct net_device *netdev = platform_get_drvdata(pdev); 1646 struct net_device *netdev = platform_get_drvdata(pdev);
1647 struct ks_net *ks = netdev_priv(netdev); 1647 struct ks_net *ks = netdev_priv(netdev);
@@ -1663,7 +1663,7 @@ static struct platform_driver ks8851_platform_driver = {
1663 .owner = THIS_MODULE, 1663 .owner = THIS_MODULE,
1664 }, 1664 },
1665 .probe = ks8851_probe, 1665 .probe = ks8851_probe,
1666 .remove = __devexit_p(ks8851_remove), 1666 .remove = ks8851_remove,
1667}; 1667};
1668 1668
1669module_platform_driver(ks8851_platform_driver); 1669module_platform_driver(ks8851_platform_driver);
diff --git a/drivers/net/ethernet/micrel/ksz884x.c b/drivers/net/ethernet/micrel/ksz884x.c
index d16ef24e622f..f3f09b18a707 100644
--- a/drivers/net/ethernet/micrel/ksz884x.c
+++ b/drivers/net/ethernet/micrel/ksz884x.c
@@ -1487,7 +1487,7 @@ struct dev_priv {
1487#define DRV_VERSION "1.0.0" 1487#define DRV_VERSION "1.0.0"
1488#define DRV_RELDATE "Feb 8, 2010" 1488#define DRV_RELDATE "Feb 8, 2010"
1489 1489
1490static char version[] __devinitdata = 1490static char version[] =
1491 "Micrel " DEVICE_NAME " " DRV_VERSION " (" DRV_RELDATE ")"; 1491 "Micrel " DEVICE_NAME " " DRV_VERSION " (" DRV_RELDATE ")";
1492 1492
1493static u8 DEFAULT_MAC_ADDRESS[] = { 0x00, 0x10, 0xA1, 0x88, 0x42, 0x01 }; 1493static u8 DEFAULT_MAC_ADDRESS[] = { 0x00, 0x10, 0xA1, 0x88, 0x42, 0x01 };
@@ -6919,7 +6919,7 @@ static void read_other_addr(struct ksz_hw *hw)
6919#define PCI_VENDOR_ID_MICREL_KS 0x16c6 6919#define PCI_VENDOR_ID_MICREL_KS 0x16c6
6920#endif 6920#endif
6921 6921
6922static int __devinit pcidev_init(struct pci_dev *pdev, 6922static int pcidev_init(struct pci_dev *pdev,
6923 const struct pci_device_id *id) 6923 const struct pci_device_id *id)
6924{ 6924{
6925 struct net_device *dev; 6925 struct net_device *dev;
diff --git a/drivers/net/ethernet/microchip/enc28j60.c b/drivers/net/ethernet/microchip/enc28j60.c
index 6118bdad244f..a99456c3dd87 100644
--- a/drivers/net/ethernet/microchip/enc28j60.c
+++ b/drivers/net/ethernet/microchip/enc28j60.c
@@ -1541,7 +1541,7 @@ static const struct net_device_ops enc28j60_netdev_ops = {
1541 .ndo_validate_addr = eth_validate_addr, 1541 .ndo_validate_addr = eth_validate_addr,
1542}; 1542};
1543 1543
1544static int __devinit enc28j60_probe(struct spi_device *spi) 1544static int enc28j60_probe(struct spi_device *spi)
1545{ 1545{
1546 struct net_device *dev; 1546 struct net_device *dev;
1547 struct enc28j60_net *priv; 1547 struct enc28j60_net *priv;
@@ -1617,7 +1617,7 @@ error_alloc:
1617 return ret; 1617 return ret;
1618} 1618}
1619 1619
1620static int __devexit enc28j60_remove(struct spi_device *spi) 1620static int enc28j60_remove(struct spi_device *spi)
1621{ 1621{
1622 struct enc28j60_net *priv = dev_get_drvdata(&spi->dev); 1622 struct enc28j60_net *priv = dev_get_drvdata(&spi->dev);
1623 1623
@@ -1637,7 +1637,7 @@ static struct spi_driver enc28j60_driver = {
1637 .owner = THIS_MODULE, 1637 .owner = THIS_MODULE,
1638 }, 1638 },
1639 .probe = enc28j60_probe, 1639 .probe = enc28j60_probe,
1640 .remove = __devexit_p(enc28j60_remove), 1640 .remove = enc28j60_remove,
1641}; 1641};
1642 1642
1643static int __init enc28j60_init(void) 1643static int __init enc28j60_init(void)
diff --git a/drivers/net/ethernet/natsemi/ibmlana.c b/drivers/net/ethernet/natsemi/ibmlana.c
index 3f94ddbf4dc0..923e640d604c 100644
--- a/drivers/net/ethernet/natsemi/ibmlana.c
+++ b/drivers/net/ethernet/natsemi/ibmlana.c
@@ -900,7 +900,7 @@ static short ibmlana_adapter_ids[] __initdata = {
900 0x0000 900 0x0000
901}; 901};
902 902
903static char *ibmlana_adapter_names[] __devinitdata = { 903static char *ibmlana_adapter_names[] = {
904 "IBM LAN Adapter/A", 904 "IBM LAN Adapter/A",
905 NULL 905 NULL
906}; 906};
@@ -916,7 +916,7 @@ static const struct net_device_ops ibmlana_netdev_ops = {
916 .ndo_validate_addr = eth_validate_addr, 916 .ndo_validate_addr = eth_validate_addr,
917}; 917};
918 918
919static int __devinit ibmlana_init_one(struct device *kdev) 919static int ibmlana_init_one(struct device *kdev)
920{ 920{
921 struct mca_device *mdev = to_mca_device(kdev); 921 struct mca_device *mdev = to_mca_device(kdev);
922 struct net_device *dev; 922 struct net_device *dev;
diff --git a/drivers/net/ethernet/natsemi/jazzsonic.c b/drivers/net/ethernet/natsemi/jazzsonic.c
index 95dd39ffb230..b0b361546365 100644
--- a/drivers/net/ethernet/natsemi/jazzsonic.c
+++ b/drivers/net/ethernet/natsemi/jazzsonic.c
@@ -117,7 +117,7 @@ static const struct net_device_ops sonic_netdev_ops = {
117 .ndo_set_mac_address = eth_mac_addr, 117 .ndo_set_mac_address = eth_mac_addr,
118}; 118};
119 119
120static int __devinit sonic_probe1(struct net_device *dev) 120static int sonic_probe1(struct net_device *dev)
121{ 121{
122 static unsigned version_printed; 122 static unsigned version_printed;
123 unsigned int silicon_revision; 123 unsigned int silicon_revision;
@@ -220,7 +220,7 @@ out:
220 * Probe for a SONIC ethernet controller on a Mips Jazz board. 220 * Probe for a SONIC ethernet controller on a Mips Jazz board.
221 * Actually probing is superfluous but we're paranoid. 221 * Actually probing is superfluous but we're paranoid.
222 */ 222 */
223static int __devinit jazz_sonic_probe(struct platform_device *pdev) 223static int jazz_sonic_probe(struct platform_device *pdev)
224{ 224{
225 struct net_device *dev; 225 struct net_device *dev;
226 struct sonic_local *lp; 226 struct sonic_local *lp;
@@ -270,7 +270,7 @@ MODULE_ALIAS("platform:jazzsonic");
270 270
271#include "sonic.c" 271#include "sonic.c"
272 272
273static int __devexit jazz_sonic_device_remove (struct platform_device *pdev) 273static int jazz_sonic_device_remove(struct platform_device *pdev)
274{ 274{
275 struct net_device *dev = platform_get_drvdata(pdev); 275 struct net_device *dev = platform_get_drvdata(pdev);
276 struct sonic_local* lp = netdev_priv(dev); 276 struct sonic_local* lp = netdev_priv(dev);
@@ -286,7 +286,7 @@ static int __devexit jazz_sonic_device_remove (struct platform_device *pdev)
286 286
287static struct platform_driver jazz_sonic_driver = { 287static struct platform_driver jazz_sonic_driver = {
288 .probe = jazz_sonic_probe, 288 .probe = jazz_sonic_probe,
289 .remove = __devexit_p(jazz_sonic_device_remove), 289 .remove = jazz_sonic_device_remove,
290 .driver = { 290 .driver = {
291 .name = jazz_sonic_string, 291 .name = jazz_sonic_string,
292 .owner = THIS_MODULE, 292 .owner = THIS_MODULE,
diff --git a/drivers/net/ethernet/natsemi/macsonic.c b/drivers/net/ethernet/natsemi/macsonic.c
index b9680ba5a325..eaddbb7c24ab 100644
--- a/drivers/net/ethernet/natsemi/macsonic.c
+++ b/drivers/net/ethernet/natsemi/macsonic.c
@@ -196,7 +196,7 @@ static const struct net_device_ops macsonic_netdev_ops = {
196 .ndo_set_mac_address = eth_mac_addr, 196 .ndo_set_mac_address = eth_mac_addr,
197}; 197};
198 198
199static int __devinit macsonic_init(struct net_device *dev) 199static int macsonic_init(struct net_device *dev)
200{ 200{
201 struct sonic_local* lp = netdev_priv(dev); 201 struct sonic_local* lp = netdev_priv(dev);
202 202
@@ -245,7 +245,7 @@ static int __devinit macsonic_init(struct net_device *dev)
245 memcmp(mac, "\x00\x80\x19", 3) && \ 245 memcmp(mac, "\x00\x80\x19", 3) && \
246 memcmp(mac, "\x00\x05\x02", 3)) 246 memcmp(mac, "\x00\x05\x02", 3))
247 247
248static void __devinit mac_onboard_sonic_ethernet_addr(struct net_device *dev) 248static void mac_onboard_sonic_ethernet_addr(struct net_device *dev)
249{ 249{
250 struct sonic_local *lp = netdev_priv(dev); 250 struct sonic_local *lp = netdev_priv(dev);
251 const int prom_addr = ONBOARD_SONIC_PROM_BASE; 251 const int prom_addr = ONBOARD_SONIC_PROM_BASE;
@@ -309,7 +309,7 @@ static void __devinit mac_onboard_sonic_ethernet_addr(struct net_device *dev)
309 eth_hw_addr_random(dev); 309 eth_hw_addr_random(dev);
310} 310}
311 311
312static int __devinit mac_onboard_sonic_probe(struct net_device *dev) 312static int mac_onboard_sonic_probe(struct net_device *dev)
313{ 313{
314 struct sonic_local* lp = netdev_priv(dev); 314 struct sonic_local* lp = netdev_priv(dev);
315 int sr; 315 int sr;
@@ -420,7 +420,7 @@ static int __devinit mac_onboard_sonic_probe(struct net_device *dev)
420 return macsonic_init(dev); 420 return macsonic_init(dev);
421} 421}
422 422
423static int __devinit mac_nubus_sonic_ethernet_addr(struct net_device *dev, 423static int mac_nubus_sonic_ethernet_addr(struct net_device *dev,
424 unsigned long prom_addr, 424 unsigned long prom_addr,
425 int id) 425 int id)
426{ 426{
@@ -435,7 +435,7 @@ static int __devinit mac_nubus_sonic_ethernet_addr(struct net_device *dev,
435 return 0; 435 return 0;
436} 436}
437 437
438static int __devinit macsonic_ident(struct nubus_dev *ndev) 438static int macsonic_ident(struct nubus_dev *ndev)
439{ 439{
440 if (ndev->dr_hw == NUBUS_DRHW_ASANTE_LC && 440 if (ndev->dr_hw == NUBUS_DRHW_ASANTE_LC &&
441 ndev->dr_sw == NUBUS_DRSW_SONIC_LC) 441 ndev->dr_sw == NUBUS_DRSW_SONIC_LC)
@@ -460,7 +460,7 @@ static int __devinit macsonic_ident(struct nubus_dev *ndev)
460 return -1; 460 return -1;
461} 461}
462 462
463static int __devinit mac_nubus_sonic_probe(struct net_device *dev) 463static int mac_nubus_sonic_probe(struct net_device *dev)
464{ 464{
465 static int slots; 465 static int slots;
466 struct nubus_dev* ndev = NULL; 466 struct nubus_dev* ndev = NULL;
@@ -573,7 +573,7 @@ static int __devinit mac_nubus_sonic_probe(struct net_device *dev)
573 return macsonic_init(dev); 573 return macsonic_init(dev);
574} 574}
575 575
576static int __devinit mac_sonic_probe(struct platform_device *pdev) 576static int mac_sonic_probe(struct platform_device *pdev)
577{ 577{
578 struct net_device *dev; 578 struct net_device *dev;
579 struct sonic_local *lp; 579 struct sonic_local *lp;
@@ -619,7 +619,7 @@ MODULE_ALIAS("platform:macsonic");
619 619
620#include "sonic.c" 620#include "sonic.c"
621 621
622static int __devexit mac_sonic_device_remove (struct platform_device *pdev) 622static int mac_sonic_device_remove(struct platform_device *pdev)
623{ 623{
624 struct net_device *dev = platform_get_drvdata(pdev); 624 struct net_device *dev = platform_get_drvdata(pdev);
625 struct sonic_local* lp = netdev_priv(dev); 625 struct sonic_local* lp = netdev_priv(dev);
@@ -634,7 +634,7 @@ static int __devexit mac_sonic_device_remove (struct platform_device *pdev)
634 634
635static struct platform_driver mac_sonic_driver = { 635static struct platform_driver mac_sonic_driver = {
636 .probe = mac_sonic_probe, 636 .probe = mac_sonic_probe,
637 .remove = __devexit_p(mac_sonic_device_remove), 637 .remove = mac_sonic_device_remove,
638 .driver = { 638 .driver = {
639 .name = mac_sonic_string, 639 .name = mac_sonic_string,
640 .owner = THIS_MODULE, 640 .owner = THIS_MODULE,
diff --git a/drivers/net/ethernet/natsemi/natsemi.c b/drivers/net/ethernet/natsemi/natsemi.c
index dbaaa99a0d43..77f7cd37ad30 100644
--- a/drivers/net/ethernet/natsemi/natsemi.c
+++ b/drivers/net/ethernet/natsemi/natsemi.c
@@ -127,7 +127,7 @@ static int full_duplex[MAX_UNITS];
127#define NATSEMI_RX_LIMIT 2046 /* maximum supported by hardware */ 127#define NATSEMI_RX_LIMIT 2046 /* maximum supported by hardware */
128 128
129/* These identify the driver base version and may not be removed. */ 129/* These identify the driver base version and may not be removed. */
130static const char version[] __devinitconst = 130static const char version[] =
131 KERN_INFO DRV_NAME " dp8381x driver, version " 131 KERN_INFO DRV_NAME " dp8381x driver, version "
132 DRV_VERSION ", " DRV_RELDATE "\n" 132 DRV_VERSION ", " DRV_RELDATE "\n"
133 " originally by Donald Becker <becker@scyld.com>\n" 133 " originally by Donald Becker <becker@scyld.com>\n"
@@ -242,7 +242,7 @@ static struct {
242 const char *name; 242 const char *name;
243 unsigned long flags; 243 unsigned long flags;
244 unsigned int eeprom_size; 244 unsigned int eeprom_size;
245} natsemi_pci_info[] __devinitdata = { 245} natsemi_pci_info[] = {
246 { "Aculab E1/T1 PMXc cPCI carrier card", NATSEMI_FLAG_IGNORE_PHY, 128 }, 246 { "Aculab E1/T1 PMXc cPCI carrier card", NATSEMI_FLAG_IGNORE_PHY, 128 },
247 { "NatSemi DP8381[56]", 0, 24 }, 247 { "NatSemi DP8381[56]", 0, 24 },
248}; 248};
@@ -742,7 +742,7 @@ static void move_int_phy(struct net_device *dev, int addr)
742 udelay(1); 742 udelay(1);
743} 743}
744 744
745static void __devinit natsemi_init_media (struct net_device *dev) 745static void natsemi_init_media(struct net_device *dev)
746{ 746{
747 struct netdev_private *np = netdev_priv(dev); 747 struct netdev_private *np = netdev_priv(dev);
748 u32 tmp; 748 u32 tmp;
@@ -797,8 +797,8 @@ static const struct net_device_ops natsemi_netdev_ops = {
797#endif 797#endif
798}; 798};
799 799
800static int __devinit natsemi_probe1 (struct pci_dev *pdev, 800static int natsemi_probe1(struct pci_dev *pdev,
801 const struct pci_device_id *ent) 801 const struct pci_device_id *ent)
802{ 802{
803 struct net_device *dev; 803 struct net_device *dev;
804 struct netdev_private *np; 804 struct netdev_private *np;
@@ -3214,7 +3214,7 @@ static int netdev_close(struct net_device *dev)
3214} 3214}
3215 3215
3216 3216
3217static void __devexit natsemi_remove1 (struct pci_dev *pdev) 3217static void natsemi_remove1(struct pci_dev *pdev)
3218{ 3218{
3219 struct net_device *dev = pci_get_drvdata(pdev); 3219 struct net_device *dev = pci_get_drvdata(pdev);
3220 void __iomem * ioaddr = ns_ioaddr(dev); 3220 void __iomem * ioaddr = ns_ioaddr(dev);
@@ -3353,7 +3353,7 @@ static struct pci_driver natsemi_driver = {
3353 .name = DRV_NAME, 3353 .name = DRV_NAME,
3354 .id_table = natsemi_pci_tbl, 3354 .id_table = natsemi_pci_tbl,
3355 .probe = natsemi_probe1, 3355 .probe = natsemi_probe1,
3356 .remove = __devexit_p(natsemi_remove1), 3356 .remove = natsemi_remove1,
3357#ifdef CONFIG_PM 3357#ifdef CONFIG_PM
3358 .suspend = natsemi_suspend, 3358 .suspend = natsemi_suspend,
3359 .resume = natsemi_resume, 3359 .resume = natsemi_resume,
diff --git a/drivers/net/ethernet/natsemi/ns83820.c b/drivers/net/ethernet/natsemi/ns83820.c
index d52728b3c436..0281755200a7 100644
--- a/drivers/net/ethernet/natsemi/ns83820.c
+++ b/drivers/net/ethernet/natsemi/ns83820.c
@@ -1941,7 +1941,7 @@ static const struct net_device_ops netdev_ops = {
1941 .ndo_tx_timeout = ns83820_tx_timeout, 1941 .ndo_tx_timeout = ns83820_tx_timeout,
1942}; 1942};
1943 1943
1944static int __devinit ns83820_init_one(struct pci_dev *pci_dev, 1944static int ns83820_init_one(struct pci_dev *pci_dev,
1945 const struct pci_device_id *id) 1945 const struct pci_device_id *id)
1946{ 1946{
1947 struct net_device *ndev; 1947 struct net_device *ndev;
@@ -2241,7 +2241,7 @@ out:
2241 return err; 2241 return err;
2242} 2242}
2243 2243
2244static void __devexit ns83820_remove_one(struct pci_dev *pci_dev) 2244static void ns83820_remove_one(struct pci_dev *pci_dev)
2245{ 2245{
2246 struct net_device *ndev = pci_get_drvdata(pci_dev); 2246 struct net_device *ndev = pci_get_drvdata(pci_dev);
2247 struct ns83820 *dev = PRIV(ndev); /* ok even if NULL */ 2247 struct ns83820 *dev = PRIV(ndev); /* ok even if NULL */
@@ -2272,7 +2272,7 @@ static struct pci_driver driver = {
2272 .name = "ns83820", 2272 .name = "ns83820",
2273 .id_table = ns83820_pci_tbl, 2273 .id_table = ns83820_pci_tbl,
2274 .probe = ns83820_init_one, 2274 .probe = ns83820_init_one,
2275 .remove = __devexit_p(ns83820_remove_one), 2275 .remove = ns83820_remove_one,
2276#if 0 /* FIXME: implement */ 2276#if 0 /* FIXME: implement */
2277 .suspend = , 2277 .suspend = ,
2278 .resume = , 2278 .resume = ,
diff --git a/drivers/net/ethernet/natsemi/xtsonic.c b/drivers/net/ethernet/natsemi/xtsonic.c
index 7dfe88398d7d..5e4748e855f6 100644
--- a/drivers/net/ethernet/natsemi/xtsonic.c
+++ b/drivers/net/ethernet/natsemi/xtsonic.c
@@ -249,7 +249,7 @@ out:
249 * Actually probing is superfluous but we're paranoid. 249 * Actually probing is superfluous but we're paranoid.
250 */ 250 */
251 251
252int __devinit xtsonic_probe(struct platform_device *pdev) 252int xtsonic_probe(struct platform_device *pdev)
253{ 253{
254 struct net_device *dev; 254 struct net_device *dev;
255 struct sonic_local *lp; 255 struct sonic_local *lp;
@@ -297,7 +297,7 @@ MODULE_PARM_DESC(sonic_debug, "xtsonic debug level (1-4)");
297 297
298#include "sonic.c" 298#include "sonic.c"
299 299
300static int __devexit xtsonic_device_remove (struct platform_device *pdev) 300static int xtsonic_device_remove(struct platform_device *pdev)
301{ 301{
302 struct net_device *dev = platform_get_drvdata(pdev); 302 struct net_device *dev = platform_get_drvdata(pdev);
303 struct sonic_local *lp = netdev_priv(dev); 303 struct sonic_local *lp = netdev_priv(dev);
@@ -314,7 +314,7 @@ static int __devexit xtsonic_device_remove (struct platform_device *pdev)
314 314
315static struct platform_driver xtsonic_driver = { 315static struct platform_driver xtsonic_driver = {
316 .probe = xtsonic_probe, 316 .probe = xtsonic_probe,
317 .remove = __devexit_p(xtsonic_device_remove), 317 .remove = xtsonic_device_remove,
318 .driver = { 318 .driver = {
319 .name = xtsonic_string, 319 .name = xtsonic_string,
320 }, 320 },
diff --git a/drivers/net/ethernet/neterion/s2io.c b/drivers/net/ethernet/neterion/s2io.c
index c98decb19ce8..3a010e356661 100644
--- a/drivers/net/ethernet/neterion/s2io.c
+++ b/drivers/net/ethernet/neterion/s2io.c
@@ -494,7 +494,7 @@ static struct pci_driver s2io_driver = {
494 .name = "S2IO", 494 .name = "S2IO",
495 .id_table = s2io_tbl, 495 .id_table = s2io_tbl,
496 .probe = s2io_init_nic, 496 .probe = s2io_init_nic,
497 .remove = __devexit_p(s2io_rem_nic), 497 .remove = s2io_rem_nic,
498 .err_handler = &s2io_err_handler, 498 .err_handler = &s2io_err_handler,
499}; 499};
500 500
@@ -7702,7 +7702,7 @@ static const struct net_device_ops s2io_netdev_ops = {
7702 * returns 0 on success and negative on failure. 7702 * returns 0 on success and negative on failure.
7703 */ 7703 */
7704 7704
7705static int __devinit 7705static int
7706s2io_init_nic(struct pci_dev *pdev, const struct pci_device_id *pre) 7706s2io_init_nic(struct pci_dev *pdev, const struct pci_device_id *pre)
7707{ 7707{
7708 struct s2io_nic *sp; 7708 struct s2io_nic *sp;
@@ -8200,7 +8200,7 @@ mem_alloc_failed:
8200 * from memory. 8200 * from memory.
8201 */ 8201 */
8202 8202
8203static void __devexit s2io_rem_nic(struct pci_dev *pdev) 8203static void s2io_rem_nic(struct pci_dev *pdev)
8204{ 8204{
8205 struct net_device *dev = pci_get_drvdata(pdev); 8205 struct net_device *dev = pci_get_drvdata(pdev);
8206 struct s2io_nic *sp; 8206 struct s2io_nic *sp;
diff --git a/drivers/net/ethernet/neterion/s2io.h b/drivers/net/ethernet/neterion/s2io.h
index d5596926a1ef..032f9b6d850d 100644
--- a/drivers/net/ethernet/neterion/s2io.h
+++ b/drivers/net/ethernet/neterion/s2io.h
@@ -1075,9 +1075,9 @@ static inline void SPECIAL_REG_WRITE(u64 val, void __iomem *addr, int order)
1075/* 1075/*
1076 * Prototype declaration. 1076 * Prototype declaration.
1077 */ 1077 */
1078static int __devinit s2io_init_nic(struct pci_dev *pdev, 1078static int s2io_init_nic(struct pci_dev *pdev,
1079 const struct pci_device_id *pre); 1079 const struct pci_device_id *pre);
1080static void __devexit s2io_rem_nic(struct pci_dev *pdev); 1080static void s2io_rem_nic(struct pci_dev *pdev);
1081static int init_shared_mem(struct s2io_nic *sp); 1081static int init_shared_mem(struct s2io_nic *sp);
1082static void free_shared_mem(struct s2io_nic *sp); 1082static void free_shared_mem(struct s2io_nic *sp);
1083static int init_nic(struct s2io_nic *nic); 1083static int init_nic(struct s2io_nic *nic);
diff --git a/drivers/net/ethernet/neterion/vxge/vxge-config.c b/drivers/net/ethernet/neterion/vxge/vxge-config.c
index c2e420a84d22..fbe5363cb89c 100644
--- a/drivers/net/ethernet/neterion/vxge/vxge-config.c
+++ b/drivers/net/ethernet/neterion/vxge/vxge-config.c
@@ -993,7 +993,7 @@ exit:
993 * for the driver, FW version information, and the first mac address for 993 * for the driver, FW version information, and the first mac address for
994 * each vpath 994 * each vpath
995 */ 995 */
996enum vxge_hw_status __devinit 996enum vxge_hw_status
997vxge_hw_device_hw_info_get(void __iomem *bar0, 997vxge_hw_device_hw_info_get(void __iomem *bar0,
998 struct vxge_hw_device_hw_info *hw_info) 998 struct vxge_hw_device_hw_info *hw_info)
999{ 999{
@@ -1310,7 +1310,7 @@ __vxge_hw_device_config_check(struct vxge_hw_device_config *new_config)
1310 * When done, the driver allocates sizeof(struct __vxge_hw_device) bytes for HW 1310 * When done, the driver allocates sizeof(struct __vxge_hw_device) bytes for HW
1311 * to enable the latter to perform Titan hardware initialization. 1311 * to enable the latter to perform Titan hardware initialization.
1312 */ 1312 */
1313enum vxge_hw_status __devinit 1313enum vxge_hw_status
1314vxge_hw_device_initialize( 1314vxge_hw_device_initialize(
1315 struct __vxge_hw_device **devh, 1315 struct __vxge_hw_device **devh,
1316 struct vxge_hw_device_attr *attr, 1316 struct vxge_hw_device_attr *attr,
@@ -2917,7 +2917,7 @@ exit:
2917 * vxge_hw_device_config_default_get - Initialize device config with defaults. 2917 * vxge_hw_device_config_default_get - Initialize device config with defaults.
2918 * Initialize Titan device config with default values. 2918 * Initialize Titan device config with default values.
2919 */ 2919 */
2920enum vxge_hw_status __devinit 2920enum vxge_hw_status
2921vxge_hw_device_config_default_get(struct vxge_hw_device_config *device_config) 2921vxge_hw_device_config_default_get(struct vxge_hw_device_config *device_config)
2922{ 2922{
2923 u32 i; 2923 u32 i;
diff --git a/drivers/net/ethernet/neterion/vxge/vxge-config.h b/drivers/net/ethernet/neterion/vxge/vxge-config.h
index 9e0c1eed5dc5..6ce4412fcc1a 100644
--- a/drivers/net/ethernet/neterion/vxge/vxge-config.h
+++ b/drivers/net/ethernet/neterion/vxge/vxge-config.h
@@ -1846,11 +1846,11 @@ struct vxge_hw_vpath_attr {
1846 struct vxge_hw_fifo_attr fifo_attr; 1846 struct vxge_hw_fifo_attr fifo_attr;
1847}; 1847};
1848 1848
1849enum vxge_hw_status __devinit vxge_hw_device_hw_info_get( 1849enum vxge_hw_status vxge_hw_device_hw_info_get(
1850 void __iomem *bar0, 1850 void __iomem *bar0,
1851 struct vxge_hw_device_hw_info *hw_info); 1851 struct vxge_hw_device_hw_info *hw_info);
1852 1852
1853enum vxge_hw_status __devinit vxge_hw_device_config_default_get( 1853enum vxge_hw_status vxge_hw_device_config_default_get(
1854 struct vxge_hw_device_config *device_config); 1854 struct vxge_hw_device_config *device_config);
1855 1855
1856/** 1856/**
@@ -1877,7 +1877,7 @@ u16 vxge_hw_device_link_width_get(struct __vxge_hw_device *devh);
1877const u8 * 1877const u8 *
1878vxge_hw_device_product_name_get(struct __vxge_hw_device *devh); 1878vxge_hw_device_product_name_get(struct __vxge_hw_device *devh);
1879 1879
1880enum vxge_hw_status __devinit vxge_hw_device_initialize( 1880enum vxge_hw_status vxge_hw_device_initialize(
1881 struct __vxge_hw_device **devh, 1881 struct __vxge_hw_device **devh,
1882 struct vxge_hw_device_attr *attr, 1882 struct vxge_hw_device_attr *attr,
1883 struct vxge_hw_device_config *device_config); 1883 struct vxge_hw_device_config *device_config);
diff --git a/drivers/net/ethernet/neterion/vxge/vxge-main.c b/drivers/net/ethernet/neterion/vxge/vxge-main.c
index 3e5b7509502c..bb5770fc6503 100644
--- a/drivers/net/ethernet/neterion/vxge/vxge-main.c
+++ b/drivers/net/ethernet/neterion/vxge/vxge-main.c
@@ -3371,7 +3371,7 @@ static const struct net_device_ops vxge_netdev_ops = {
3371#endif 3371#endif
3372}; 3372};
3373 3373
3374static int __devinit vxge_device_register(struct __vxge_hw_device *hldev, 3374static int vxge_device_register(struct __vxge_hw_device *hldev,
3375 struct vxge_config *config, 3375 struct vxge_config *config,
3376 int high_dma, int no_of_vpath, 3376 int high_dma, int no_of_vpath,
3377 struct vxgedev **vdev_out) 3377 struct vxgedev **vdev_out)
@@ -3672,7 +3672,7 @@ static void verify_bandwidth(void)
3672/* 3672/*
3673 * Vpath configuration 3673 * Vpath configuration
3674 */ 3674 */
3675static int __devinit vxge_config_vpaths( 3675static int vxge_config_vpaths(
3676 struct vxge_hw_device_config *device_config, 3676 struct vxge_hw_device_config *device_config,
3677 u64 vpath_mask, struct vxge_config *config_param) 3677 u64 vpath_mask, struct vxge_config *config_param)
3678{ 3678{
@@ -3859,7 +3859,7 @@ static int __devinit vxge_config_vpaths(
3859} 3859}
3860 3860
3861/* initialize device configuratrions */ 3861/* initialize device configuratrions */
3862static void __devinit vxge_device_config_init( 3862static void vxge_device_config_init(
3863 struct vxge_hw_device_config *device_config, 3863 struct vxge_hw_device_config *device_config,
3864 int *intr_type) 3864 int *intr_type)
3865{ 3865{
@@ -3912,7 +3912,7 @@ static void __devinit vxge_device_config_init(
3912 device_config->rth_it_type); 3912 device_config->rth_it_type);
3913} 3913}
3914 3914
3915static void __devinit vxge_print_parm(struct vxgedev *vdev, u64 vpath_mask) 3915static void vxge_print_parm(struct vxgedev *vdev, u64 vpath_mask)
3916{ 3916{
3917 int i; 3917 int i;
3918 3918
@@ -4269,7 +4269,7 @@ static int vxge_probe_fw_update(struct vxgedev *vdev)
4269 return ret; 4269 return ret;
4270} 4270}
4271 4271
4272static int __devinit is_sriov_initialized(struct pci_dev *pdev) 4272static int is_sriov_initialized(struct pci_dev *pdev)
4273{ 4273{
4274 int pos; 4274 int pos;
4275 u16 ctrl; 4275 u16 ctrl;
@@ -4300,7 +4300,7 @@ static const struct vxge_hw_uld_cbs vxge_callbacks = {
4300 * returns 0 on success and negative on failure. 4300 * returns 0 on success and negative on failure.
4301 * 4301 *
4302 */ 4302 */
4303static int __devinit 4303static int
4304vxge_probe(struct pci_dev *pdev, const struct pci_device_id *pre) 4304vxge_probe(struct pci_dev *pdev, const struct pci_device_id *pre)
4305{ 4305{
4306 struct __vxge_hw_device *hldev; 4306 struct __vxge_hw_device *hldev;
@@ -4764,7 +4764,7 @@ _exit0:
4764 * Description: This function is called by the Pci subsystem to release a 4764 * Description: This function is called by the Pci subsystem to release a
4765 * PCI device and free up all resource held up by the device. 4765 * PCI device and free up all resource held up by the device.
4766 */ 4766 */
4767static void __devexit vxge_remove(struct pci_dev *pdev) 4767static void vxge_remove(struct pci_dev *pdev)
4768{ 4768{
4769 struct __vxge_hw_device *hldev; 4769 struct __vxge_hw_device *hldev;
4770 struct vxgedev *vdev; 4770 struct vxgedev *vdev;
@@ -4809,7 +4809,7 @@ static struct pci_driver vxge_driver = {
4809 .name = VXGE_DRIVER_NAME, 4809 .name = VXGE_DRIVER_NAME,
4810 .id_table = vxge_id_table, 4810 .id_table = vxge_id_table,
4811 .probe = vxge_probe, 4811 .probe = vxge_probe,
4812 .remove = __devexit_p(vxge_remove), 4812 .remove = vxge_remove,
4813#ifdef CONFIG_PM 4813#ifdef CONFIG_PM
4814 .suspend = vxge_pm_suspend, 4814 .suspend = vxge_pm_suspend,
4815 .resume = vxge_pm_resume, 4815 .resume = vxge_pm_resume,
diff --git a/drivers/net/ethernet/nuvoton/w90p910_ether.c b/drivers/net/ethernet/nuvoton/w90p910_ether.c
index 6893a65ae55f..cbd6a529d0c0 100644
--- a/drivers/net/ethernet/nuvoton/w90p910_ether.c
+++ b/drivers/net/ethernet/nuvoton/w90p910_ether.c
@@ -978,7 +978,7 @@ static int w90p910_ether_setup(struct net_device *dev)
978 return 0; 978 return 0;
979} 979}
980 980
981static int __devinit w90p910_ether_probe(struct platform_device *pdev) 981static int w90p910_ether_probe(struct platform_device *pdev)
982{ 982{
983 struct w90p910_ether *ether; 983 struct w90p910_ether *ether;
984 struct net_device *dev; 984 struct net_device *dev;
@@ -1071,7 +1071,7 @@ failed_free:
1071 return error; 1071 return error;
1072} 1072}
1073 1073
1074static int __devexit w90p910_ether_remove(struct platform_device *pdev) 1074static int w90p910_ether_remove(struct platform_device *pdev)
1075{ 1075{
1076 struct net_device *dev = platform_get_drvdata(pdev); 1076 struct net_device *dev = platform_get_drvdata(pdev);
1077 struct w90p910_ether *ether = netdev_priv(dev); 1077 struct w90p910_ether *ether = netdev_priv(dev);
@@ -1096,7 +1096,7 @@ static int __devexit w90p910_ether_remove(struct platform_device *pdev)
1096 1096
1097static struct platform_driver w90p910_ether_driver = { 1097static struct platform_driver w90p910_ether_driver = {
1098 .probe = w90p910_ether_probe, 1098 .probe = w90p910_ether_probe,
1099 .remove = __devexit_p(w90p910_ether_remove), 1099 .remove = w90p910_ether_remove,
1100 .driver = { 1100 .driver = {
1101 .name = "nuc900-emc", 1101 .name = "nuc900-emc",
1102 .owner = THIS_MODULE, 1102 .owner = THIS_MODULE,
diff --git a/drivers/net/ethernet/nvidia/forcedeth.c b/drivers/net/ethernet/nvidia/forcedeth.c
index 876beceaf2d7..653487dc7b52 100644
--- a/drivers/net/ethernet/nvidia/forcedeth.c
+++ b/drivers/net/ethernet/nvidia/forcedeth.c
@@ -5520,7 +5520,7 @@ static const struct net_device_ops nv_netdev_ops_optimized = {
5520#endif 5520#endif
5521}; 5521};
5522 5522
5523static int __devinit nv_probe(struct pci_dev *pci_dev, const struct pci_device_id *id) 5523static int nv_probe(struct pci_dev *pci_dev, const struct pci_device_id *id)
5524{ 5524{
5525 struct net_device *dev; 5525 struct net_device *dev;
5526 struct fe_priv *np; 5526 struct fe_priv *np;
@@ -5995,7 +5995,7 @@ static void nv_restore_mac_addr(struct pci_dev *pci_dev)
5995 base + NvRegTransmitPoll); 5995 base + NvRegTransmitPoll);
5996} 5996}
5997 5997
5998static void __devexit nv_remove(struct pci_dev *pci_dev) 5998static void nv_remove(struct pci_dev *pci_dev)
5999{ 5999{
6000 struct net_device *dev = pci_get_drvdata(pci_dev); 6000 struct net_device *dev = pci_get_drvdata(pci_dev);
6001 6001
@@ -6271,7 +6271,7 @@ static struct pci_driver driver = {
6271 .name = DRV_NAME, 6271 .name = DRV_NAME,
6272 .id_table = pci_tbl, 6272 .id_table = pci_tbl,
6273 .probe = nv_probe, 6273 .probe = nv_probe,
6274 .remove = __devexit_p(nv_remove), 6274 .remove = nv_remove,
6275 .shutdown = nv_shutdown, 6275 .shutdown = nv_shutdown,
6276 .driver.pm = NV_PM_OPS, 6276 .driver.pm = NV_PM_OPS,
6277}; 6277};
diff --git a/drivers/net/ethernet/nxp/lpc_eth.c b/drivers/net/ethernet/nxp/lpc_eth.c
index db6e1019be18..3466ca1e8f6c 100644
--- a/drivers/net/ethernet/nxp/lpc_eth.c
+++ b/drivers/net/ethernet/nxp/lpc_eth.c
@@ -1595,7 +1595,7 @@ MODULE_DEVICE_TABLE(of, lpc_eth_match);
1595 1595
1596static struct platform_driver lpc_eth_driver = { 1596static struct platform_driver lpc_eth_driver = {
1597 .probe = lpc_eth_drv_probe, 1597 .probe = lpc_eth_drv_probe,
1598 .remove = __devexit_p(lpc_eth_drv_remove), 1598 .remove = lpc_eth_drv_remove,
1599#ifdef CONFIG_PM 1599#ifdef CONFIG_PM
1600 .suspend = lpc_eth_drv_suspend, 1600 .suspend = lpc_eth_drv_suspend,
1601 .resume = lpc_eth_drv_resume, 1601 .resume = lpc_eth_drv_resume,
diff --git a/drivers/net/ethernet/octeon/octeon_mgmt.c b/drivers/net/ethernet/octeon/octeon_mgmt.c
index f97719c48516..b5499198e029 100644
--- a/drivers/net/ethernet/octeon/octeon_mgmt.c
+++ b/drivers/net/ethernet/octeon/octeon_mgmt.c
@@ -1419,7 +1419,7 @@ static const struct net_device_ops octeon_mgmt_ops = {
1419#endif 1419#endif
1420}; 1420};
1421 1421
1422static int __devinit octeon_mgmt_probe(struct platform_device *pdev) 1422static int octeon_mgmt_probe(struct platform_device *pdev)
1423{ 1423{
1424 struct net_device *netdev; 1424 struct net_device *netdev;
1425 struct octeon_mgmt *p; 1425 struct octeon_mgmt *p;
@@ -1559,7 +1559,7 @@ err:
1559 return result; 1559 return result;
1560} 1560}
1561 1561
1562static int __devexit octeon_mgmt_remove(struct platform_device *pdev) 1562static int octeon_mgmt_remove(struct platform_device *pdev)
1563{ 1563{
1564 struct net_device *netdev = dev_get_drvdata(&pdev->dev); 1564 struct net_device *netdev = dev_get_drvdata(&pdev->dev);
1565 1565
@@ -1583,7 +1583,7 @@ static struct platform_driver octeon_mgmt_driver = {
1583 .of_match_table = octeon_mgmt_match, 1583 .of_match_table = octeon_mgmt_match,
1584 }, 1584 },
1585 .probe = octeon_mgmt_probe, 1585 .probe = octeon_mgmt_probe,
1586 .remove = __devexit_p(octeon_mgmt_remove), 1586 .remove = octeon_mgmt_remove,
1587}; 1587};
1588 1588
1589extern void octeon_mdiobus_force_mod_depencency(void); 1589extern void octeon_mdiobus_force_mod_depencency(void);
diff --git a/drivers/net/ethernet/packetengines/hamachi.c b/drivers/net/ethernet/packetengines/hamachi.c
index c2367158350e..bf829ee30077 100644
--- a/drivers/net/ethernet/packetengines/hamachi.c
+++ b/drivers/net/ethernet/packetengines/hamachi.c
@@ -166,7 +166,7 @@ static int tx_params[MAX_UNITS] = {-1, -1, -1, -1, -1, -1, -1, -1};
166#include <asm/unaligned.h> 166#include <asm/unaligned.h>
167#include <asm/cache.h> 167#include <asm/cache.h>
168 168
169static const char version[] __devinitconst = 169static const char version[] =
170KERN_INFO DRV_NAME ".c:v" DRV_VERSION " " DRV_RELDATE " Written by Donald Becker\n" 170KERN_INFO DRV_NAME ".c:v" DRV_VERSION " " DRV_RELDATE " Written by Donald Becker\n"
171" Some modifications by Eric kasten <kasten@nscl.msu.edu>\n" 171" Some modifications by Eric kasten <kasten@nscl.msu.edu>\n"
172" Further modifications by Keith Underwood <keithu@parl.clemson.edu>\n"; 172" Further modifications by Keith Underwood <keithu@parl.clemson.edu>\n";
@@ -576,8 +576,8 @@ static const struct net_device_ops hamachi_netdev_ops = {
576}; 576};
577 577
578 578
579static int __devinit hamachi_init_one (struct pci_dev *pdev, 579static int hamachi_init_one(struct pci_dev *pdev,
580 const struct pci_device_id *ent) 580 const struct pci_device_id *ent)
581{ 581{
582 struct hamachi_private *hmp; 582 struct hamachi_private *hmp;
583 int option, i, rx_int_var, tx_int_var, boguscnt; 583 int option, i, rx_int_var, tx_int_var, boguscnt;
@@ -791,7 +791,7 @@ err_out:
791 return ret; 791 return ret;
792} 792}
793 793
794static int __devinit read_eeprom(void __iomem *ioaddr, int location) 794static int read_eeprom(void __iomem *ioaddr, int location)
795{ 795{
796 int bogus_cnt = 1000; 796 int bogus_cnt = 1000;
797 797
@@ -1894,7 +1894,7 @@ static int netdev_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
1894} 1894}
1895 1895
1896 1896
1897static void __devexit hamachi_remove_one (struct pci_dev *pdev) 1897static void hamachi_remove_one(struct pci_dev *pdev)
1898{ 1898{
1899 struct net_device *dev = pci_get_drvdata(pdev); 1899 struct net_device *dev = pci_get_drvdata(pdev);
1900 1900
@@ -1923,7 +1923,7 @@ static struct pci_driver hamachi_driver = {
1923 .name = DRV_NAME, 1923 .name = DRV_NAME,
1924 .id_table = hamachi_pci_tbl, 1924 .id_table = hamachi_pci_tbl,
1925 .probe = hamachi_init_one, 1925 .probe = hamachi_init_one,
1926 .remove = __devexit_p(hamachi_remove_one), 1926 .remove = hamachi_remove_one,
1927}; 1927};
1928 1928
1929static int __init hamachi_init (void) 1929static int __init hamachi_init (void)
diff --git a/drivers/net/ethernet/packetengines/yellowfin.c b/drivers/net/ethernet/packetengines/yellowfin.c
index 04e622fd468d..2800c449de4e 100644
--- a/drivers/net/ethernet/packetengines/yellowfin.c
+++ b/drivers/net/ethernet/packetengines/yellowfin.c
@@ -106,7 +106,7 @@ static int gx_fix;
106#include <asm/io.h> 106#include <asm/io.h>
107 107
108/* These identify the driver base version and may not be removed. */ 108/* These identify the driver base version and may not be removed. */
109static const char version[] __devinitconst = 109static const char version[] =
110 KERN_INFO DRV_NAME ".c:v1.05 1/09/2001 Written by Donald Becker <becker@scyld.com>\n" 110 KERN_INFO DRV_NAME ".c:v1.05 1/09/2001 Written by Donald Becker <becker@scyld.com>\n"
111 " (unofficial 2.4.x port, " DRV_VERSION ", " DRV_RELDATE ")\n"; 111 " (unofficial 2.4.x port, " DRV_VERSION ", " DRV_RELDATE ")\n";
112 112
@@ -367,7 +367,7 @@ static const struct net_device_ops netdev_ops = {
367 .ndo_tx_timeout = yellowfin_tx_timeout, 367 .ndo_tx_timeout = yellowfin_tx_timeout,
368}; 368};
369 369
370static int __devinit yellowfin_init_one(struct pci_dev *pdev, 370static int yellowfin_init_one(struct pci_dev *pdev,
371 const struct pci_device_id *ent) 371 const struct pci_device_id *ent)
372{ 372{
373 struct net_device *dev; 373 struct net_device *dev;
@@ -522,7 +522,7 @@ err_out_free_netdev:
522 return -ENODEV; 522 return -ENODEV;
523} 523}
524 524
525static int __devinit read_eeprom(void __iomem *ioaddr, int location) 525static int read_eeprom(void __iomem *ioaddr, int location)
526{ 526{
527 int bogus_cnt = 10000; /* Typical 33Mhz: 1050 ticks */ 527 int bogus_cnt = 10000; /* Typical 33Mhz: 1050 ticks */
528 528
@@ -1372,7 +1372,7 @@ static int netdev_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
1372} 1372}
1373 1373
1374 1374
1375static void __devexit yellowfin_remove_one (struct pci_dev *pdev) 1375static void yellowfin_remove_one(struct pci_dev *pdev)
1376{ 1376{
1377 struct net_device *dev = pci_get_drvdata(pdev); 1377 struct net_device *dev = pci_get_drvdata(pdev);
1378 struct yellowfin_private *np; 1378 struct yellowfin_private *np;
@@ -1399,7 +1399,7 @@ static struct pci_driver yellowfin_driver = {
1399 .name = DRV_NAME, 1399 .name = DRV_NAME,
1400 .id_table = yellowfin_pci_tbl, 1400 .id_table = yellowfin_pci_tbl,
1401 .probe = yellowfin_init_one, 1401 .probe = yellowfin_init_one,
1402 .remove = __devexit_p(yellowfin_remove_one), 1402 .remove = yellowfin_remove_one,
1403}; 1403};
1404 1404
1405 1405
diff --git a/drivers/net/ethernet/pasemi/pasemi_mac.c b/drivers/net/ethernet/pasemi/pasemi_mac.c
index 6fa74d530e44..0be5844d6372 100644
--- a/drivers/net/ethernet/pasemi/pasemi_mac.c
+++ b/drivers/net/ethernet/pasemi/pasemi_mac.c
@@ -1727,7 +1727,7 @@ static const struct net_device_ops pasemi_netdev_ops = {
1727#endif 1727#endif
1728}; 1728};
1729 1729
1730static int __devinit 1730static int
1731pasemi_mac_probe(struct pci_dev *pdev, const struct pci_device_id *ent) 1731pasemi_mac_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
1732{ 1732{
1733 struct net_device *dev; 1733 struct net_device *dev;
@@ -1849,7 +1849,7 @@ out_disable_device:
1849 1849
1850} 1850}
1851 1851
1852static void __devexit pasemi_mac_remove(struct pci_dev *pdev) 1852static void pasemi_mac_remove(struct pci_dev *pdev)
1853{ 1853{
1854 struct net_device *netdev = pci_get_drvdata(pdev); 1854 struct net_device *netdev = pci_get_drvdata(pdev);
1855 struct pasemi_mac *mac; 1855 struct pasemi_mac *mac;
@@ -1884,7 +1884,7 @@ static struct pci_driver pasemi_mac_driver = {
1884 .name = "pasemi_mac", 1884 .name = "pasemi_mac",
1885 .id_table = pasemi_mac_pci_tbl, 1885 .id_table = pasemi_mac_pci_tbl,
1886 .probe = pasemi_mac_probe, 1886 .probe = pasemi_mac_probe,
1887 .remove = __devexit_p(pasemi_mac_remove), 1887 .remove = pasemi_mac_remove,
1888}; 1888};
1889 1889
1890static void __exit pasemi_mac_cleanup_module(void) 1890static void __exit pasemi_mac_cleanup_module(void)
diff --git a/drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c b/drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c
index df450616ab37..6098fd4adfeb 100644
--- a/drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c
+++ b/drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c
@@ -60,9 +60,9 @@ static int auto_fw_reset = AUTO_FW_RESET_ENABLED;
60module_param(auto_fw_reset, int, 0644); 60module_param(auto_fw_reset, int, 0644);
61MODULE_PARM_DESC(auto_fw_reset,"Auto firmware reset (0=disabled, 1=enabled"); 61MODULE_PARM_DESC(auto_fw_reset,"Auto firmware reset (0=disabled, 1=enabled");
62 62
63static int __devinit netxen_nic_probe(struct pci_dev *pdev, 63static int netxen_nic_probe(struct pci_dev *pdev,
64 const struct pci_device_id *ent); 64 const struct pci_device_id *ent);
65static void __devexit netxen_nic_remove(struct pci_dev *pdev); 65static void netxen_nic_remove(struct pci_dev *pdev);
66static int netxen_nic_open(struct net_device *netdev); 66static int netxen_nic_open(struct net_device *netdev);
67static int netxen_nic_close(struct net_device *netdev); 67static int netxen_nic_close(struct net_device *netdev);
68static netdev_tx_t netxen_nic_xmit_frame(struct sk_buff *, 68static netdev_tx_t netxen_nic_xmit_frame(struct sk_buff *,
@@ -1397,7 +1397,7 @@ static void netxen_mask_aer_correctable(struct netxen_adapter *adapter)
1397} 1397}
1398#endif 1398#endif
1399 1399
1400static int __devinit 1400static int
1401netxen_nic_probe(struct pci_dev *pdev, const struct pci_device_id *ent) 1401netxen_nic_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
1402{ 1402{
1403 struct net_device *netdev = NULL; 1403 struct net_device *netdev = NULL;
@@ -1569,7 +1569,7 @@ void netxen_cleanup_minidump(struct netxen_adapter *adapter)
1569 } 1569 }
1570} 1570}
1571 1571
1572static void __devexit netxen_nic_remove(struct pci_dev *pdev) 1572static void netxen_nic_remove(struct pci_dev *pdev)
1573{ 1573{
1574 struct netxen_adapter *adapter; 1574 struct netxen_adapter *adapter;
1575 struct net_device *netdev; 1575 struct net_device *netdev;
@@ -3350,7 +3350,7 @@ static struct pci_driver netxen_driver = {
3350 .name = netxen_nic_driver_name, 3350 .name = netxen_nic_driver_name,
3351 .id_table = netxen_pci_tbl, 3351 .id_table = netxen_pci_tbl,
3352 .probe = netxen_nic_probe, 3352 .probe = netxen_nic_probe,
3353 .remove = __devexit_p(netxen_nic_remove), 3353 .remove = netxen_nic_remove,
3354#ifdef CONFIG_PM 3354#ifdef CONFIG_PM
3355 .suspend = netxen_nic_suspend, 3355 .suspend = netxen_nic_suspend,
3356 .resume = netxen_nic_resume, 3356 .resume = netxen_nic_resume,
diff --git a/drivers/net/ethernet/qlogic/qla3xxx.c b/drivers/net/ethernet/qlogic/qla3xxx.c
index 12d1f2470d5c..df6eb27fa101 100644
--- a/drivers/net/ethernet/qlogic/qla3xxx.c
+++ b/drivers/net/ethernet/qlogic/qla3xxx.c
@@ -3769,7 +3769,7 @@ static const struct net_device_ops ql3xxx_netdev_ops = {
3769 .ndo_tx_timeout = ql3xxx_tx_timeout, 3769 .ndo_tx_timeout = ql3xxx_tx_timeout,
3770}; 3770};
3771 3771
3772static int __devinit ql3xxx_probe(struct pci_dev *pdev, 3772static int ql3xxx_probe(struct pci_dev *pdev,
3773 const struct pci_device_id *pci_entry) 3773 const struct pci_device_id *pci_entry)
3774{ 3774{
3775 struct net_device *ndev = NULL; 3775 struct net_device *ndev = NULL;
@@ -3925,7 +3925,7 @@ err_out:
3925 return err; 3925 return err;
3926} 3926}
3927 3927
3928static void __devexit ql3xxx_remove(struct pci_dev *pdev) 3928static void ql3xxx_remove(struct pci_dev *pdev)
3929{ 3929{
3930 struct net_device *ndev = pci_get_drvdata(pdev); 3930 struct net_device *ndev = pci_get_drvdata(pdev);
3931 struct ql3_adapter *qdev = netdev_priv(ndev); 3931 struct ql3_adapter *qdev = netdev_priv(ndev);
@@ -3952,7 +3952,7 @@ static struct pci_driver ql3xxx_driver = {
3952 .name = DRV_NAME, 3952 .name = DRV_NAME,
3953 .id_table = ql3xxx_pci_tbl, 3953 .id_table = ql3xxx_pci_tbl,
3954 .probe = ql3xxx_probe, 3954 .probe = ql3xxx_probe,
3955 .remove = __devexit_p(ql3xxx_remove), 3955 .remove = ql3xxx_remove,
3956}; 3956};
3957 3957
3958module_pci_driver(ql3xxx_driver); 3958module_pci_driver(ql3xxx_driver);
diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c
index 1eef0bf36aa6..0110db1d0a34 100644
--- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c
+++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c
@@ -54,9 +54,9 @@ static int qlcnic_config_npars;
54module_param(qlcnic_config_npars, int, 0444); 54module_param(qlcnic_config_npars, int, 0444);
55MODULE_PARM_DESC(qlcnic_config_npars, "Configure NPARs (0=disabled, 1=enabled"); 55MODULE_PARM_DESC(qlcnic_config_npars, "Configure NPARs (0=disabled, 1=enabled");
56 56
57static int __devinit qlcnic_probe(struct pci_dev *pdev, 57static int qlcnic_probe(struct pci_dev *pdev,
58 const struct pci_device_id *ent); 58 const struct pci_device_id *ent);
59static void __devexit qlcnic_remove(struct pci_dev *pdev); 59static void qlcnic_remove(struct pci_dev *pdev);
60static int qlcnic_open(struct net_device *netdev); 60static int qlcnic_open(struct net_device *netdev);
61static int qlcnic_close(struct net_device *netdev); 61static int qlcnic_close(struct net_device *netdev);
62static void qlcnic_tx_timeout(struct net_device *netdev); 62static void qlcnic_tx_timeout(struct net_device *netdev);
@@ -1454,7 +1454,7 @@ qlcnic_alloc_msix_entries(struct qlcnic_adapter *adapter, u16 count)
1454 return -ENOMEM; 1454 return -ENOMEM;
1455} 1455}
1456 1456
1457static int __devinit 1457static int
1458qlcnic_probe(struct pci_dev *pdev, const struct pci_device_id *ent) 1458qlcnic_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
1459{ 1459{
1460 struct net_device *netdev = NULL; 1460 struct net_device *netdev = NULL;
@@ -1618,7 +1618,7 @@ err_out_maintenance_mode:
1618 return 0; 1618 return 0;
1619} 1619}
1620 1620
1621static void __devexit qlcnic_remove(struct pci_dev *pdev) 1621static void qlcnic_remove(struct pci_dev *pdev)
1622{ 1622{
1623 struct qlcnic_adapter *adapter; 1623 struct qlcnic_adapter *adapter;
1624 struct net_device *netdev; 1624 struct net_device *netdev;
@@ -2928,7 +2928,7 @@ static struct pci_driver qlcnic_driver = {
2928 .name = qlcnic_driver_name, 2928 .name = qlcnic_driver_name,
2929 .id_table = qlcnic_pci_tbl, 2929 .id_table = qlcnic_pci_tbl,
2930 .probe = qlcnic_probe, 2930 .probe = qlcnic_probe,
2931 .remove = __devexit_p(qlcnic_remove), 2931 .remove = qlcnic_remove,
2932#ifdef CONFIG_PM 2932#ifdef CONFIG_PM
2933 .suspend = qlcnic_suspend, 2933 .suspend = qlcnic_suspend,
2934 .resume = qlcnic_resume, 2934 .resume = qlcnic_resume,
diff --git a/drivers/net/ethernet/qlogic/qlge/qlge_main.c b/drivers/net/ethernet/qlogic/qlge/qlge_main.c
index b262d6156816..cae881c18f0b 100644
--- a/drivers/net/ethernet/qlogic/qlge/qlge_main.c
+++ b/drivers/net/ethernet/qlogic/qlge/qlge_main.c
@@ -4491,7 +4491,7 @@ static void ql_release_all(struct pci_dev *pdev)
4491 pci_set_drvdata(pdev, NULL); 4491 pci_set_drvdata(pdev, NULL);
4492} 4492}
4493 4493
4494static int __devinit ql_init_device(struct pci_dev *pdev, 4494static int ql_init_device(struct pci_dev *pdev,
4495 struct net_device *ndev, int cards_found) 4495 struct net_device *ndev, int cards_found)
4496{ 4496{
4497 struct ql_adapter *qdev = netdev_priv(ndev); 4497 struct ql_adapter *qdev = netdev_priv(ndev);
@@ -4656,7 +4656,7 @@ static void ql_timer(unsigned long data)
4656 mod_timer(&qdev->timer, jiffies + (5*HZ)); 4656 mod_timer(&qdev->timer, jiffies + (5*HZ));
4657} 4657}
4658 4658
4659static int __devinit qlge_probe(struct pci_dev *pdev, 4659static int qlge_probe(struct pci_dev *pdev,
4660 const struct pci_device_id *pci_entry) 4660 const struct pci_device_id *pci_entry)
4661{ 4661{
4662 struct net_device *ndev = NULL; 4662 struct net_device *ndev = NULL;
@@ -4729,7 +4729,7 @@ int ql_clean_lb_rx_ring(struct rx_ring *rx_ring, int budget)
4729 return ql_clean_inbound_rx_ring(rx_ring, budget); 4729 return ql_clean_inbound_rx_ring(rx_ring, budget);
4730} 4730}
4731 4731
4732static void __devexit qlge_remove(struct pci_dev *pdev) 4732static void qlge_remove(struct pci_dev *pdev)
4733{ 4733{
4734 struct net_device *ndev = pci_get_drvdata(pdev); 4734 struct net_device *ndev = pci_get_drvdata(pdev);
4735 struct ql_adapter *qdev = netdev_priv(ndev); 4735 struct ql_adapter *qdev = netdev_priv(ndev);
@@ -4921,7 +4921,7 @@ static struct pci_driver qlge_driver = {
4921 .name = DRV_NAME, 4921 .name = DRV_NAME,
4922 .id_table = qlge_pci_tbl, 4922 .id_table = qlge_pci_tbl,
4923 .probe = qlge_probe, 4923 .probe = qlge_probe,
4924 .remove = __devexit_p(qlge_remove), 4924 .remove = qlge_remove,
4925#ifdef CONFIG_PM 4925#ifdef CONFIG_PM
4926 .suspend = qlge_suspend, 4926 .suspend = qlge_suspend,
4927 .resume = qlge_resume, 4927 .resume = qlge_resume,
diff --git a/drivers/net/ethernet/rdc/r6040.c b/drivers/net/ethernet/rdc/r6040.c
index 557a26545d75..ae27e4463f97 100644
--- a/drivers/net/ethernet/rdc/r6040.c
+++ b/drivers/net/ethernet/rdc/r6040.c
@@ -206,7 +206,7 @@ struct r6040_private {
206 int old_duplex; 206 int old_duplex;
207}; 207};
208 208
209static char version[] __devinitdata = DRV_NAME 209static char version[] = DRV_NAME
210 ": RDC R6040 NAPI net driver," 210 ": RDC R6040 NAPI net driver,"
211 "version "DRV_VERSION " (" DRV_RELDATE ")"; 211 "version "DRV_VERSION " (" DRV_RELDATE ")";
212 212
@@ -1073,7 +1073,7 @@ static int r6040_mii_probe(struct net_device *dev)
1073 return 0; 1073 return 0;
1074} 1074}
1075 1075
1076static int __devinit r6040_init_one(struct pci_dev *pdev, 1076static int r6040_init_one(struct pci_dev *pdev,
1077 const struct pci_device_id *ent) 1077 const struct pci_device_id *ent)
1078{ 1078{
1079 struct net_device *dev; 1079 struct net_device *dev;
@@ -1246,7 +1246,7 @@ err_out:
1246 return err; 1246 return err;
1247} 1247}
1248 1248
1249static void __devexit r6040_remove_one(struct pci_dev *pdev) 1249static void r6040_remove_one(struct pci_dev *pdev)
1250{ 1250{
1251 struct net_device *dev = pci_get_drvdata(pdev); 1251 struct net_device *dev = pci_get_drvdata(pdev);
1252 struct r6040_private *lp = netdev_priv(dev); 1252 struct r6040_private *lp = netdev_priv(dev);
@@ -1274,7 +1274,7 @@ static struct pci_driver r6040_driver = {
1274 .name = DRV_NAME, 1274 .name = DRV_NAME,
1275 .id_table = r6040_pci_tbl, 1275 .id_table = r6040_pci_tbl,
1276 .probe = r6040_init_one, 1276 .probe = r6040_init_one,
1277 .remove = __devexit_p(r6040_remove_one), 1277 .remove = r6040_remove_one,
1278}; 1278};
1279 1279
1280module_pci_driver(r6040_driver); 1280module_pci_driver(r6040_driver);
diff --git a/drivers/net/ethernet/realtek/8139too.c b/drivers/net/ethernet/realtek/8139too.c
index 3ed7add23c12..5dc161630127 100644
--- a/drivers/net/ethernet/realtek/8139too.c
+++ b/drivers/net/ethernet/realtek/8139too.c
@@ -228,7 +228,7 @@ typedef enum {
228static const struct { 228static const struct {
229 const char *name; 229 const char *name;
230 u32 hw_flags; 230 u32 hw_flags;
231} board_info[] __devinitconst = { 231} board_info[] = {
232 { "RealTek RTL8139", RTL8139_CAPS }, 232 { "RealTek RTL8139", RTL8139_CAPS },
233 { "RealTek RTL8129", RTL8129_CAPS }, 233 { "RealTek RTL8129", RTL8129_CAPS },
234}; 234};
@@ -748,7 +748,7 @@ static void rtl8139_chip_reset (void __iomem *ioaddr)
748} 748}
749 749
750 750
751static __devinit struct net_device * rtl8139_init_board (struct pci_dev *pdev) 751static struct net_device *rtl8139_init_board(struct pci_dev *pdev)
752{ 752{
753 struct device *d = &pdev->dev; 753 struct device *d = &pdev->dev;
754 void __iomem *ioaddr; 754 void __iomem *ioaddr;
@@ -935,8 +935,8 @@ static const struct net_device_ops rtl8139_netdev_ops = {
935 .ndo_set_features = rtl8139_set_features, 935 .ndo_set_features = rtl8139_set_features,
936}; 936};
937 937
938static int __devinit rtl8139_init_one (struct pci_dev *pdev, 938static int rtl8139_init_one(struct pci_dev *pdev,
939 const struct pci_device_id *ent) 939 const struct pci_device_id *ent)
940{ 940{
941 struct net_device *dev = NULL; 941 struct net_device *dev = NULL;
942 struct rtl8139_private *tp; 942 struct rtl8139_private *tp;
@@ -1103,7 +1103,7 @@ err_out:
1103} 1103}
1104 1104
1105 1105
1106static void __devexit rtl8139_remove_one (struct pci_dev *pdev) 1106static void rtl8139_remove_one(struct pci_dev *pdev)
1107{ 1107{
1108 struct net_device *dev = pci_get_drvdata (pdev); 1108 struct net_device *dev = pci_get_drvdata (pdev);
1109 struct rtl8139_private *tp = netdev_priv(dev); 1109 struct rtl8139_private *tp = netdev_priv(dev);
@@ -1141,7 +1141,7 @@ static void __devexit rtl8139_remove_one (struct pci_dev *pdev)
1141#define EE_READ_CMD (6) 1141#define EE_READ_CMD (6)
1142#define EE_ERASE_CMD (7) 1142#define EE_ERASE_CMD (7)
1143 1143
1144static int __devinit read_eeprom (void __iomem *ioaddr, int location, int addr_len) 1144static int read_eeprom(void __iomem *ioaddr, int location, int addr_len)
1145{ 1145{
1146 int i; 1146 int i;
1147 unsigned retval = 0; 1147 unsigned retval = 0;
@@ -2652,7 +2652,7 @@ static struct pci_driver rtl8139_pci_driver = {
2652 .name = DRV_NAME, 2652 .name = DRV_NAME,
2653 .id_table = rtl8139_pci_tbl, 2653 .id_table = rtl8139_pci_tbl,
2654 .probe = rtl8139_init_one, 2654 .probe = rtl8139_init_one,
2655 .remove = __devexit_p(rtl8139_remove_one), 2655 .remove = rtl8139_remove_one,
2656#ifdef CONFIG_PM 2656#ifdef CONFIG_PM
2657 .suspend = rtl8139_suspend, 2657 .suspend = rtl8139_suspend,
2658 .resume = rtl8139_resume, 2658 .resume = rtl8139_resume,
diff --git a/drivers/net/ethernet/realtek/r8169.c b/drivers/net/ethernet/realtek/r8169.c
index 248f883d4434..891feee49ba9 100644
--- a/drivers/net/ethernet/realtek/r8169.c
+++ b/drivers/net/ethernet/realtek/r8169.c
@@ -3828,7 +3828,7 @@ static void rtl_disable_msi(struct pci_dev *pdev, struct rtl8169_private *tp)
3828 } 3828 }
3829} 3829}
3830 3830
3831static void __devinit rtl_init_mdio_ops(struct rtl8169_private *tp) 3831static void rtl_init_mdio_ops(struct rtl8169_private *tp)
3832{ 3832{
3833 struct mdio_ops *ops = &tp->mdio_ops; 3833 struct mdio_ops *ops = &tp->mdio_ops;
3834 3834
@@ -4080,7 +4080,7 @@ static void rtl_pll_power_up(struct rtl8169_private *tp)
4080 rtl_generic_op(tp, tp->pll_power_ops.up); 4080 rtl_generic_op(tp, tp->pll_power_ops.up);
4081} 4081}
4082 4082
4083static void __devinit rtl_init_pll_power_ops(struct rtl8169_private *tp) 4083static void rtl_init_pll_power_ops(struct rtl8169_private *tp)
4084{ 4084{
4085 struct pll_power_ops *ops = &tp->pll_power_ops; 4085 struct pll_power_ops *ops = &tp->pll_power_ops;
4086 4086
@@ -4274,7 +4274,7 @@ static void r8168b_1_hw_jumbo_disable(struct rtl8169_private *tp)
4274 RTL_W8(Config4, RTL_R8(Config4) & ~(1 << 0)); 4274 RTL_W8(Config4, RTL_R8(Config4) & ~(1 << 0));
4275} 4275}
4276 4276
4277static void __devinit rtl_init_jumbo_ops(struct rtl8169_private *tp) 4277static void rtl_init_jumbo_ops(struct rtl8169_private *tp)
4278{ 4278{
4279 struct jumbo_ops *ops = &tp->jumbo_ops; 4279 struct jumbo_ops *ops = &tp->jumbo_ops;
4280 4280
@@ -4715,7 +4715,7 @@ static u32 r8402_csi_read(struct rtl8169_private *tp, int addr)
4715 RTL_R32(CSIDR) : ~0; 4715 RTL_R32(CSIDR) : ~0;
4716} 4716}
4717 4717
4718static void __devinit rtl_init_csi_ops(struct rtl8169_private *tp) 4718static void rtl_init_csi_ops(struct rtl8169_private *tp)
4719{ 4719{
4720 struct csi_ops *ops = &tp->csi_ops; 4720 struct csi_ops *ops = &tp->csi_ops;
4721 4721
@@ -6610,7 +6610,7 @@ static void rtl_shutdown(struct pci_dev *pdev)
6610 pm_runtime_put_noidle(d); 6610 pm_runtime_put_noidle(d);
6611} 6611}
6612 6612
6613static void __devexit rtl_remove_one(struct pci_dev *pdev) 6613static void rtl_remove_one(struct pci_dev *pdev)
6614{ 6614{
6615 struct net_device *dev = pci_get_drvdata(pdev); 6615 struct net_device *dev = pci_get_drvdata(pdev);
6616 struct rtl8169_private *tp = netdev_priv(dev); 6616 struct rtl8169_private *tp = netdev_priv(dev);
@@ -6730,7 +6730,7 @@ DECLARE_RTL_COND(rtl_rxtx_empty_cond)
6730 return (RTL_R8(MCU) & RXTX_EMPTY) == RXTX_EMPTY; 6730 return (RTL_R8(MCU) & RXTX_EMPTY) == RXTX_EMPTY;
6731} 6731}
6732 6732
6733static void __devinit rtl_hw_init_8168g(struct rtl8169_private *tp) 6733static void rtl_hw_init_8168g(struct rtl8169_private *tp)
6734{ 6734{
6735 void __iomem *ioaddr = tp->mmio_addr; 6735 void __iomem *ioaddr = tp->mmio_addr;
6736 u32 data; 6736 u32 data;
@@ -6764,7 +6764,7 @@ static void __devinit rtl_hw_init_8168g(struct rtl8169_private *tp)
6764 return; 6764 return;
6765} 6765}
6766 6766
6767static void __devinit rtl_hw_initialize(struct rtl8169_private *tp) 6767static void rtl_hw_initialize(struct rtl8169_private *tp)
6768{ 6768{
6769 switch (tp->mac_version) { 6769 switch (tp->mac_version) {
6770 case RTL_GIGA_MAC_VER_40: 6770 case RTL_GIGA_MAC_VER_40:
@@ -6777,7 +6777,7 @@ static void __devinit rtl_hw_initialize(struct rtl8169_private *tp)
6777 } 6777 }
6778} 6778}
6779 6779
6780static int __devinit 6780static int
6781rtl_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) 6781rtl_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
6782{ 6782{
6783 const struct rtl_cfg_info *cfg = rtl_cfg_infos + ent->driver_data; 6783 const struct rtl_cfg_info *cfg = rtl_cfg_infos + ent->driver_data;
@@ -7028,7 +7028,7 @@ static struct pci_driver rtl8169_pci_driver = {
7028 .name = MODULENAME, 7028 .name = MODULENAME,
7029 .id_table = rtl8169_pci_tbl, 7029 .id_table = rtl8169_pci_tbl,
7030 .probe = rtl_init_one, 7030 .probe = rtl_init_one,
7031 .remove = __devexit_p(rtl_remove_one), 7031 .remove = rtl_remove_one,
7032 .shutdown = rtl_shutdown, 7032 .shutdown = rtl_shutdown,
7033 .driver.pm = RTL8169_PM_OPS, 7033 .driver.pm = RTL8169_PM_OPS,
7034}; 7034};
diff --git a/drivers/net/ethernet/s6gmac.c b/drivers/net/ethernet/s6gmac.c
index 2ed3ab4b3c2d..72fc57dd084d 100644
--- a/drivers/net/ethernet/s6gmac.c
+++ b/drivers/net/ethernet/s6gmac.c
@@ -954,7 +954,7 @@ static struct net_device_stats *s6gmac_stats(struct net_device *dev)
954 return st; 954 return st;
955} 955}
956 956
957static int __devinit s6gmac_probe(struct platform_device *pdev) 957static int s6gmac_probe(struct platform_device *pdev)
958{ 958{
959 struct net_device *dev; 959 struct net_device *dev;
960 struct s6gmac *pd; 960 struct s6gmac *pd;
@@ -1030,7 +1030,7 @@ errirq:
1030 return res; 1030 return res;
1031} 1031}
1032 1032
1033static int __devexit s6gmac_remove(struct platform_device *pdev) 1033static int s6gmac_remove(struct platform_device *pdev)
1034{ 1034{
1035 struct net_device *dev = platform_get_drvdata(pdev); 1035 struct net_device *dev = platform_get_drvdata(pdev);
1036 if (dev) { 1036 if (dev) {
@@ -1046,7 +1046,7 @@ static int __devexit s6gmac_remove(struct platform_device *pdev)
1046 1046
1047static struct platform_driver s6gmac_driver = { 1047static struct platform_driver s6gmac_driver = {
1048 .probe = s6gmac_probe, 1048 .probe = s6gmac_probe,
1049 .remove = __devexit_p(s6gmac_remove), 1049 .remove = s6gmac_remove,
1050 .driver = { 1050 .driver = {
1051 .name = "s6gmac", 1051 .name = "s6gmac",
1052 .owner = THIS_MODULE, 1052 .owner = THIS_MODULE,
diff --git a/drivers/net/ethernet/seeq/ether3.c b/drivers/net/ethernet/seeq/ether3.c
index 72a01748d1b1..3aca57853ed4 100644
--- a/drivers/net/ethernet/seeq/ether3.c
+++ b/drivers/net/ethernet/seeq/ether3.c
@@ -67,7 +67,7 @@
67#include <asm/ecard.h> 67#include <asm/ecard.h>
68#include <asm/io.h> 68#include <asm/io.h>
69 69
70static char version[] __devinitdata = "ether3 ethernet driver (c) 1995-2000 R.M.King v1.17\n"; 70static char version[] = "ether3 ethernet driver (c) 1995-2000 R.M.King v1.17\n";
71 71
72#include "ether3.h" 72#include "ether3.h"
73 73
@@ -194,7 +194,7 @@ static inline void ether3_ledon(struct net_device *dev)
194 * Read the ethernet address string from the on board rom. 194 * Read the ethernet address string from the on board rom.
195 * This is an ascii string!!! 195 * This is an ascii string!!!
196 */ 196 */
197static int __devinit 197static int
198ether3_addr(char *addr, struct expansion_card *ec) 198ether3_addr(char *addr, struct expansion_card *ec)
199{ 199{
200 struct in_chunk_dir cd; 200 struct in_chunk_dir cd;
@@ -219,7 +219,7 @@ ether3_addr(char *addr, struct expansion_card *ec)
219 219
220/* --------------------------------------------------------------------------- */ 220/* --------------------------------------------------------------------------- */
221 221
222static int __devinit 222static int
223ether3_ramtest(struct net_device *dev, unsigned char byte) 223ether3_ramtest(struct net_device *dev, unsigned char byte)
224{ 224{
225 unsigned char *buffer = kmalloc(RX_END, GFP_KERNEL); 225 unsigned char *buffer = kmalloc(RX_END, GFP_KERNEL);
@@ -268,7 +268,7 @@ ether3_ramtest(struct net_device *dev, unsigned char byte)
268 268
269/* ------------------------------------------------------------------------------- */ 269/* ------------------------------------------------------------------------------- */
270 270
271static int __devinit ether3_init_2(struct net_device *dev) 271static int ether3_init_2(struct net_device *dev)
272{ 272{
273 int i; 273 int i;
274 274
@@ -742,7 +742,7 @@ static void ether3_tx(struct net_device *dev)
742 } 742 }
743} 743}
744 744
745static void __devinit ether3_banner(void) 745static void ether3_banner(void)
746{ 746{
747 static unsigned version_printed = 0; 747 static unsigned version_printed = 0;
748 748
@@ -761,7 +761,7 @@ static const struct net_device_ops ether3_netdev_ops = {
761 .ndo_set_mac_address = eth_mac_addr, 761 .ndo_set_mac_address = eth_mac_addr,
762}; 762};
763 763
764static int __devinit 764static int
765ether3_probe(struct expansion_card *ec, const struct ecard_id *id) 765ether3_probe(struct expansion_card *ec, const struct ecard_id *id)
766{ 766{
767 const struct ether3_data *data = id->data; 767 const struct ether3_data *data = id->data;
@@ -858,7 +858,7 @@ ether3_probe(struct expansion_card *ec, const struct ecard_id *id)
858 return ret; 858 return ret;
859} 859}
860 860
861static void __devexit ether3_remove(struct expansion_card *ec) 861static void ether3_remove(struct expansion_card *ec)
862{ 862{
863 struct net_device *dev = ecard_get_drvdata(ec); 863 struct net_device *dev = ecard_get_drvdata(ec);
864 864
@@ -888,7 +888,7 @@ static const struct ecard_id ether3_ids[] = {
888 888
889static struct ecard_driver ether3_driver = { 889static struct ecard_driver ether3_driver = {
890 .probe = ether3_probe, 890 .probe = ether3_probe,
891 .remove = __devexit_p(ether3_remove), 891 .remove = ether3_remove,
892 .id_table = ether3_ids, 892 .id_table = ether3_ids,
893 .drv = { 893 .drv = {
894 .name = "ether3", 894 .name = "ether3",
diff --git a/drivers/net/ethernet/seeq/sgiseeq.c b/drivers/net/ethernet/seeq/sgiseeq.c
index 4d15bf413bdc..0fde9ca28269 100644
--- a/drivers/net/ethernet/seeq/sgiseeq.c
+++ b/drivers/net/ethernet/seeq/sgiseeq.c
@@ -721,7 +721,7 @@ static const struct net_device_ops sgiseeq_netdev_ops = {
721 .ndo_validate_addr = eth_validate_addr, 721 .ndo_validate_addr = eth_validate_addr,
722}; 722};
723 723
724static int __devinit sgiseeq_probe(struct platform_device *pdev) 724static int sgiseeq_probe(struct platform_device *pdev)
725{ 725{
726 struct sgiseeq_platform_data *pd = pdev->dev.platform_data; 726 struct sgiseeq_platform_data *pd = pdev->dev.platform_data;
727 struct hpc3_regs *hpcregs = pd->hpc; 727 struct hpc3_regs *hpcregs = pd->hpc;
diff --git a/drivers/net/ethernet/sfc/efx.c b/drivers/net/ethernet/sfc/efx.c
index d858f310b2b2..e95cc7bb2e02 100644
--- a/drivers/net/ethernet/sfc/efx.c
+++ b/drivers/net/ethernet/sfc/efx.c
@@ -2669,7 +2669,7 @@ static int efx_pci_probe_main(struct efx_nic *efx)
2669 * transmission; this is left to the first time one of the network 2669 * transmission; this is left to the first time one of the network
2670 * interfaces is brought up (i.e. efx_net_open). 2670 * interfaces is brought up (i.e. efx_net_open).
2671 */ 2671 */
2672static int __devinit efx_pci_probe(struct pci_dev *pci_dev, 2672static int efx_pci_probe(struct pci_dev *pci_dev,
2673 const struct pci_device_id *entry) 2673 const struct pci_device_id *entry)
2674{ 2674{
2675 struct net_device *net_dev; 2675 struct net_device *net_dev;
diff --git a/drivers/net/ethernet/sgi/ioc3-eth.c b/drivers/net/ethernet/sgi/ioc3-eth.c
index 3e5519a0acc7..4b1deec9189a 100644
--- a/drivers/net/ethernet/sgi/ioc3-eth.c
+++ b/drivers/net/ethernet/sgi/ioc3-eth.c
@@ -1143,7 +1143,7 @@ static int ioc3_is_menet(struct pci_dev *pdev)
1143 * Can't use UPF_IOREMAP as the whole of IOC3 resources have already been 1143 * Can't use UPF_IOREMAP as the whole of IOC3 resources have already been
1144 * registered. 1144 * registered.
1145 */ 1145 */
1146static void __devinit ioc3_8250_register(struct ioc3_uartregs __iomem *uart) 1146static void ioc3_8250_register(struct ioc3_uartregs __iomem *uart)
1147{ 1147{
1148#define COSMISC_CONSTANT 6 1148#define COSMISC_CONSTANT 6
1149 1149
@@ -1169,7 +1169,7 @@ static void __devinit ioc3_8250_register(struct ioc3_uartregs __iomem *uart)
1169 serial8250_register_8250_port(&port); 1169 serial8250_register_8250_port(&port);
1170} 1170}
1171 1171
1172static void __devinit ioc3_serial_probe(struct pci_dev *pdev, struct ioc3 *ioc3) 1172static void ioc3_serial_probe(struct pci_dev *pdev, struct ioc3 *ioc3)
1173{ 1173{
1174 /* 1174 /*
1175 * We need to recognice and treat the fourth MENET serial as it 1175 * We need to recognice and treat the fourth MENET serial as it
@@ -1229,7 +1229,7 @@ static const struct net_device_ops ioc3_netdev_ops = {
1229 .ndo_change_mtu = eth_change_mtu, 1229 .ndo_change_mtu = eth_change_mtu,
1230}; 1230};
1231 1231
1232static int __devinit ioc3_probe(struct pci_dev *pdev, 1232static int ioc3_probe(struct pci_dev *pdev,
1233 const struct pci_device_id *ent) 1233 const struct pci_device_id *ent)
1234{ 1234{
1235 unsigned int sw_physid1, sw_physid2; 1235 unsigned int sw_physid1, sw_physid2;
@@ -1368,7 +1368,7 @@ out:
1368 return err; 1368 return err;
1369} 1369}
1370 1370
1371static void __devexit ioc3_remove_one (struct pci_dev *pdev) 1371static void ioc3_remove_one(struct pci_dev *pdev)
1372{ 1372{
1373 struct net_device *dev = pci_get_drvdata(pdev); 1373 struct net_device *dev = pci_get_drvdata(pdev);
1374 struct ioc3_private *ip = netdev_priv(dev); 1374 struct ioc3_private *ip = netdev_priv(dev);
@@ -1396,7 +1396,7 @@ static struct pci_driver ioc3_driver = {
1396 .name = "ioc3-eth", 1396 .name = "ioc3-eth",
1397 .id_table = ioc3_pci_tbl, 1397 .id_table = ioc3_pci_tbl,
1398 .probe = ioc3_probe, 1398 .probe = ioc3_probe,
1399 .remove = __devexit_p(ioc3_remove_one), 1399 .remove = ioc3_remove_one,
1400}; 1400};
1401 1401
1402static int __init ioc3_init_module(void) 1402static int __init ioc3_init_module(void)
diff --git a/drivers/net/ethernet/sgi/meth.c b/drivers/net/ethernet/sgi/meth.c
index 53efe7c7b1c0..79ad9c94a21b 100644
--- a/drivers/net/ethernet/sgi/meth.c
+++ b/drivers/net/ethernet/sgi/meth.c
@@ -825,7 +825,7 @@ static const struct net_device_ops meth_netdev_ops = {
825/* 825/*
826 * The init function. 826 * The init function.
827 */ 827 */
828static int __devinit meth_probe(struct platform_device *pdev) 828static int meth_probe(struct platform_device *pdev)
829{ 829{
830 struct net_device *dev; 830 struct net_device *dev;
831 struct meth_private *priv; 831 struct meth_private *priv;
diff --git a/drivers/net/ethernet/silan/sc92031.c b/drivers/net/ethernet/silan/sc92031.c
index 32e55664df6e..2103449a2dfe 100644
--- a/drivers/net/ethernet/silan/sc92031.c
+++ b/drivers/net/ethernet/silan/sc92031.c
@@ -1395,7 +1395,7 @@ static const struct net_device_ops sc92031_netdev_ops = {
1395#endif 1395#endif
1396}; 1396};
1397 1397
1398static int __devinit sc92031_probe(struct pci_dev *pdev, 1398static int sc92031_probe(struct pci_dev *pdev,
1399 const struct pci_device_id *id) 1399 const struct pci_device_id *id)
1400{ 1400{
1401 int err; 1401 int err;
@@ -1489,7 +1489,7 @@ out_enable_device:
1489 return err; 1489 return err;
1490} 1490}
1491 1491
1492static void __devexit sc92031_remove(struct pci_dev *pdev) 1492static void sc92031_remove(struct pci_dev *pdev)
1493{ 1493{
1494 struct net_device *dev = pci_get_drvdata(pdev); 1494 struct net_device *dev = pci_get_drvdata(pdev);
1495 struct sc92031_priv *priv = netdev_priv(dev); 1495 struct sc92031_priv *priv = netdev_priv(dev);
@@ -1574,7 +1574,7 @@ static struct pci_driver sc92031_pci_driver = {
1574 .name = SC92031_NAME, 1574 .name = SC92031_NAME,
1575 .id_table = sc92031_pci_device_id_table, 1575 .id_table = sc92031_pci_device_id_table,
1576 .probe = sc92031_probe, 1576 .probe = sc92031_probe,
1577 .remove = __devexit_p(sc92031_remove), 1577 .remove = sc92031_remove,
1578 .suspend = sc92031_suspend, 1578 .suspend = sc92031_suspend,
1579 .resume = sc92031_resume, 1579 .resume = sc92031_resume,
1580}; 1580};
diff --git a/drivers/net/ethernet/sis/sis190.c b/drivers/net/ethernet/sis/sis190.c
index d8166012b7d4..c114c4f9cea8 100644
--- a/drivers/net/ethernet/sis/sis190.c
+++ b/drivers/net/ethernet/sis/sis190.c
@@ -415,7 +415,7 @@ static u16 mdio_read_latched(void __iomem *ioaddr, int phy_id, int reg)
415 return mdio_read(ioaddr, phy_id, reg); 415 return mdio_read(ioaddr, phy_id, reg);
416} 416}
417 417
418static u16 __devinit sis190_read_eeprom(void __iomem *ioaddr, u32 reg) 418static u16 sis190_read_eeprom(void __iomem *ioaddr, u32 reg)
419{ 419{
420 u16 data = 0xffff; 420 u16 data = 0xffff;
421 unsigned int i; 421 unsigned int i;
@@ -1379,7 +1379,7 @@ static void sis190_mii_probe_88e1111_fixup(struct sis190_private *tp)
1379 * Identify and set current phy if found one, 1379 * Identify and set current phy if found one,
1380 * return error if it failed to found. 1380 * return error if it failed to found.
1381 */ 1381 */
1382static int __devinit sis190_mii_probe(struct net_device *dev) 1382static int sis190_mii_probe(struct net_device *dev)
1383{ 1383{
1384 struct sis190_private *tp = netdev_priv(dev); 1384 struct sis190_private *tp = netdev_priv(dev);
1385 struct mii_if_info *mii_if = &tp->mii_if; 1385 struct mii_if_info *mii_if = &tp->mii_if;
@@ -1451,7 +1451,7 @@ static void sis190_release_board(struct pci_dev *pdev)
1451 free_netdev(dev); 1451 free_netdev(dev);
1452} 1452}
1453 1453
1454static struct net_device * __devinit sis190_init_board(struct pci_dev *pdev) 1454static struct net_device *sis190_init_board(struct pci_dev *pdev)
1455{ 1455{
1456 struct sis190_private *tp; 1456 struct sis190_private *tp;
1457 struct net_device *dev; 1457 struct net_device *dev;
@@ -1573,7 +1573,7 @@ static void sis190_set_rgmii(struct sis190_private *tp, u8 reg)
1573 tp->features |= (reg & 0x80) ? F_HAS_RGMII : 0; 1573 tp->features |= (reg & 0x80) ? F_HAS_RGMII : 0;
1574} 1574}
1575 1575
1576static int __devinit sis190_get_mac_addr_from_eeprom(struct pci_dev *pdev, 1576static int sis190_get_mac_addr_from_eeprom(struct pci_dev *pdev,
1577 struct net_device *dev) 1577 struct net_device *dev)
1578{ 1578{
1579 struct sis190_private *tp = netdev_priv(dev); 1579 struct sis190_private *tp = netdev_priv(dev);
@@ -1615,10 +1615,10 @@ static int __devinit sis190_get_mac_addr_from_eeprom(struct pci_dev *pdev,
1615 * APC CMOS RAM is accessed through ISA bridge. 1615 * APC CMOS RAM is accessed through ISA bridge.
1616 * MAC address is read into @net_dev->dev_addr. 1616 * MAC address is read into @net_dev->dev_addr.
1617 */ 1617 */
1618static int __devinit sis190_get_mac_addr_from_apc(struct pci_dev *pdev, 1618static int sis190_get_mac_addr_from_apc(struct pci_dev *pdev,
1619 struct net_device *dev) 1619 struct net_device *dev)
1620{ 1620{
1621 static const u16 __devinitconst ids[] = { 0x0965, 0x0966, 0x0968 }; 1621 static const u16 ids[] = { 0x0965, 0x0966, 0x0968 };
1622 struct sis190_private *tp = netdev_priv(dev); 1622 struct sis190_private *tp = netdev_priv(dev);
1623 struct pci_dev *isa_bridge; 1623 struct pci_dev *isa_bridge;
1624 u8 reg, tmp8; 1624 u8 reg, tmp8;
@@ -1693,7 +1693,7 @@ static inline void sis190_init_rxfilter(struct net_device *dev)
1693 SIS_PCI_COMMIT(); 1693 SIS_PCI_COMMIT();
1694} 1694}
1695 1695
1696static int __devinit sis190_get_mac_addr(struct pci_dev *pdev, 1696static int sis190_get_mac_addr(struct pci_dev *pdev,
1697 struct net_device *dev) 1697 struct net_device *dev)
1698{ 1698{
1699 int rc; 1699 int rc;
@@ -1845,7 +1845,7 @@ static const struct net_device_ops sis190_netdev_ops = {
1845#endif 1845#endif
1846}; 1846};
1847 1847
1848static int __devinit sis190_init_one(struct pci_dev *pdev, 1848static int sis190_init_one(struct pci_dev *pdev,
1849 const struct pci_device_id *ent) 1849 const struct pci_device_id *ent)
1850{ 1850{
1851 static int printed_version = 0; 1851 static int printed_version = 0;
@@ -1916,7 +1916,7 @@ err_release_board:
1916 goto out; 1916 goto out;
1917} 1917}
1918 1918
1919static void __devexit sis190_remove_one(struct pci_dev *pdev) 1919static void sis190_remove_one(struct pci_dev *pdev)
1920{ 1920{
1921 struct net_device *dev = pci_get_drvdata(pdev); 1921 struct net_device *dev = pci_get_drvdata(pdev);
1922 struct sis190_private *tp = netdev_priv(dev); 1922 struct sis190_private *tp = netdev_priv(dev);
@@ -1932,7 +1932,7 @@ static struct pci_driver sis190_pci_driver = {
1932 .name = DRV_NAME, 1932 .name = DRV_NAME,
1933 .id_table = sis190_pci_tbl, 1933 .id_table = sis190_pci_tbl,
1934 .probe = sis190_init_one, 1934 .probe = sis190_init_one,
1935 .remove = __devexit_p(sis190_remove_one), 1935 .remove = sis190_remove_one,
1936}; 1936};
1937 1937
1938static int __init sis190_init_module(void) 1938static int __init sis190_init_module(void)
diff --git a/drivers/net/ethernet/sis/sis900.c b/drivers/net/ethernet/sis/sis900.c
index edf5edb13140..88c6c4243cb3 100644
--- a/drivers/net/ethernet/sis/sis900.c
+++ b/drivers/net/ethernet/sis/sis900.c
@@ -81,7 +81,7 @@
81#define SIS900_MODULE_NAME "sis900" 81#define SIS900_MODULE_NAME "sis900"
82#define SIS900_DRV_VERSION "v1.08.10 Apr. 2 2006" 82#define SIS900_DRV_VERSION "v1.08.10 Apr. 2 2006"
83 83
84static const char version[] __devinitconst = 84static const char version[] =
85 KERN_INFO "sis900.c: " SIS900_DRV_VERSION "\n"; 85 KERN_INFO "sis900.c: " SIS900_DRV_VERSION "\n";
86 86
87static int max_interrupt_work = 40; 87static int max_interrupt_work = 40;
@@ -251,7 +251,8 @@ static const struct ethtool_ops sis900_ethtool_ops;
251 * @net_dev->perm_addr. 251 * @net_dev->perm_addr.
252 */ 252 */
253 253
254static int __devinit sis900_get_mac_addr(struct pci_dev * pci_dev, struct net_device *net_dev) 254static int sis900_get_mac_addr(struct pci_dev *pci_dev,
255 struct net_device *net_dev)
255{ 256{
256 struct sis900_private *sis_priv = netdev_priv(net_dev); 257 struct sis900_private *sis_priv = netdev_priv(net_dev);
257 void __iomem *ioaddr = sis_priv->ioaddr; 258 void __iomem *ioaddr = sis_priv->ioaddr;
@@ -287,8 +288,8 @@ static int __devinit sis900_get_mac_addr(struct pci_dev * pci_dev, struct net_de
287 * @net_dev->perm_addr. 288 * @net_dev->perm_addr.
288 */ 289 */
289 290
290static int __devinit sis630e_get_mac_addr(struct pci_dev * pci_dev, 291static int sis630e_get_mac_addr(struct pci_dev *pci_dev,
291 struct net_device *net_dev) 292 struct net_device *net_dev)
292{ 293{
293 struct pci_dev *isa_bridge = NULL; 294 struct pci_dev *isa_bridge = NULL;
294 u8 reg; 295 u8 reg;
@@ -330,8 +331,8 @@ static int __devinit sis630e_get_mac_addr(struct pci_dev * pci_dev,
330 * @net_dev->dev_addr and @net_dev->perm_addr. 331 * @net_dev->dev_addr and @net_dev->perm_addr.
331 */ 332 */
332 333
333static int __devinit sis635_get_mac_addr(struct pci_dev * pci_dev, 334static int sis635_get_mac_addr(struct pci_dev *pci_dev,
334 struct net_device *net_dev) 335 struct net_device *net_dev)
335{ 336{
336 struct sis900_private *sis_priv = netdev_priv(net_dev); 337 struct sis900_private *sis_priv = netdev_priv(net_dev);
337 void __iomem *ioaddr = sis_priv->ioaddr; 338 void __iomem *ioaddr = sis_priv->ioaddr;
@@ -377,8 +378,8 @@ static int __devinit sis635_get_mac_addr(struct pci_dev * pci_dev,
377 * MAC address is read into @net_dev->dev_addr and @net_dev->perm_addr. 378 * MAC address is read into @net_dev->dev_addr and @net_dev->perm_addr.
378 */ 379 */
379 380
380static int __devinit sis96x_get_mac_addr(struct pci_dev * pci_dev, 381static int sis96x_get_mac_addr(struct pci_dev *pci_dev,
381 struct net_device *net_dev) 382 struct net_device *net_dev)
382{ 383{
383 struct sis900_private *sis_priv = netdev_priv(net_dev); 384 struct sis900_private *sis_priv = netdev_priv(net_dev);
384 void __iomem *ioaddr = sis_priv->ioaddr; 385 void __iomem *ioaddr = sis_priv->ioaddr;
@@ -433,7 +434,7 @@ static const struct net_device_ops sis900_netdev_ops = {
433 * ie: sis900_open(), sis900_start_xmit(), sis900_close(), etc. 434 * ie: sis900_open(), sis900_start_xmit(), sis900_close(), etc.
434 */ 435 */
435 436
436static int __devinit sis900_probe(struct pci_dev *pci_dev, 437static int sis900_probe(struct pci_dev *pci_dev,
437 const struct pci_device_id *pci_id) 438 const struct pci_device_id *pci_id)
438{ 439{
439 struct sis900_private *sis_priv; 440 struct sis900_private *sis_priv;
@@ -605,7 +606,7 @@ err_out_cleardev:
605 * return error if it failed to found. 606 * return error if it failed to found.
606 */ 607 */
607 608
608static int __devinit sis900_mii_probe(struct net_device * net_dev) 609static int sis900_mii_probe(struct net_device *net_dev)
609{ 610{
610 struct sis900_private *sis_priv = netdev_priv(net_dev); 611 struct sis900_private *sis_priv = netdev_priv(net_dev);
611 const char *dev_name = pci_name(sis_priv->pci_dev); 612 const char *dev_name = pci_name(sis_priv->pci_dev);
@@ -824,7 +825,7 @@ static void sis900_set_capability(struct net_device *net_dev, struct mii_phy *ph
824 * Note that location is in word (16 bits) unit 825 * Note that location is in word (16 bits) unit
825 */ 826 */
826 827
827static u16 __devinit read_eeprom(void __iomem *ioaddr, int location) 828static u16 read_eeprom(void __iomem *ioaddr, int location)
828{ 829{
829 u32 read_cmd = location | EEread; 830 u32 read_cmd = location | EEread;
830 int i; 831 int i;
@@ -2410,7 +2411,7 @@ static void sis900_reset(struct net_device *net_dev)
2410 * remove and release SiS900 net device 2411 * remove and release SiS900 net device
2411 */ 2412 */
2412 2413
2413static void __devexit sis900_remove(struct pci_dev *pci_dev) 2414static void sis900_remove(struct pci_dev *pci_dev)
2414{ 2415{
2415 struct net_device *net_dev = pci_get_drvdata(pci_dev); 2416 struct net_device *net_dev = pci_get_drvdata(pci_dev);
2416 struct sis900_private *sis_priv = netdev_priv(net_dev); 2417 struct sis900_private *sis_priv = netdev_priv(net_dev);
@@ -2496,7 +2497,7 @@ static struct pci_driver sis900_pci_driver = {
2496 .name = SIS900_MODULE_NAME, 2497 .name = SIS900_MODULE_NAME,
2497 .id_table = sis900_pci_tbl, 2498 .id_table = sis900_pci_tbl,
2498 .probe = sis900_probe, 2499 .probe = sis900_probe,
2499 .remove = __devexit_p(sis900_remove), 2500 .remove = sis900_remove,
2500#ifdef CONFIG_PM 2501#ifdef CONFIG_PM
2501 .suspend = sis900_suspend, 2502 .suspend = sis900_suspend,
2502 .resume = sis900_resume, 2503 .resume = sis900_resume,
diff --git a/drivers/net/ethernet/smsc/epic100.c b/drivers/net/ethernet/smsc/epic100.c
index d01e59c348ad..347cccbeb53c 100644
--- a/drivers/net/ethernet/smsc/epic100.c
+++ b/drivers/net/ethernet/smsc/epic100.c
@@ -90,9 +90,9 @@ static int rx_copybreak;
90#include <asm/byteorder.h> 90#include <asm/byteorder.h>
91 91
92/* These identify the driver base version and may not be removed. */ 92/* These identify the driver base version and may not be removed. */
93static char version[] __devinitdata = 93static char version[] =
94DRV_NAME ".c:v1.11 1/7/2001 Written by Donald Becker <becker@scyld.com>\n"; 94DRV_NAME ".c:v1.11 1/7/2001 Written by Donald Becker <becker@scyld.com>\n";
95static char version2[] __devinitdata = 95static char version2[] =
96" (unofficial 2.4.x kernel port, version " DRV_VERSION ", " DRV_RELDATE ")\n"; 96" (unofficial 2.4.x kernel port, version " DRV_VERSION ", " DRV_RELDATE ")\n";
97 97
98MODULE_AUTHOR("Donald Becker <becker@scyld.com>"); 98MODULE_AUTHOR("Donald Becker <becker@scyld.com>");
@@ -318,7 +318,7 @@ static const struct net_device_ops epic_netdev_ops = {
318 .ndo_validate_addr = eth_validate_addr, 318 .ndo_validate_addr = eth_validate_addr,
319}; 319};
320 320
321static int __devinit epic_init_one(struct pci_dev *pdev, 321static int epic_init_one(struct pci_dev *pdev,
322 const struct pci_device_id *ent) 322 const struct pci_device_id *ent)
323{ 323{
324 static int card_idx = -1; 324 static int card_idx = -1;
@@ -569,7 +569,7 @@ static inline void epic_napi_irq_on(struct net_device *dev,
569 ew32(INTMASK, ep->irq_mask | EpicNapiEvent); 569 ew32(INTMASK, ep->irq_mask | EpicNapiEvent);
570} 570}
571 571
572static int __devinit read_eeprom(struct epic_private *ep, int location) 572static int read_eeprom(struct epic_private *ep, int location)
573{ 573{
574 void __iomem *ioaddr = ep->ioaddr; 574 void __iomem *ioaddr = ep->ioaddr;
575 int i; 575 int i;
@@ -1524,7 +1524,7 @@ static int netdev_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
1524} 1524}
1525 1525
1526 1526
1527static void __devexit epic_remove_one(struct pci_dev *pdev) 1527static void epic_remove_one(struct pci_dev *pdev)
1528{ 1528{
1529 struct net_device *dev = pci_get_drvdata(pdev); 1529 struct net_device *dev = pci_get_drvdata(pdev);
1530 struct epic_private *ep = netdev_priv(dev); 1530 struct epic_private *ep = netdev_priv(dev);
@@ -1577,7 +1577,7 @@ static struct pci_driver epic_driver = {
1577 .name = DRV_NAME, 1577 .name = DRV_NAME,
1578 .id_table = epic_pci_tbl, 1578 .id_table = epic_pci_tbl,
1579 .probe = epic_init_one, 1579 .probe = epic_init_one,
1580 .remove = __devexit_p(epic_remove_one), 1580 .remove = epic_remove_one,
1581#ifdef CONFIG_PM 1581#ifdef CONFIG_PM
1582 .suspend = epic_suspend, 1582 .suspend = epic_suspend,
1583 .resume = epic_resume, 1583 .resume = epic_resume,
diff --git a/drivers/net/ethernet/smsc/smc911x.c b/drivers/net/ethernet/smsc/smc911x.c
index 990f57467a15..59a6f88da867 100644
--- a/drivers/net/ethernet/smsc/smc911x.c
+++ b/drivers/net/ethernet/smsc/smc911x.c
@@ -1712,7 +1712,7 @@ static const struct ethtool_ops smc911x_ethtool_ops = {
1712 * This routine has a simple purpose -- make the SMC chip generate an 1712 * This routine has a simple purpose -- make the SMC chip generate an
1713 * interrupt, so an auto-detect routine can detect it, and find the IRQ, 1713 * interrupt, so an auto-detect routine can detect it, and find the IRQ,
1714 */ 1714 */
1715static int __devinit smc911x_findirq(struct net_device *dev) 1715static int smc911x_findirq(struct net_device *dev)
1716{ 1716{
1717 struct smc911x_local *lp = netdev_priv(dev); 1717 struct smc911x_local *lp = netdev_priv(dev);
1718 int timeout = 20; 1718 int timeout = 20;
@@ -1790,7 +1790,7 @@ static const struct net_device_ops smc911x_netdev_ops = {
1790 * o actually GRAB the irq. 1790 * o actually GRAB the irq.
1791 * o GRAB the region 1791 * o GRAB the region
1792 */ 1792 */
1793static int __devinit smc911x_probe(struct net_device *dev) 1793static int smc911x_probe(struct net_device *dev)
1794{ 1794{
1795 struct smc911x_local *lp = netdev_priv(dev); 1795 struct smc911x_local *lp = netdev_priv(dev);
1796 int i, retval; 1796 int i, retval;
@@ -2030,7 +2030,7 @@ err_out:
2030 * 0 --> there is a device 2030 * 0 --> there is a device
2031 * anything else, error 2031 * anything else, error
2032 */ 2032 */
2033static int __devinit smc911x_drv_probe(struct platform_device *pdev) 2033static int smc911x_drv_probe(struct platform_device *pdev)
2034{ 2034{
2035 struct net_device *ndev; 2035 struct net_device *ndev;
2036 struct resource *res; 2036 struct resource *res;
@@ -2105,7 +2105,7 @@ out:
2105 return ret; 2105 return ret;
2106} 2106}
2107 2107
2108static int __devexit smc911x_drv_remove(struct platform_device *pdev) 2108static int smc911x_drv_remove(struct platform_device *pdev)
2109{ 2109{
2110 struct net_device *ndev = platform_get_drvdata(pdev); 2110 struct net_device *ndev = platform_get_drvdata(pdev);
2111 struct smc911x_local *lp = netdev_priv(ndev); 2111 struct smc911x_local *lp = netdev_priv(ndev);
@@ -2176,7 +2176,7 @@ static int smc911x_drv_resume(struct platform_device *dev)
2176 2176
2177static struct platform_driver smc911x_driver = { 2177static struct platform_driver smc911x_driver = {
2178 .probe = smc911x_drv_probe, 2178 .probe = smc911x_drv_probe,
2179 .remove = __devexit_p(smc911x_drv_remove), 2179 .remove = smc911x_drv_remove,
2180 .suspend = smc911x_drv_suspend, 2180 .suspend = smc911x_drv_suspend,
2181 .resume = smc911x_drv_resume, 2181 .resume = smc911x_drv_resume,
2182 .driver = { 2182 .driver = {
diff --git a/drivers/net/ethernet/smsc/smc91x.c b/drivers/net/ethernet/smsc/smc91x.c
index f516e5a71c53..b085692f3893 100644
--- a/drivers/net/ethernet/smsc/smc91x.c
+++ b/drivers/net/ethernet/smsc/smc91x.c
@@ -1779,7 +1779,7 @@ static const struct net_device_ops smc_netdev_ops = {
1779 * I just deleted auto_irq.c, since it was never built... 1779 * I just deleted auto_irq.c, since it was never built...
1780 * --jgarzik 1780 * --jgarzik
1781 */ 1781 */
1782static int __devinit smc_findirq(struct smc_local *lp) 1782static int smc_findirq(struct smc_local *lp)
1783{ 1783{
1784 void __iomem *ioaddr = lp->base; 1784 void __iomem *ioaddr = lp->base;
1785 int timeout = 20; 1785 int timeout = 20;
@@ -1853,7 +1853,7 @@ static int __devinit smc_findirq(struct smc_local *lp)
1853 * o actually GRAB the irq. 1853 * o actually GRAB the irq.
1854 * o GRAB the region 1854 * o GRAB the region
1855 */ 1855 */
1856static int __devinit smc_probe(struct net_device *dev, void __iomem *ioaddr, 1856static int smc_probe(struct net_device *dev, void __iomem *ioaddr,
1857 unsigned long irq_flags) 1857 unsigned long irq_flags)
1858{ 1858{
1859 struct smc_local *lp = netdev_priv(dev); 1859 struct smc_local *lp = netdev_priv(dev);
@@ -2201,7 +2201,7 @@ static void smc_release_datacs(struct platform_device *pdev, struct net_device *
2201 * 0 --> there is a device 2201 * 0 --> there is a device
2202 * anything else, error 2202 * anything else, error
2203 */ 2203 */
2204static int __devinit smc_drv_probe(struct platform_device *pdev) 2204static int smc_drv_probe(struct platform_device *pdev)
2205{ 2205{
2206 struct smc91x_platdata *pd = pdev->dev.platform_data; 2206 struct smc91x_platdata *pd = pdev->dev.platform_data;
2207 struct smc_local *lp; 2207 struct smc_local *lp;
@@ -2314,7 +2314,7 @@ static int __devinit smc_drv_probe(struct platform_device *pdev)
2314 return ret; 2314 return ret;
2315} 2315}
2316 2316
2317static int __devexit smc_drv_remove(struct platform_device *pdev) 2317static int smc_drv_remove(struct platform_device *pdev)
2318{ 2318{
2319 struct net_device *ndev = platform_get_drvdata(pdev); 2319 struct net_device *ndev = platform_get_drvdata(pdev);
2320 struct smc_local *lp = netdev_priv(ndev); 2320 struct smc_local *lp = netdev_priv(ndev);
@@ -2397,7 +2397,7 @@ static struct dev_pm_ops smc_drv_pm_ops = {
2397 2397
2398static struct platform_driver smc_driver = { 2398static struct platform_driver smc_driver = {
2399 .probe = smc_drv_probe, 2399 .probe = smc_drv_probe,
2400 .remove = __devexit_p(smc_drv_remove), 2400 .remove = smc_drv_remove,
2401 .driver = { 2401 .driver = {
2402 .name = CARDNAME, 2402 .name = CARDNAME,
2403 .owner = THIS_MODULE, 2403 .owner = THIS_MODULE,
diff --git a/drivers/net/ethernet/smsc/smsc911x.c b/drivers/net/ethernet/smsc/smsc911x.c
index cc025620b681..c52a5cefa192 100644
--- a/drivers/net/ethernet/smsc/smsc911x.c
+++ b/drivers/net/ethernet/smsc/smsc911x.c
@@ -1031,7 +1031,7 @@ static int smsc911x_mii_probe(struct net_device *dev)
1031 return 0; 1031 return 0;
1032} 1032}
1033 1033
1034static int __devinit smsc911x_mii_init(struct platform_device *pdev, 1034static int smsc911x_mii_init(struct platform_device *pdev,
1035 struct net_device *dev) 1035 struct net_device *dev)
1036{ 1036{
1037 struct smsc911x_data *pdata = netdev_priv(dev); 1037 struct smsc911x_data *pdata = netdev_priv(dev);
@@ -2087,7 +2087,7 @@ static const struct net_device_ops smsc911x_netdev_ops = {
2087}; 2087};
2088 2088
2089/* copies the current mac address from hardware to dev->dev_addr */ 2089/* copies the current mac address from hardware to dev->dev_addr */
2090static void __devinit smsc911x_read_mac_address(struct net_device *dev) 2090static void smsc911x_read_mac_address(struct net_device *dev)
2091{ 2091{
2092 struct smsc911x_data *pdata = netdev_priv(dev); 2092 struct smsc911x_data *pdata = netdev_priv(dev);
2093 u32 mac_high16 = smsc911x_mac_read(pdata, ADDRH); 2093 u32 mac_high16 = smsc911x_mac_read(pdata, ADDRH);
@@ -2102,7 +2102,7 @@ static void __devinit smsc911x_read_mac_address(struct net_device *dev)
2102} 2102}
2103 2103
2104/* Initializing private device structures, only called from probe */ 2104/* Initializing private device structures, only called from probe */
2105static int __devinit smsc911x_init(struct net_device *dev) 2105static int smsc911x_init(struct net_device *dev)
2106{ 2106{
2107 struct smsc911x_data *pdata = netdev_priv(dev); 2107 struct smsc911x_data *pdata = netdev_priv(dev);
2108 unsigned int byte_test, mask; 2108 unsigned int byte_test, mask;
@@ -2239,7 +2239,7 @@ static int __devinit smsc911x_init(struct net_device *dev)
2239 return 0; 2239 return 0;
2240} 2240}
2241 2241
2242static int __devexit smsc911x_drv_remove(struct platform_device *pdev) 2242static int smsc911x_drv_remove(struct platform_device *pdev)
2243{ 2243{
2244 struct net_device *dev; 2244 struct net_device *dev;
2245 struct smsc911x_data *pdata; 2245 struct smsc911x_data *pdata;
@@ -2296,7 +2296,7 @@ static const struct smsc911x_ops shifted_smsc911x_ops = {
2296}; 2296};
2297 2297
2298#ifdef CONFIG_OF 2298#ifdef CONFIG_OF
2299static int __devinit smsc911x_probe_config_dt( 2299static int smsc911x_probe_config_dt(
2300 struct smsc911x_platform_config *config, 2300 struct smsc911x_platform_config *config,
2301 struct device_node *np) 2301 struct device_node *np)
2302{ 2302{
@@ -2346,7 +2346,7 @@ static inline int smsc911x_probe_config_dt(
2346} 2346}
2347#endif /* CONFIG_OF */ 2347#endif /* CONFIG_OF */
2348 2348
2349static int __devinit smsc911x_drv_probe(struct platform_device *pdev) 2349static int smsc911x_drv_probe(struct platform_device *pdev)
2350{ 2350{
2351 struct device_node *np = pdev->dev.of_node; 2351 struct device_node *np = pdev->dev.of_node;
2352 struct net_device *dev; 2352 struct net_device *dev;
@@ -2584,7 +2584,7 @@ MODULE_DEVICE_TABLE(of, smsc911x_dt_ids);
2584 2584
2585static struct platform_driver smsc911x_driver = { 2585static struct platform_driver smsc911x_driver = {
2586 .probe = smsc911x_drv_probe, 2586 .probe = smsc911x_drv_probe,
2587 .remove = __devexit_p(smsc911x_drv_remove), 2587 .remove = smsc911x_drv_remove,
2588 .driver = { 2588 .driver = {
2589 .name = SMSC_CHIPNAME, 2589 .name = SMSC_CHIPNAME,
2590 .owner = THIS_MODULE, 2590 .owner = THIS_MODULE,
diff --git a/drivers/net/ethernet/smsc/smsc9420.c b/drivers/net/ethernet/smsc/smsc9420.c
index 1fcd914ec39b..3c586585e1b3 100644
--- a/drivers/net/ethernet/smsc/smsc9420.c
+++ b/drivers/net/ethernet/smsc/smsc9420.c
@@ -1577,7 +1577,7 @@ static const struct net_device_ops smsc9420_netdev_ops = {
1577#endif /* CONFIG_NET_POLL_CONTROLLER */ 1577#endif /* CONFIG_NET_POLL_CONTROLLER */
1578}; 1578};
1579 1579
1580static int __devinit 1580static int
1581smsc9420_probe(struct pci_dev *pdev, const struct pci_device_id *id) 1581smsc9420_probe(struct pci_dev *pdev, const struct pci_device_id *id)
1582{ 1582{
1583 struct net_device *dev; 1583 struct net_device *dev;
@@ -1702,7 +1702,7 @@ out_0:
1702 return -ENODEV; 1702 return -ENODEV;
1703} 1703}
1704 1704
1705static void __devexit smsc9420_remove(struct pci_dev *pdev) 1705static void smsc9420_remove(struct pci_dev *pdev)
1706{ 1706{
1707 struct net_device *dev; 1707 struct net_device *dev;
1708 struct smsc9420_pdata *pd; 1708 struct smsc9420_pdata *pd;
@@ -1736,7 +1736,7 @@ static struct pci_driver smsc9420_driver = {
1736 .name = DRV_NAME, 1736 .name = DRV_NAME,
1737 .id_table = smsc9420_id_table, 1737 .id_table = smsc9420_id_table,
1738 .probe = smsc9420_probe, 1738 .probe = smsc9420_probe,
1739 .remove = __devexit_p(smsc9420_remove), 1739 .remove = smsc9420_remove,
1740#ifdef CONFIG_PM 1740#ifdef CONFIG_PM
1741 .suspend = smsc9420_suspend, 1741 .suspend = smsc9420_suspend,
1742 .resume = smsc9420_resume, 1742 .resume = smsc9420_resume,
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c
index 1f069b0f6af5..5cf9eb6dd65f 100644
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c
@@ -61,7 +61,7 @@ static void stmmac_default_data(void)
61 * matches the device. The probe functions returns zero when the driver choose 61 * matches the device. The probe functions returns zero when the driver choose
62 * to take "ownership" of the device or an error code(-ve no) otherwise. 62 * to take "ownership" of the device or an error code(-ve no) otherwise.
63 */ 63 */
64static int __devinit stmmac_pci_probe(struct pci_dev *pdev, 64static int stmmac_pci_probe(struct pci_dev *pdev,
65 const struct pci_device_id *id) 65 const struct pci_device_id *id)
66{ 66{
67 int ret = 0; 67 int ret = 0;
@@ -130,7 +130,7 @@ err_out_req_reg_failed:
130 * Description: this function calls the main to free the net resources 130 * Description: this function calls the main to free the net resources
131 * and releases the PCI resources. 131 * and releases the PCI resources.
132 */ 132 */
133static void __devexit stmmac_pci_remove(struct pci_dev *pdev) 133static void stmmac_pci_remove(struct pci_dev *pdev)
134{ 134{
135 struct net_device *ndev = pci_get_drvdata(pdev); 135 struct net_device *ndev = pci_get_drvdata(pdev);
136 struct stmmac_priv *priv = netdev_priv(ndev); 136 struct stmmac_priv *priv = netdev_priv(ndev);
@@ -182,7 +182,7 @@ struct pci_driver stmmac_pci_driver = {
182 .name = STMMAC_RESOURCE_NAME, 182 .name = STMMAC_RESOURCE_NAME,
183 .id_table = stmmac_id_table, 183 .id_table = stmmac_id_table,
184 .probe = stmmac_pci_probe, 184 .probe = stmmac_pci_probe,
185 .remove = __devexit_p(stmmac_pci_remove), 185 .remove = stmmac_pci_remove,
186#ifdef CONFIG_PM 186#ifdef CONFIG_PM
187 .suspend = stmmac_pci_suspend, 187 .suspend = stmmac_pci_suspend,
188 .resume = stmmac_pci_resume, 188 .resume = stmmac_pci_resume,
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
index ed112b55ae7f..b77b913df116 100644
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
@@ -29,7 +29,7 @@
29#include "stmmac.h" 29#include "stmmac.h"
30 30
31#ifdef CONFIG_OF 31#ifdef CONFIG_OF
32static int __devinit stmmac_probe_config_dt(struct platform_device *pdev, 32static int stmmac_probe_config_dt(struct platform_device *pdev,
33 struct plat_stmmacenet_data *plat, 33 struct plat_stmmacenet_data *plat,
34 const char **mac) 34 const char **mac)
35{ 35{
@@ -59,7 +59,7 @@ static int __devinit stmmac_probe_config_dt(struct platform_device *pdev,
59 return 0; 59 return 0;
60} 60}
61#else 61#else
62static int __devinit stmmac_probe_config_dt(struct platform_device *pdev, 62static int stmmac_probe_config_dt(struct platform_device *pdev,
63 struct plat_stmmacenet_data *plat, 63 struct plat_stmmacenet_data *plat,
64 const char **mac) 64 const char **mac)
65{ 65{
@@ -74,7 +74,7 @@ static int __devinit stmmac_probe_config_dt(struct platform_device *pdev,
74 * the necessary resources and invokes the main to init 74 * the necessary resources and invokes the main to init
75 * the net device, register the mdio bus etc. 75 * the net device, register the mdio bus etc.
76 */ 76 */
77static int __devinit stmmac_pltfr_probe(struct platform_device *pdev) 77static int stmmac_pltfr_probe(struct platform_device *pdev)
78{ 78{
79 int ret = 0; 79 int ret = 0;
80 struct resource *res; 80 struct resource *res;
diff --git a/drivers/net/ethernet/sun/cassini.c b/drivers/net/ethernet/sun/cassini.c
index c8251be104d6..85f971fe2611 100644
--- a/drivers/net/ethernet/sun/cassini.c
+++ b/drivers/net/ethernet/sun/cassini.c
@@ -185,7 +185,7 @@
185#define CAS_RESET_SPARE 3 185#define CAS_RESET_SPARE 3
186#endif 186#endif
187 187
188static char version[] __devinitdata = 188static char version[] =
189 DRV_MODULE_NAME ".c:v" DRV_MODULE_VERSION " (" DRV_MODULE_RELDATE ")\n"; 189 DRV_MODULE_NAME ".c:v" DRV_MODULE_VERSION " (" DRV_MODULE_RELDATE ")\n";
190 190
191static int cassini_debug = -1; /* -1 == use CAS_DEF_MSG_ENABLE as value */ 191static int cassini_debug = -1; /* -1 == use CAS_DEF_MSG_ENABLE as value */
@@ -222,7 +222,7 @@ static int link_transition_timeout;
222 222
223 223
224 224
225static u16 link_modes[] __devinitdata = { 225static u16 link_modes[] = {
226 BMCR_ANENABLE, /* 0 : autoneg */ 226 BMCR_ANENABLE, /* 0 : autoneg */
227 0, /* 1 : 10bt half duplex */ 227 0, /* 1 : 10bt half duplex */
228 BMCR_SPEED100, /* 2 : 100bt half duplex */ 228 BMCR_SPEED100, /* 2 : 100bt half duplex */
@@ -4820,7 +4820,7 @@ static int cas_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
4820 * only subordinate device and we can tweak the bridge settings to 4820 * only subordinate device and we can tweak the bridge settings to
4821 * reflect that fact. 4821 * reflect that fact.
4822 */ 4822 */
4823static void __devinit cas_program_bridge(struct pci_dev *cas_pdev) 4823static void cas_program_bridge(struct pci_dev *cas_pdev)
4824{ 4824{
4825 struct pci_dev *pdev = cas_pdev->bus->self; 4825 struct pci_dev *pdev = cas_pdev->bus->self;
4826 u32 val; 4826 u32 val;
@@ -4916,7 +4916,7 @@ static const struct net_device_ops cas_netdev_ops = {
4916#endif 4916#endif
4917}; 4917};
4918 4918
4919static int __devinit cas_init_one(struct pci_dev *pdev, 4919static int cas_init_one(struct pci_dev *pdev,
4920 const struct pci_device_id *ent) 4920 const struct pci_device_id *ent)
4921{ 4921{
4922 static int cas_version_printed = 0; 4922 static int cas_version_printed = 0;
@@ -5175,7 +5175,7 @@ err_out_disable_pdev:
5175 return -ENODEV; 5175 return -ENODEV;
5176} 5176}
5177 5177
5178static void __devexit cas_remove_one(struct pci_dev *pdev) 5178static void cas_remove_one(struct pci_dev *pdev)
5179{ 5179{
5180 struct net_device *dev = pci_get_drvdata(pdev); 5180 struct net_device *dev = pci_get_drvdata(pdev);
5181 struct cas *cp; 5181 struct cas *cp;
@@ -5273,7 +5273,7 @@ static struct pci_driver cas_driver = {
5273 .name = DRV_MODULE_NAME, 5273 .name = DRV_MODULE_NAME,
5274 .id_table = cas_pci_tbl, 5274 .id_table = cas_pci_tbl,
5275 .probe = cas_init_one, 5275 .probe = cas_init_one,
5276 .remove = __devexit_p(cas_remove_one), 5276 .remove = cas_remove_one,
5277#ifdef CONFIG_PM 5277#ifdef CONFIG_PM
5278 .suspend = cas_suspend, 5278 .suspend = cas_suspend,
5279 .resume = cas_resume 5279 .resume = cas_resume
diff --git a/drivers/net/ethernet/sun/niu.c b/drivers/net/ethernet/sun/niu.c
index 275b430aeb75..6023949be3bd 100644
--- a/drivers/net/ethernet/sun/niu.c
+++ b/drivers/net/ethernet/sun/niu.c
@@ -38,7 +38,7 @@
38#define DRV_MODULE_VERSION "1.1" 38#define DRV_MODULE_VERSION "1.1"
39#define DRV_MODULE_RELDATE "Apr 22, 2010" 39#define DRV_MODULE_RELDATE "Apr 22, 2010"
40 40
41static char version[] __devinitdata = 41static char version[] =
42 DRV_MODULE_NAME ".c:v" DRV_MODULE_VERSION " (" DRV_MODULE_RELDATE ")\n"; 42 DRV_MODULE_NAME ".c:v" DRV_MODULE_VERSION " (" DRV_MODULE_RELDATE ")\n";
43 43
44MODULE_AUTHOR("David S. Miller (davem@davemloft.net)"); 44MODULE_AUTHOR("David S. Miller (davem@davemloft.net)");
@@ -7977,7 +7977,7 @@ static int niu_set_ldg_sid(struct niu *np, int ldg, int func, int vector)
7977 return 0; 7977 return 0;
7978} 7978}
7979 7979
7980static int __devinit niu_pci_eeprom_read(struct niu *np, u32 addr) 7980static int niu_pci_eeprom_read(struct niu *np, u32 addr)
7981{ 7981{
7982 u64 frame, frame_base = (ESPC_PIO_STAT_READ_START | 7982 u64 frame, frame_base = (ESPC_PIO_STAT_READ_START |
7983 (addr << ESPC_PIO_STAT_ADDR_SHIFT)); 7983 (addr << ESPC_PIO_STAT_ADDR_SHIFT));
@@ -8020,7 +8020,7 @@ static int __devinit niu_pci_eeprom_read(struct niu *np, u32 addr)
8020 return (frame & ESPC_PIO_STAT_DATA) >> ESPC_PIO_STAT_DATA_SHIFT; 8020 return (frame & ESPC_PIO_STAT_DATA) >> ESPC_PIO_STAT_DATA_SHIFT;
8021} 8021}
8022 8022
8023static int __devinit niu_pci_eeprom_read16(struct niu *np, u32 off) 8023static int niu_pci_eeprom_read16(struct niu *np, u32 off)
8024{ 8024{
8025 int err = niu_pci_eeprom_read(np, off); 8025 int err = niu_pci_eeprom_read(np, off);
8026 u16 val; 8026 u16 val;
@@ -8036,7 +8036,7 @@ static int __devinit niu_pci_eeprom_read16(struct niu *np, u32 off)
8036 return val; 8036 return val;
8037} 8037}
8038 8038
8039static int __devinit niu_pci_eeprom_read16_swp(struct niu *np, u32 off) 8039static int niu_pci_eeprom_read16_swp(struct niu *np, u32 off)
8040{ 8040{
8041 int err = niu_pci_eeprom_read(np, off); 8041 int err = niu_pci_eeprom_read(np, off);
8042 u16 val; 8042 u16 val;
@@ -8054,7 +8054,7 @@ static int __devinit niu_pci_eeprom_read16_swp(struct niu *np, u32 off)
8054 return val; 8054 return val;
8055} 8055}
8056 8056
8057static int __devinit niu_pci_vpd_get_propname(struct niu *np, 8057static int niu_pci_vpd_get_propname(struct niu *np,
8058 u32 off, 8058 u32 off,
8059 char *namebuf, 8059 char *namebuf,
8060 int namebuf_len) 8060 int namebuf_len)
@@ -8075,7 +8075,7 @@ static int __devinit niu_pci_vpd_get_propname(struct niu *np,
8075 return i + 1; 8075 return i + 1;
8076} 8076}
8077 8077
8078static void __devinit niu_vpd_parse_version(struct niu *np) 8078static void niu_vpd_parse_version(struct niu *np)
8079{ 8079{
8080 struct niu_vpd *vpd = &np->vpd; 8080 struct niu_vpd *vpd = &np->vpd;
8081 int len = strlen(vpd->version) + 1; 8081 int len = strlen(vpd->version) + 1;
@@ -8102,7 +8102,7 @@ static void __devinit niu_vpd_parse_version(struct niu *np)
8102} 8102}
8103 8103
8104/* ESPC_PIO_EN_ENABLE must be set */ 8104/* ESPC_PIO_EN_ENABLE must be set */
8105static int __devinit niu_pci_vpd_scan_props(struct niu *np, 8105static int niu_pci_vpd_scan_props(struct niu *np,
8106 u32 start, u32 end) 8106 u32 start, u32 end)
8107{ 8107{
8108 unsigned int found_mask = 0; 8108 unsigned int found_mask = 0;
@@ -8189,7 +8189,7 @@ static int __devinit niu_pci_vpd_scan_props(struct niu *np,
8189} 8189}
8190 8190
8191/* ESPC_PIO_EN_ENABLE must be set */ 8191/* ESPC_PIO_EN_ENABLE must be set */
8192static void __devinit niu_pci_vpd_fetch(struct niu *np, u32 start) 8192static void niu_pci_vpd_fetch(struct niu *np, u32 start)
8193{ 8193{
8194 u32 offset; 8194 u32 offset;
8195 int err; 8195 int err;
@@ -8224,7 +8224,7 @@ static void __devinit niu_pci_vpd_fetch(struct niu *np, u32 start)
8224} 8224}
8225 8225
8226/* ESPC_PIO_EN_ENABLE must be set */ 8226/* ESPC_PIO_EN_ENABLE must be set */
8227static u32 __devinit niu_pci_vpd_offset(struct niu *np) 8227static u32 niu_pci_vpd_offset(struct niu *np)
8228{ 8228{
8229 u32 start = 0, end = ESPC_EEPROM_SIZE, ret; 8229 u32 start = 0, end = ESPC_EEPROM_SIZE, ret;
8230 int err; 8230 int err;
@@ -8279,7 +8279,7 @@ static u32 __devinit niu_pci_vpd_offset(struct niu *np)
8279 return 0; 8279 return 0;
8280} 8280}
8281 8281
8282static int __devinit niu_phy_type_prop_decode(struct niu *np, 8282static int niu_phy_type_prop_decode(struct niu *np,
8283 const char *phy_prop) 8283 const char *phy_prop)
8284{ 8284{
8285 if (!strcmp(phy_prop, "mif")) { 8285 if (!strcmp(phy_prop, "mif")) {
@@ -8334,7 +8334,7 @@ static int niu_pci_vpd_get_nports(struct niu *np)
8334 return ports; 8334 return ports;
8335} 8335}
8336 8336
8337static void __devinit niu_pci_vpd_validate(struct niu *np) 8337static void niu_pci_vpd_validate(struct niu *np)
8338{ 8338{
8339 struct net_device *dev = np->dev; 8339 struct net_device *dev = np->dev;
8340 struct niu_vpd *vpd = &np->vpd; 8340 struct niu_vpd *vpd = &np->vpd;
@@ -8380,7 +8380,7 @@ static void __devinit niu_pci_vpd_validate(struct niu *np)
8380 memcpy(dev->dev_addr, dev->perm_addr, dev->addr_len); 8380 memcpy(dev->dev_addr, dev->perm_addr, dev->addr_len);
8381} 8381}
8382 8382
8383static int __devinit niu_pci_probe_sprom(struct niu *np) 8383static int niu_pci_probe_sprom(struct niu *np)
8384{ 8384{
8385 struct net_device *dev = np->dev; 8385 struct net_device *dev = np->dev;
8386 int len, i; 8386 int len, i;
@@ -8538,7 +8538,7 @@ static int __devinit niu_pci_probe_sprom(struct niu *np)
8538 return 0; 8538 return 0;
8539} 8539}
8540 8540
8541static int __devinit niu_get_and_validate_port(struct niu *np) 8541static int niu_get_and_validate_port(struct niu *np)
8542{ 8542{
8543 struct niu_parent *parent = np->parent; 8543 struct niu_parent *parent = np->parent;
8544 8544
@@ -8572,7 +8572,7 @@ static int __devinit niu_get_and_validate_port(struct niu *np)
8572 return 0; 8572 return 0;
8573} 8573}
8574 8574
8575static int __devinit phy_record(struct niu_parent *parent, 8575static int phy_record(struct niu_parent *parent,
8576 struct phy_probe_info *p, 8576 struct phy_probe_info *p,
8577 int dev_id_1, int dev_id_2, u8 phy_port, 8577 int dev_id_1, int dev_id_2, u8 phy_port,
8578 int type) 8578 int type)
@@ -8611,7 +8611,7 @@ static int __devinit phy_record(struct niu_parent *parent,
8611 return 0; 8611 return 0;
8612} 8612}
8613 8613
8614static int __devinit port_has_10g(struct phy_probe_info *p, int port) 8614static int port_has_10g(struct phy_probe_info *p, int port)
8615{ 8615{
8616 int i; 8616 int i;
8617 8617
@@ -8627,7 +8627,7 @@ static int __devinit port_has_10g(struct phy_probe_info *p, int port)
8627 return 0; 8627 return 0;
8628} 8628}
8629 8629
8630static int __devinit count_10g_ports(struct phy_probe_info *p, int *lowest) 8630static int count_10g_ports(struct phy_probe_info *p, int *lowest)
8631{ 8631{
8632 int port, cnt; 8632 int port, cnt;
8633 8633
@@ -8644,7 +8644,7 @@ static int __devinit count_10g_ports(struct phy_probe_info *p, int *lowest)
8644 return cnt; 8644 return cnt;
8645} 8645}
8646 8646
8647static int __devinit count_1g_ports(struct phy_probe_info *p, int *lowest) 8647static int count_1g_ports(struct phy_probe_info *p, int *lowest)
8648{ 8648{
8649 *lowest = 32; 8649 *lowest = 32;
8650 if (p->cur[PHY_TYPE_MII]) 8650 if (p->cur[PHY_TYPE_MII])
@@ -8653,7 +8653,7 @@ static int __devinit count_1g_ports(struct phy_probe_info *p, int *lowest)
8653 return p->cur[PHY_TYPE_MII]; 8653 return p->cur[PHY_TYPE_MII];
8654} 8654}
8655 8655
8656static void __devinit niu_n2_divide_channels(struct niu_parent *parent) 8656static void niu_n2_divide_channels(struct niu_parent *parent)
8657{ 8657{
8658 int num_ports = parent->num_ports; 8658 int num_ports = parent->num_ports;
8659 int i; 8659 int i;
@@ -8669,7 +8669,7 @@ static void __devinit niu_n2_divide_channels(struct niu_parent *parent)
8669 } 8669 }
8670} 8670}
8671 8671
8672static void __devinit niu_divide_channels(struct niu_parent *parent, 8672static void niu_divide_channels(struct niu_parent *parent,
8673 int num_10g, int num_1g) 8673 int num_10g, int num_1g)
8674{ 8674{
8675 int num_ports = parent->num_ports; 8675 int num_ports = parent->num_ports;
@@ -8731,7 +8731,7 @@ static void __devinit niu_divide_channels(struct niu_parent *parent,
8731 } 8731 }
8732} 8732}
8733 8733
8734static void __devinit niu_divide_rdc_groups(struct niu_parent *parent, 8734static void niu_divide_rdc_groups(struct niu_parent *parent,
8735 int num_10g, int num_1g) 8735 int num_10g, int num_1g)
8736{ 8736{
8737 int i, num_ports = parent->num_ports; 8737 int i, num_ports = parent->num_ports;
@@ -8776,7 +8776,7 @@ static void __devinit niu_divide_rdc_groups(struct niu_parent *parent,
8776 } 8776 }
8777} 8777}
8778 8778
8779static int __devinit fill_phy_probe_info(struct niu *np, 8779static int fill_phy_probe_info(struct niu *np,
8780 struct niu_parent *parent, 8780 struct niu_parent *parent,
8781 struct phy_probe_info *info) 8781 struct phy_probe_info *info)
8782{ 8782{
@@ -8819,7 +8819,7 @@ static int __devinit fill_phy_probe_info(struct niu *np,
8819 return err; 8819 return err;
8820} 8820}
8821 8821
8822static int __devinit walk_phys(struct niu *np, struct niu_parent *parent) 8822static int walk_phys(struct niu *np, struct niu_parent *parent)
8823{ 8823{
8824 struct phy_probe_info *info = &parent->phy_probe_info; 8824 struct phy_probe_info *info = &parent->phy_probe_info;
8825 int lowest_10g, lowest_1g; 8825 int lowest_10g, lowest_1g;
@@ -8948,7 +8948,7 @@ unknown_vg_1g_port:
8948 return -EINVAL; 8948 return -EINVAL;
8949} 8949}
8950 8950
8951static int __devinit niu_probe_ports(struct niu *np) 8951static int niu_probe_ports(struct niu *np)
8952{ 8952{
8953 struct niu_parent *parent = np->parent; 8953 struct niu_parent *parent = np->parent;
8954 int err, i; 8954 int err, i;
@@ -8969,7 +8969,7 @@ static int __devinit niu_probe_ports(struct niu *np)
8969 return 0; 8969 return 0;
8970} 8970}
8971 8971
8972static int __devinit niu_classifier_swstate_init(struct niu *np) 8972static int niu_classifier_swstate_init(struct niu *np)
8973{ 8973{
8974 struct niu_classifier *cp = &np->clas; 8974 struct niu_classifier *cp = &np->clas;
8975 8975
@@ -8981,7 +8981,7 @@ static int __devinit niu_classifier_swstate_init(struct niu *np)
8981 return fflp_early_init(np); 8981 return fflp_early_init(np);
8982} 8982}
8983 8983
8984static void __devinit niu_link_config_init(struct niu *np) 8984static void niu_link_config_init(struct niu *np)
8985{ 8985{
8986 struct niu_link_config *lp = &np->link_config; 8986 struct niu_link_config *lp = &np->link_config;
8987 8987
@@ -9006,7 +9006,7 @@ static void __devinit niu_link_config_init(struct niu *np)
9006#endif 9006#endif
9007} 9007}
9008 9008
9009static int __devinit niu_init_mac_ipp_pcs_base(struct niu *np) 9009static int niu_init_mac_ipp_pcs_base(struct niu *np)
9010{ 9010{
9011 switch (np->port) { 9011 switch (np->port) {
9012 case 0: 9012 case 0:
@@ -9045,7 +9045,7 @@ static int __devinit niu_init_mac_ipp_pcs_base(struct niu *np)
9045 return 0; 9045 return 0;
9046} 9046}
9047 9047
9048static void __devinit niu_try_msix(struct niu *np, u8 *ldg_num_map) 9048static void niu_try_msix(struct niu *np, u8 *ldg_num_map)
9049{ 9049{
9050 struct msix_entry msi_vec[NIU_NUM_LDG]; 9050 struct msix_entry msi_vec[NIU_NUM_LDG];
9051 struct niu_parent *parent = np->parent; 9051 struct niu_parent *parent = np->parent;
@@ -9084,7 +9084,7 @@ retry:
9084 np->num_ldg = num_irqs; 9084 np->num_ldg = num_irqs;
9085} 9085}
9086 9086
9087static int __devinit niu_n2_irq_init(struct niu *np, u8 *ldg_num_map) 9087static int niu_n2_irq_init(struct niu *np, u8 *ldg_num_map)
9088{ 9088{
9089#ifdef CONFIG_SPARC64 9089#ifdef CONFIG_SPARC64
9090 struct platform_device *op = np->op; 9090 struct platform_device *op = np->op;
@@ -9108,7 +9108,7 @@ static int __devinit niu_n2_irq_init(struct niu *np, u8 *ldg_num_map)
9108#endif 9108#endif
9109} 9109}
9110 9110
9111static int __devinit niu_ldg_init(struct niu *np) 9111static int niu_ldg_init(struct niu *np)
9112{ 9112{
9113 struct niu_parent *parent = np->parent; 9113 struct niu_parent *parent = np->parent;
9114 u8 ldg_num_map[NIU_NUM_LDG]; 9114 u8 ldg_num_map[NIU_NUM_LDG];
@@ -9225,13 +9225,13 @@ static int __devinit niu_ldg_init(struct niu *np)
9225 return 0; 9225 return 0;
9226} 9226}
9227 9227
9228static void __devexit niu_ldg_free(struct niu *np) 9228static void niu_ldg_free(struct niu *np)
9229{ 9229{
9230 if (np->flags & NIU_FLAGS_MSIX) 9230 if (np->flags & NIU_FLAGS_MSIX)
9231 pci_disable_msix(np->pdev); 9231 pci_disable_msix(np->pdev);
9232} 9232}
9233 9233
9234static int __devinit niu_get_of_props(struct niu *np) 9234static int niu_get_of_props(struct niu *np)
9235{ 9235{
9236#ifdef CONFIG_SPARC64 9236#ifdef CONFIG_SPARC64
9237 struct net_device *dev = np->dev; 9237 struct net_device *dev = np->dev;
@@ -9300,7 +9300,7 @@ static int __devinit niu_get_of_props(struct niu *np)
9300#endif 9300#endif
9301} 9301}
9302 9302
9303static int __devinit niu_get_invariants(struct niu *np) 9303static int niu_get_invariants(struct niu *np)
9304{ 9304{
9305 int err, have_props; 9305 int err, have_props;
9306 u32 offset; 9306 u32 offset;
@@ -9479,7 +9479,7 @@ static struct device_attribute niu_parent_attributes[] = {
9479 {} 9479 {}
9480}; 9480};
9481 9481
9482static struct niu_parent * __devinit niu_new_parent(struct niu *np, 9482static struct niu_parent *niu_new_parent(struct niu *np,
9483 union niu_parent_id *id, 9483 union niu_parent_id *id,
9484 u8 ptype) 9484 u8 ptype)
9485{ 9485{
@@ -9544,7 +9544,7 @@ fail_unregister:
9544 return NULL; 9544 return NULL;
9545} 9545}
9546 9546
9547static struct niu_parent * __devinit niu_get_parent(struct niu *np, 9547static struct niu_parent *niu_get_parent(struct niu *np,
9548 union niu_parent_id *id, 9548 union niu_parent_id *id,
9549 u8 ptype) 9549 u8 ptype)
9550{ 9550{
@@ -9662,7 +9662,7 @@ static const struct niu_ops niu_pci_ops = {
9662 .unmap_single = niu_pci_unmap_single, 9662 .unmap_single = niu_pci_unmap_single,
9663}; 9663};
9664 9664
9665static void __devinit niu_driver_version(void) 9665static void niu_driver_version(void)
9666{ 9666{
9667 static int niu_version_printed; 9667 static int niu_version_printed;
9668 9668
@@ -9670,7 +9670,7 @@ static void __devinit niu_driver_version(void)
9670 pr_info("%s", version); 9670 pr_info("%s", version);
9671} 9671}
9672 9672
9673static struct net_device * __devinit niu_alloc_and_init( 9673static struct net_device *niu_alloc_and_init(
9674 struct device *gen_dev, struct pci_dev *pdev, 9674 struct device *gen_dev, struct pci_dev *pdev,
9675 struct platform_device *op, const struct niu_ops *ops, 9675 struct platform_device *op, const struct niu_ops *ops,
9676 u8 port) 9676 u8 port)
@@ -9714,14 +9714,14 @@ static const struct net_device_ops niu_netdev_ops = {
9714 .ndo_change_mtu = niu_change_mtu, 9714 .ndo_change_mtu = niu_change_mtu,
9715}; 9715};
9716 9716
9717static void __devinit niu_assign_netdev_ops(struct net_device *dev) 9717static void niu_assign_netdev_ops(struct net_device *dev)
9718{ 9718{
9719 dev->netdev_ops = &niu_netdev_ops; 9719 dev->netdev_ops = &niu_netdev_ops;
9720 dev->ethtool_ops = &niu_ethtool_ops; 9720 dev->ethtool_ops = &niu_ethtool_ops;
9721 dev->watchdog_timeo = NIU_TX_TIMEOUT; 9721 dev->watchdog_timeo = NIU_TX_TIMEOUT;
9722} 9722}
9723 9723
9724static void __devinit niu_device_announce(struct niu *np) 9724static void niu_device_announce(struct niu *np)
9725{ 9725{
9726 struct net_device *dev = np->dev; 9726 struct net_device *dev = np->dev;
9727 9727
@@ -9750,13 +9750,13 @@ static void __devinit niu_device_announce(struct niu *np)
9750 } 9750 }
9751} 9751}
9752 9752
9753static void __devinit niu_set_basic_features(struct net_device *dev) 9753static void niu_set_basic_features(struct net_device *dev)
9754{ 9754{
9755 dev->hw_features = NETIF_F_SG | NETIF_F_HW_CSUM | NETIF_F_RXHASH; 9755 dev->hw_features = NETIF_F_SG | NETIF_F_HW_CSUM | NETIF_F_RXHASH;
9756 dev->features |= dev->hw_features | NETIF_F_RXCSUM; 9756 dev->features |= dev->hw_features | NETIF_F_RXCSUM;
9757} 9757}
9758 9758
9759static int __devinit niu_pci_init_one(struct pci_dev *pdev, 9759static int niu_pci_init_one(struct pci_dev *pdev,
9760 const struct pci_device_id *ent) 9760 const struct pci_device_id *ent)
9761{ 9761{
9762 union niu_parent_id parent_id; 9762 union niu_parent_id parent_id;
@@ -9895,7 +9895,7 @@ err_out_disable_pdev:
9895 return err; 9895 return err;
9896} 9896}
9897 9897
9898static void __devexit niu_pci_remove_one(struct pci_dev *pdev) 9898static void niu_pci_remove_one(struct pci_dev *pdev)
9899{ 9899{
9900 struct net_device *dev = pci_get_drvdata(pdev); 9900 struct net_device *dev = pci_get_drvdata(pdev);
9901 9901
@@ -9980,7 +9980,7 @@ static struct pci_driver niu_pci_driver = {
9980 .name = DRV_MODULE_NAME, 9980 .name = DRV_MODULE_NAME,
9981 .id_table = niu_pci_tbl, 9981 .id_table = niu_pci_tbl,
9982 .probe = niu_pci_init_one, 9982 .probe = niu_pci_init_one,
9983 .remove = __devexit_p(niu_pci_remove_one), 9983 .remove = niu_pci_remove_one,
9984 .suspend = niu_suspend, 9984 .suspend = niu_suspend,
9985 .resume = niu_resume, 9985 .resume = niu_resume,
9986}; 9986};
@@ -10044,7 +10044,7 @@ static const struct niu_ops niu_phys_ops = {
10044 .unmap_single = niu_phys_unmap_single, 10044 .unmap_single = niu_phys_unmap_single,
10045}; 10045};
10046 10046
10047static int __devinit niu_of_probe(struct platform_device *op) 10047static int niu_of_probe(struct platform_device *op)
10048{ 10048{
10049 union niu_parent_id parent_id; 10049 union niu_parent_id parent_id;
10050 struct net_device *dev; 10050 struct net_device *dev;
@@ -10158,7 +10158,7 @@ err_out:
10158 return err; 10158 return err;
10159} 10159}
10160 10160
10161static int __devexit niu_of_remove(struct platform_device *op) 10161static int niu_of_remove(struct platform_device *op)
10162{ 10162{
10163 struct net_device *dev = dev_get_drvdata(&op->dev); 10163 struct net_device *dev = dev_get_drvdata(&op->dev);
10164 10164
@@ -10211,7 +10211,7 @@ static struct platform_driver niu_of_driver = {
10211 .of_match_table = niu_match, 10211 .of_match_table = niu_match,
10212 }, 10212 },
10213 .probe = niu_of_probe, 10213 .probe = niu_of_probe,
10214 .remove = __devexit_p(niu_of_remove), 10214 .remove = niu_of_remove,
10215}; 10215};
10216 10216
10217#endif /* CONFIG_SPARC64 */ 10217#endif /* CONFIG_SPARC64 */
diff --git a/drivers/net/ethernet/sun/sunbmac.c b/drivers/net/ethernet/sun/sunbmac.c
index c9c977bf02ac..8fda91009226 100644
--- a/drivers/net/ethernet/sun/sunbmac.c
+++ b/drivers/net/ethernet/sun/sunbmac.c
@@ -1074,7 +1074,7 @@ static const struct net_device_ops bigmac_ops = {
1074 .ndo_validate_addr = eth_validate_addr, 1074 .ndo_validate_addr = eth_validate_addr,
1075}; 1075};
1076 1076
1077static int __devinit bigmac_ether_init(struct platform_device *op, 1077static int bigmac_ether_init(struct platform_device *op,
1078 struct platform_device *qec_op) 1078 struct platform_device *qec_op)
1079{ 1079{
1080 static int version_printed; 1080 static int version_printed;
@@ -1233,7 +1233,7 @@ fail_and_cleanup:
1233/* QEC can be the parent of either QuadEthernet or a BigMAC. We want 1233/* QEC can be the parent of either QuadEthernet or a BigMAC. We want
1234 * the latter. 1234 * the latter.
1235 */ 1235 */
1236static int __devinit bigmac_sbus_probe(struct platform_device *op) 1236static int bigmac_sbus_probe(struct platform_device *op)
1237{ 1237{
1238 struct device *parent = op->dev.parent; 1238 struct device *parent = op->dev.parent;
1239 struct platform_device *qec_op; 1239 struct platform_device *qec_op;
@@ -1243,7 +1243,7 @@ static int __devinit bigmac_sbus_probe(struct platform_device *op)
1243 return bigmac_ether_init(op, qec_op); 1243 return bigmac_ether_init(op, qec_op);
1244} 1244}
1245 1245
1246static int __devexit bigmac_sbus_remove(struct platform_device *op) 1246static int bigmac_sbus_remove(struct platform_device *op)
1247{ 1247{
1248 struct bigmac *bp = dev_get_drvdata(&op->dev); 1248 struct bigmac *bp = dev_get_drvdata(&op->dev);
1249 struct device *parent = op->dev.parent; 1249 struct device *parent = op->dev.parent;
@@ -1286,7 +1286,7 @@ static struct platform_driver bigmac_sbus_driver = {
1286 .of_match_table = bigmac_sbus_match, 1286 .of_match_table = bigmac_sbus_match,
1287 }, 1287 },
1288 .probe = bigmac_sbus_probe, 1288 .probe = bigmac_sbus_probe,
1289 .remove = __devexit_p(bigmac_sbus_remove), 1289 .remove = bigmac_sbus_remove,
1290}; 1290};
1291 1291
1292module_platform_driver(bigmac_sbus_driver); 1292module_platform_driver(bigmac_sbus_driver);
diff --git a/drivers/net/ethernet/sun/sungem.c b/drivers/net/ethernet/sun/sungem.c
index 6c8695ec7cb9..c7bc0561b8eb 100644
--- a/drivers/net/ethernet/sun/sungem.c
+++ b/drivers/net/ethernet/sun/sungem.c
@@ -77,7 +77,7 @@
77#define DRV_VERSION "1.0" 77#define DRV_VERSION "1.0"
78#define DRV_AUTHOR "David S. Miller <davem@redhat.com>" 78#define DRV_AUTHOR "David S. Miller <davem@redhat.com>"
79 79
80static char version[] __devinitdata = 80static char version[] =
81 DRV_NAME ".c:v" DRV_VERSION " " DRV_AUTHOR "\n"; 81 DRV_NAME ".c:v" DRV_VERSION " " DRV_AUTHOR "\n";
82 82
83MODULE_AUTHOR(DRV_AUTHOR); 83MODULE_AUTHOR(DRV_AUTHOR);
@@ -2763,7 +2763,7 @@ static void get_gem_mac_nonobp(struct pci_dev *pdev, unsigned char *dev_addr)
2763} 2763}
2764#endif /* not Sparc and not PPC */ 2764#endif /* not Sparc and not PPC */
2765 2765
2766static int __devinit gem_get_device_address(struct gem *gp) 2766static int gem_get_device_address(struct gem *gp)
2767{ 2767{
2768#if defined(CONFIG_SPARC) || defined(CONFIG_PPC_PMAC) 2768#if defined(CONFIG_SPARC) || defined(CONFIG_PPC_PMAC)
2769 struct net_device *dev = gp->dev; 2769 struct net_device *dev = gp->dev;
@@ -2827,7 +2827,7 @@ static const struct net_device_ops gem_netdev_ops = {
2827#endif 2827#endif
2828}; 2828};
2829 2829
2830static int __devinit gem_init_one(struct pci_dev *pdev, 2830static int gem_init_one(struct pci_dev *pdev,
2831 const struct pci_device_id *ent) 2831 const struct pci_device_id *ent)
2832{ 2832{
2833 unsigned long gemreg_base, gemreg_len; 2833 unsigned long gemreg_base, gemreg_len;
diff --git a/drivers/net/ethernet/sun/sunhme.c b/drivers/net/ethernet/sun/sunhme.c
index 73f341b8befb..43babc33a2c9 100644
--- a/drivers/net/ethernet/sun/sunhme.c
+++ b/drivers/net/ethernet/sun/sunhme.c
@@ -2499,7 +2499,7 @@ static int hme_version_printed;
2499 * 2499 *
2500 * Return NULL on failure. 2500 * Return NULL on failure.
2501 */ 2501 */
2502static struct quattro * __devinit quattro_sbus_find(struct platform_device *child) 2502static struct quattro *quattro_sbus_find(struct platform_device *child)
2503{ 2503{
2504 struct device *parent = child->dev.parent; 2504 struct device *parent = child->dev.parent;
2505 struct platform_device *op; 2505 struct platform_device *op;
@@ -2580,7 +2580,7 @@ static void quattro_sbus_free_irqs(void)
2580#endif /* CONFIG_SBUS */ 2580#endif /* CONFIG_SBUS */
2581 2581
2582#ifdef CONFIG_PCI 2582#ifdef CONFIG_PCI
2583static struct quattro * __devinit quattro_pci_find(struct pci_dev *pdev) 2583static struct quattro *quattro_pci_find(struct pci_dev *pdev)
2584{ 2584{
2585 struct pci_dev *bdev = pdev->bus->self; 2585 struct pci_dev *bdev = pdev->bus->self;
2586 struct quattro *qp; 2586 struct quattro *qp;
@@ -2623,7 +2623,7 @@ static const struct net_device_ops hme_netdev_ops = {
2623}; 2623};
2624 2624
2625#ifdef CONFIG_SBUS 2625#ifdef CONFIG_SBUS
2626static int __devinit happy_meal_sbus_probe_one(struct platform_device *op, int is_qfe) 2626static int happy_meal_sbus_probe_one(struct platform_device *op, int is_qfe)
2627{ 2627{
2628 struct device_node *dp = op->dev.of_node, *sbus_dp; 2628 struct device_node *dp = op->dev.of_node, *sbus_dp;
2629 struct quattro *qp = NULL; 2629 struct quattro *qp = NULL;
@@ -2927,7 +2927,7 @@ static void get_hme_mac_nonsparc(struct pci_dev *pdev, unsigned char *dev_addr)
2927} 2927}
2928#endif /* !(CONFIG_SPARC) */ 2928#endif /* !(CONFIG_SPARC) */
2929 2929
2930static int __devinit happy_meal_pci_probe(struct pci_dev *pdev, 2930static int happy_meal_pci_probe(struct pci_dev *pdev,
2931 const struct pci_device_id *ent) 2931 const struct pci_device_id *ent)
2932{ 2932{
2933 struct quattro *qp = NULL; 2933 struct quattro *qp = NULL;
@@ -3162,7 +3162,7 @@ err_out:
3162 return err; 3162 return err;
3163} 3163}
3164 3164
3165static void __devexit happy_meal_pci_remove(struct pci_dev *pdev) 3165static void happy_meal_pci_remove(struct pci_dev *pdev)
3166{ 3166{
3167 struct happy_meal *hp = dev_get_drvdata(&pdev->dev); 3167 struct happy_meal *hp = dev_get_drvdata(&pdev->dev);
3168 struct net_device *net_dev = hp->dev; 3168 struct net_device *net_dev = hp->dev;
@@ -3190,7 +3190,7 @@ static struct pci_driver hme_pci_driver = {
3190 .name = "hme", 3190 .name = "hme",
3191 .id_table = happymeal_pci_ids, 3191 .id_table = happymeal_pci_ids,
3192 .probe = happy_meal_pci_probe, 3192 .probe = happy_meal_pci_probe,
3193 .remove = __devexit_p(happy_meal_pci_remove), 3193 .remove = happy_meal_pci_remove,
3194}; 3194};
3195 3195
3196static int __init happy_meal_pci_init(void) 3196static int __init happy_meal_pci_init(void)
@@ -3216,7 +3216,7 @@ static void happy_meal_pci_exit(void)
3216 3216
3217#ifdef CONFIG_SBUS 3217#ifdef CONFIG_SBUS
3218static const struct of_device_id hme_sbus_match[]; 3218static const struct of_device_id hme_sbus_match[];
3219static int __devinit hme_sbus_probe(struct platform_device *op) 3219static int hme_sbus_probe(struct platform_device *op)
3220{ 3220{
3221 const struct of_device_id *match; 3221 const struct of_device_id *match;
3222 struct device_node *dp = op->dev.of_node; 3222 struct device_node *dp = op->dev.of_node;
@@ -3234,7 +3234,7 @@ static int __devinit hme_sbus_probe(struct platform_device *op)
3234 return happy_meal_sbus_probe_one(op, is_qfe); 3234 return happy_meal_sbus_probe_one(op, is_qfe);
3235} 3235}
3236 3236
3237static int __devexit hme_sbus_remove(struct platform_device *op) 3237static int hme_sbus_remove(struct platform_device *op)
3238{ 3238{
3239 struct happy_meal *hp = dev_get_drvdata(&op->dev); 3239 struct happy_meal *hp = dev_get_drvdata(&op->dev);
3240 struct net_device *net_dev = hp->dev; 3240 struct net_device *net_dev = hp->dev;
@@ -3284,7 +3284,7 @@ static struct platform_driver hme_sbus_driver = {
3284 .of_match_table = hme_sbus_match, 3284 .of_match_table = hme_sbus_match,
3285 }, 3285 },
3286 .probe = hme_sbus_probe, 3286 .probe = hme_sbus_probe,
3287 .remove = __devexit_p(hme_sbus_remove), 3287 .remove = hme_sbus_remove,
3288}; 3288};
3289 3289
3290static int __init happy_meal_sbus_init(void) 3290static int __init happy_meal_sbus_init(void)
diff --git a/drivers/net/ethernet/sun/sunqe.c b/drivers/net/ethernet/sun/sunqe.c
index aeded7ff1c8f..1dcee6915843 100644
--- a/drivers/net/ethernet/sun/sunqe.c
+++ b/drivers/net/ethernet/sun/sunqe.c
@@ -744,7 +744,7 @@ static void qec_init_once(struct sunqec *qecp, struct platform_device *op)
744 qecp->gregs + GLOB_RSIZE); 744 qecp->gregs + GLOB_RSIZE);
745} 745}
746 746
747static u8 __devinit qec_get_burst(struct device_node *dp) 747static u8 qec_get_burst(struct device_node *dp)
748{ 748{
749 u8 bsizes, bsizes_more; 749 u8 bsizes, bsizes_more;
750 750
@@ -764,7 +764,7 @@ static u8 __devinit qec_get_burst(struct device_node *dp)
764 return bsizes; 764 return bsizes;
765} 765}
766 766
767static struct sunqec * __devinit get_qec(struct platform_device *child) 767static struct sunqec *get_qec(struct platform_device *child)
768{ 768{
769 struct platform_device *op = to_platform_device(child->dev.parent); 769 struct platform_device *op = to_platform_device(child->dev.parent);
770 struct sunqec *qecp; 770 struct sunqec *qecp;
@@ -830,7 +830,7 @@ static const struct net_device_ops qec_ops = {
830 .ndo_validate_addr = eth_validate_addr, 830 .ndo_validate_addr = eth_validate_addr,
831}; 831};
832 832
833static int __devinit qec_ether_init(struct platform_device *op) 833static int qec_ether_init(struct platform_device *op)
834{ 834{
835 static unsigned version_printed; 835 static unsigned version_printed;
836 struct net_device *dev; 836 struct net_device *dev;
@@ -929,12 +929,12 @@ fail:
929 return res; 929 return res;
930} 930}
931 931
932static int __devinit qec_sbus_probe(struct platform_device *op) 932static int qec_sbus_probe(struct platform_device *op)
933{ 933{
934 return qec_ether_init(op); 934 return qec_ether_init(op);
935} 935}
936 936
937static int __devexit qec_sbus_remove(struct platform_device *op) 937static int qec_sbus_remove(struct platform_device *op)
938{ 938{
939 struct sunqe *qp = dev_get_drvdata(&op->dev); 939 struct sunqe *qp = dev_get_drvdata(&op->dev);
940 struct net_device *net_dev = qp->dev; 940 struct net_device *net_dev = qp->dev;
@@ -971,7 +971,7 @@ static struct platform_driver qec_sbus_driver = {
971 .of_match_table = qec_sbus_match, 971 .of_match_table = qec_sbus_match,
972 }, 972 },
973 .probe = qec_sbus_probe, 973 .probe = qec_sbus_probe,
974 .remove = __devexit_p(qec_sbus_remove), 974 .remove = qec_sbus_remove,
975}; 975};
976 976
977static int __init qec_init(void) 977static int __init qec_init(void)
diff --git a/drivers/net/ethernet/sun/sunvnet.c b/drivers/net/ethernet/sun/sunvnet.c
index a108db35924e..2852b7099eee 100644
--- a/drivers/net/ethernet/sun/sunvnet.c
+++ b/drivers/net/ethernet/sun/sunvnet.c
@@ -25,7 +25,7 @@
25#define DRV_MODULE_VERSION "1.0" 25#define DRV_MODULE_VERSION "1.0"
26#define DRV_MODULE_RELDATE "June 25, 2007" 26#define DRV_MODULE_RELDATE "June 25, 2007"
27 27
28static char version[] __devinitdata = 28static char version[] =
29 DRV_MODULE_NAME ".c:v" DRV_MODULE_VERSION " (" DRV_MODULE_RELDATE ")\n"; 29 DRV_MODULE_NAME ".c:v" DRV_MODULE_VERSION " (" DRV_MODULE_RELDATE ")\n";
30MODULE_AUTHOR("David S. Miller (davem@davemloft.net)"); 30MODULE_AUTHOR("David S. Miller (davem@davemloft.net)");
31MODULE_DESCRIPTION("Sun LDOM virtual network driver"); 31MODULE_DESCRIPTION("Sun LDOM virtual network driver");
@@ -937,7 +937,7 @@ static void vnet_port_free_tx_bufs(struct vnet_port *port)
937 } 937 }
938} 938}
939 939
940static int __devinit vnet_port_alloc_tx_bufs(struct vnet_port *port) 940static int vnet_port_alloc_tx_bufs(struct vnet_port *port)
941{ 941{
942 struct vio_dring_state *dr; 942 struct vio_dring_state *dr;
943 unsigned long len; 943 unsigned long len;
@@ -1019,7 +1019,7 @@ static const struct net_device_ops vnet_ops = {
1019 .ndo_start_xmit = vnet_start_xmit, 1019 .ndo_start_xmit = vnet_start_xmit,
1020}; 1020};
1021 1021
1022static struct vnet * __devinit vnet_new(const u64 *local_mac) 1022static struct vnet *vnet_new(const u64 *local_mac)
1023{ 1023{
1024 struct net_device *dev; 1024 struct net_device *dev;
1025 struct vnet *vp; 1025 struct vnet *vp;
@@ -1067,7 +1067,7 @@ err_out_free_dev:
1067 return ERR_PTR(err); 1067 return ERR_PTR(err);
1068} 1068}
1069 1069
1070static struct vnet * __devinit vnet_find_or_create(const u64 *local_mac) 1070static struct vnet *vnet_find_or_create(const u64 *local_mac)
1071{ 1071{
1072 struct vnet *iter, *vp; 1072 struct vnet *iter, *vp;
1073 1073
@@ -1088,7 +1088,7 @@ static struct vnet * __devinit vnet_find_or_create(const u64 *local_mac)
1088 1088
1089static const char *local_mac_prop = "local-mac-address"; 1089static const char *local_mac_prop = "local-mac-address";
1090 1090
1091static struct vnet * __devinit vnet_find_parent(struct mdesc_handle *hp, 1091static struct vnet *vnet_find_parent(struct mdesc_handle *hp,
1092 u64 port_node) 1092 u64 port_node)
1093{ 1093{
1094 const u64 *local_mac = NULL; 1094 const u64 *local_mac = NULL;
@@ -1125,14 +1125,14 @@ static struct vio_driver_ops vnet_vio_ops = {
1125 .handshake_complete = vnet_handshake_complete, 1125 .handshake_complete = vnet_handshake_complete,
1126}; 1126};
1127 1127
1128static void __devinit print_version(void) 1128static void print_version(void)
1129{ 1129{
1130 printk_once(KERN_INFO "%s", version); 1130 printk_once(KERN_INFO "%s", version);
1131} 1131}
1132 1132
1133const char *remote_macaddr_prop = "remote-mac-address"; 1133const char *remote_macaddr_prop = "remote-mac-address";
1134 1134
1135static int __devinit vnet_port_probe(struct vio_dev *vdev, 1135static int vnet_port_probe(struct vio_dev *vdev,
1136 const struct vio_device_id *id) 1136 const struct vio_device_id *id)
1137{ 1137{
1138 struct mdesc_handle *hp; 1138 struct mdesc_handle *hp;
diff --git a/drivers/net/ethernet/tehuti/tehuti.c b/drivers/net/ethernet/tehuti/tehuti.c
index 6ce9edd95c04..1e4d743ff03e 100644
--- a/drivers/net/ethernet/tehuti/tehuti.c
+++ b/drivers/net/ethernet/tehuti/tehuti.c
@@ -1914,7 +1914,7 @@ static const struct net_device_ops bdx_netdev_ops = {
1914 */ 1914 */
1915 1915
1916/* TBD: netif_msg should be checked and implemented. I disable it for now */ 1916/* TBD: netif_msg should be checked and implemented. I disable it for now */
1917static int __devinit 1917static int
1918bdx_probe(struct pci_dev *pdev, const struct pci_device_id *ent) 1918bdx_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
1919{ 1919{
1920 struct net_device *ndev; 1920 struct net_device *ndev;
@@ -2427,7 +2427,7 @@ static void bdx_set_ethtool_ops(struct net_device *netdev)
2427 * Hot-Plug event, or because the driver is going to be removed from 2427 * Hot-Plug event, or because the driver is going to be removed from
2428 * memory. 2428 * memory.
2429 **/ 2429 **/
2430static void __devexit bdx_remove(struct pci_dev *pdev) 2430static void bdx_remove(struct pci_dev *pdev)
2431{ 2431{
2432 struct pci_nic *nic = pci_get_drvdata(pdev); 2432 struct pci_nic *nic = pci_get_drvdata(pdev);
2433 struct net_device *ndev; 2433 struct net_device *ndev;
@@ -2458,7 +2458,7 @@ static struct pci_driver bdx_pci_driver = {
2458 .name = BDX_DRV_NAME, 2458 .name = BDX_DRV_NAME,
2459 .id_table = bdx_pci_tbl, 2459 .id_table = bdx_pci_tbl,
2460 .probe = bdx_probe, 2460 .probe = bdx_probe,
2461 .remove = __devexit_p(bdx_remove), 2461 .remove = bdx_remove,
2462}; 2462};
2463 2463
2464/* 2464/*
diff --git a/drivers/net/ethernet/ti/cpmac.c b/drivers/net/ethernet/ti/cpmac.c
index 860c2526f08d..d9625f62b026 100644
--- a/drivers/net/ethernet/ti/cpmac.c
+++ b/drivers/net/ethernet/ti/cpmac.c
@@ -1110,7 +1110,7 @@ static const struct net_device_ops cpmac_netdev_ops = {
1110 1110
1111static int external_switch; 1111static int external_switch;
1112 1112
1113static int __devinit cpmac_probe(struct platform_device *pdev) 1113static int cpmac_probe(struct platform_device *pdev)
1114{ 1114{
1115 int rc, phy_id; 1115 int rc, phy_id;
1116 char mdio_bus_id[MII_BUS_ID_SIZE]; 1116 char mdio_bus_id[MII_BUS_ID_SIZE];
@@ -1204,7 +1204,7 @@ fail:
1204 return rc; 1204 return rc;
1205} 1205}
1206 1206
1207static int __devexit cpmac_remove(struct platform_device *pdev) 1207static int cpmac_remove(struct platform_device *pdev)
1208{ 1208{
1209 struct net_device *dev = platform_get_drvdata(pdev); 1209 struct net_device *dev = platform_get_drvdata(pdev);
1210 unregister_netdev(dev); 1210 unregister_netdev(dev);
@@ -1216,10 +1216,10 @@ static struct platform_driver cpmac_driver = {
1216 .driver.name = "cpmac", 1216 .driver.name = "cpmac",
1217 .driver.owner = THIS_MODULE, 1217 .driver.owner = THIS_MODULE,
1218 .probe = cpmac_probe, 1218 .probe = cpmac_probe,
1219 .remove = __devexit_p(cpmac_remove), 1219 .remove = cpmac_remove,
1220}; 1220};
1221 1221
1222int __devinit cpmac_init(void) 1222int cpmac_init(void)
1223{ 1223{
1224 u32 mask; 1224 u32 mask;
1225 int i, res; 1225 int i, res;
@@ -1290,7 +1290,7 @@ fail_alloc:
1290 return res; 1290 return res;
1291} 1291}
1292 1292
1293void __devexit cpmac_exit(void) 1293void cpmac_exit(void)
1294{ 1294{
1295 platform_driver_unregister(&cpmac_driver); 1295 platform_driver_unregister(&cpmac_driver);
1296 mdiobus_unregister(cpmac_mii); 1296 mdiobus_unregister(cpmac_mii);
diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c
index c9714e1c164a..40aff684aa23 100644
--- a/drivers/net/ethernet/ti/cpsw.c
+++ b/drivers/net/ethernet/ti/cpsw.c
@@ -1136,7 +1136,7 @@ error_ret:
1136 return ret; 1136 return ret;
1137} 1137}
1138 1138
1139static int __devinit cpsw_probe(struct platform_device *pdev) 1139static int cpsw_probe(struct platform_device *pdev)
1140{ 1140{
1141 struct cpsw_platform_data *data = pdev->dev.platform_data; 1141 struct cpsw_platform_data *data = pdev->dev.platform_data;
1142 struct net_device *ndev; 1142 struct net_device *ndev;
@@ -1398,7 +1398,7 @@ clean_ndev_ret:
1398 return ret; 1398 return ret;
1399} 1399}
1400 1400
1401static int __devexit cpsw_remove(struct platform_device *pdev) 1401static int cpsw_remove(struct platform_device *pdev)
1402{ 1402{
1403 struct net_device *ndev = platform_get_drvdata(pdev); 1403 struct net_device *ndev = platform_get_drvdata(pdev);
1404 struct cpsw_priv *priv = netdev_priv(ndev); 1404 struct cpsw_priv *priv = netdev_priv(ndev);
@@ -1467,7 +1467,7 @@ static struct platform_driver cpsw_driver = {
1467 .of_match_table = of_match_ptr(cpsw_of_mtable), 1467 .of_match_table = of_match_ptr(cpsw_of_mtable),
1468 }, 1468 },
1469 .probe = cpsw_probe, 1469 .probe = cpsw_probe,
1470 .remove = __devexit_p(cpsw_remove), 1470 .remove = cpsw_remove,
1471}; 1471};
1472 1472
1473static int __init cpsw_init(void) 1473static int __init cpsw_init(void)
diff --git a/drivers/net/ethernet/ti/davinci_emac.c b/drivers/net/ethernet/ti/davinci_emac.c
index fce89a0ab06e..2a3e2c56bc60 100644
--- a/drivers/net/ethernet/ti/davinci_emac.c
+++ b/drivers/net/ethernet/ti/davinci_emac.c
@@ -1850,7 +1850,7 @@ static struct emac_platform_data
1850 * resource information from platform init and register a network device 1850 * resource information from platform init and register a network device
1851 * and allocate resources necessary for driver to perform 1851 * and allocate resources necessary for driver to perform
1852 */ 1852 */
1853static int __devinit davinci_emac_probe(struct platform_device *pdev) 1853static int davinci_emac_probe(struct platform_device *pdev)
1854{ 1854{
1855 int rc = 0; 1855 int rc = 0;
1856 struct resource *res; 1856 struct resource *res;
@@ -2039,7 +2039,7 @@ no_ndev:
2039 * Called when removing the device driver. We disable clock usage and release 2039 * Called when removing the device driver. We disable clock usage and release
2040 * the resources taken up by the driver and unregister network device 2040 * the resources taken up by the driver and unregister network device
2041 */ 2041 */
2042static int __devexit davinci_emac_remove(struct platform_device *pdev) 2042static int davinci_emac_remove(struct platform_device *pdev)
2043{ 2043{
2044 struct resource *res; 2044 struct resource *res;
2045 struct net_device *ndev = platform_get_drvdata(pdev); 2045 struct net_device *ndev = platform_get_drvdata(pdev);
@@ -2107,7 +2107,7 @@ static struct platform_driver davinci_emac_driver = {
2107 .of_match_table = of_match_ptr(davinci_emac_of_match), 2107 .of_match_table = of_match_ptr(davinci_emac_of_match),
2108 }, 2108 },
2109 .probe = davinci_emac_probe, 2109 .probe = davinci_emac_probe,
2110 .remove = __devexit_p(davinci_emac_remove), 2110 .remove = davinci_emac_remove,
2111}; 2111};
2112 2112
2113/** 2113/**
diff --git a/drivers/net/ethernet/ti/davinci_mdio.c b/drivers/net/ethernet/ti/davinci_mdio.c
index ae74280c0b9f..cca25509b039 100644
--- a/drivers/net/ethernet/ti/davinci_mdio.c
+++ b/drivers/net/ethernet/ti/davinci_mdio.c
@@ -310,7 +310,7 @@ static int davinci_mdio_probe_dt(struct mdio_platform_data *data,
310} 310}
311 311
312 312
313static int __devinit davinci_mdio_probe(struct platform_device *pdev) 313static int davinci_mdio_probe(struct platform_device *pdev)
314{ 314{
315 struct mdio_platform_data *pdata = pdev->dev.platform_data; 315 struct mdio_platform_data *pdata = pdev->dev.platform_data;
316 struct device *dev = &pdev->dev; 316 struct device *dev = &pdev->dev;
@@ -416,7 +416,7 @@ bail_out:
416 return ret; 416 return ret;
417} 417}
418 418
419static int __devexit davinci_mdio_remove(struct platform_device *pdev) 419static int davinci_mdio_remove(struct platform_device *pdev)
420{ 420{
421 struct device *dev = &pdev->dev; 421 struct device *dev = &pdev->dev;
422 struct davinci_mdio_data *data = dev_get_drvdata(dev); 422 struct davinci_mdio_data *data = dev_get_drvdata(dev);
@@ -496,7 +496,7 @@ static struct platform_driver davinci_mdio_driver = {
496 .of_match_table = of_match_ptr(davinci_mdio_of_mtable), 496 .of_match_table = of_match_ptr(davinci_mdio_of_mtable),
497 }, 497 },
498 .probe = davinci_mdio_probe, 498 .probe = davinci_mdio_probe,
499 .remove = __devexit_p(davinci_mdio_remove), 499 .remove = davinci_mdio_remove,
500}; 500};
501 501
502static int __init davinci_mdio_init(void) 502static int __init davinci_mdio_init(void)
diff --git a/drivers/net/ethernet/ti/tlan.c b/drivers/net/ethernet/ti/tlan.c
index 3e6abf0f2771..af16081677e7 100644
--- a/drivers/net/ethernet/ti/tlan.c
+++ b/drivers/net/ethernet/ti/tlan.c
@@ -300,7 +300,7 @@ these functions are more or less common to all linux network drivers.
300 **************************************************************/ 300 **************************************************************/
301 301
302 302
303static void __devexit tlan_remove_one(struct pci_dev *pdev) 303static void tlan_remove_one(struct pci_dev *pdev)
304{ 304{
305 struct net_device *dev = pci_get_drvdata(pdev); 305 struct net_device *dev = pci_get_drvdata(pdev);
306 struct tlan_priv *priv = netdev_priv(dev); 306 struct tlan_priv *priv = netdev_priv(dev);
@@ -392,7 +392,7 @@ static struct pci_driver tlan_driver = {
392 .name = "tlan", 392 .name = "tlan",
393 .id_table = tlan_pci_tbl, 393 .id_table = tlan_pci_tbl,
394 .probe = tlan_init_one, 394 .probe = tlan_init_one,
395 .remove = __devexit_p(tlan_remove_one), 395 .remove = tlan_remove_one,
396 .suspend = tlan_suspend, 396 .suspend = tlan_suspend,
397 .resume = tlan_resume, 397 .resume = tlan_resume,
398}; 398};
@@ -434,7 +434,7 @@ err_out_pci_free:
434} 434}
435 435
436 436
437static int __devinit tlan_init_one(struct pci_dev *pdev, 437static int tlan_init_one(struct pci_dev *pdev,
438 const struct pci_device_id *ent) 438 const struct pci_device_id *ent)
439{ 439{
440 return tlan_probe1(pdev, -1, -1, 0, ent); 440 return tlan_probe1(pdev, -1, -1, 0, ent);
@@ -460,7 +460,7 @@ static int __devinit tlan_init_one(struct pci_dev *pdev,
460* 460*
461**************************************************************/ 461**************************************************************/
462 462
463static int __devinit tlan_probe1(struct pci_dev *pdev, 463static int tlan_probe1(struct pci_dev *pdev,
464 long ioaddr, int irq, int rev, 464 long ioaddr, int irq, int rev,
465 const struct pci_device_id *ent) 465 const struct pci_device_id *ent)
466{ 466{
diff --git a/drivers/net/ethernet/toshiba/ps3_gelic_net.c b/drivers/net/ethernet/toshiba/ps3_gelic_net.c
index 5ee82a77723b..d7c8af7cca02 100644
--- a/drivers/net/ethernet/toshiba/ps3_gelic_net.c
+++ b/drivers/net/ethernet/toshiba/ps3_gelic_net.c
@@ -234,7 +234,7 @@ static void gelic_card_free_chain(struct gelic_card *card,
234 * 234 *
235 * returns 0 on success, <0 on failure 235 * returns 0 on success, <0 on failure
236 */ 236 */
237static int __devinit gelic_card_init_chain(struct gelic_card *card, 237static int gelic_card_init_chain(struct gelic_card *card,
238 struct gelic_descr_chain *chain, 238 struct gelic_descr_chain *chain,
239 struct gelic_descr *start_descr, 239 struct gelic_descr *start_descr,
240 int no) 240 int no)
@@ -428,7 +428,7 @@ rewind:
428 * 428 *
429 * returns 0 on success, < 0 on failure 429 * returns 0 on success, < 0 on failure
430 */ 430 */
431static int __devinit gelic_card_alloc_rx_skbs(struct gelic_card *card) 431static int gelic_card_alloc_rx_skbs(struct gelic_card *card)
432{ 432{
433 struct gelic_descr_chain *chain; 433 struct gelic_descr_chain *chain;
434 int ret; 434 int ret;
@@ -1468,7 +1468,7 @@ static const struct net_device_ops gelic_netdevice_ops = {
1468 * 1468 *
1469 * fills out function pointers in the net_device structure 1469 * fills out function pointers in the net_device structure
1470 */ 1470 */
1471static void __devinit gelic_ether_setup_netdev_ops(struct net_device *netdev, 1471static void gelic_ether_setup_netdev_ops(struct net_device *netdev,
1472 struct napi_struct *napi) 1472 struct napi_struct *napi)
1473{ 1473{
1474 netdev->watchdog_timeo = GELIC_NET_WATCHDOG_TIMEOUT; 1474 netdev->watchdog_timeo = GELIC_NET_WATCHDOG_TIMEOUT;
@@ -1489,7 +1489,7 @@ static void __devinit gelic_ether_setup_netdev_ops(struct net_device *netdev,
1489 * gelic_ether_setup_netdev initializes the net_device structure 1489 * gelic_ether_setup_netdev initializes the net_device structure
1490 * and register it. 1490 * and register it.
1491 **/ 1491 **/
1492int __devinit gelic_net_setup_netdev(struct net_device *netdev, 1492int gelic_net_setup_netdev(struct net_device *netdev,
1493 struct gelic_card *card) 1493 struct gelic_card *card)
1494{ 1494{
1495 int status; 1495 int status;
@@ -1542,7 +1542,7 @@ int __devinit gelic_net_setup_netdev(struct net_device *netdev,
1542 * the card and net_device structures are linked to each other 1542 * the card and net_device structures are linked to each other
1543 */ 1543 */
1544#define GELIC_ALIGN (32) 1544#define GELIC_ALIGN (32)
1545static struct gelic_card * __devinit gelic_alloc_card_net(struct net_device **netdev) 1545static struct gelic_card *gelic_alloc_card_net(struct net_device **netdev)
1546{ 1546{
1547 struct gelic_card *card; 1547 struct gelic_card *card;
1548 struct gelic_port *port; 1548 struct gelic_port *port;
@@ -1593,7 +1593,7 @@ static struct gelic_card * __devinit gelic_alloc_card_net(struct net_device **ne
1593 return card; 1593 return card;
1594} 1594}
1595 1595
1596static void __devinit gelic_card_get_vlan_info(struct gelic_card *card) 1596static void gelic_card_get_vlan_info(struct gelic_card *card)
1597{ 1597{
1598 u64 v1, v2; 1598 u64 v1, v2;
1599 int status; 1599 int status;
@@ -1667,7 +1667,7 @@ static void __devinit gelic_card_get_vlan_info(struct gelic_card *card)
1667/** 1667/**
1668 * ps3_gelic_driver_probe - add a device to the control of this driver 1668 * ps3_gelic_driver_probe - add a device to the control of this driver
1669 */ 1669 */
1670static int __devinit ps3_gelic_driver_probe(struct ps3_system_bus_device *dev) 1670static int ps3_gelic_driver_probe(struct ps3_system_bus_device *dev)
1671{ 1671{
1672 struct gelic_card *card; 1672 struct gelic_card *card;
1673 struct net_device *netdev; 1673 struct net_device *netdev;
diff --git a/drivers/net/ethernet/toshiba/ps3_gelic_wireless.c b/drivers/net/ethernet/toshiba/ps3_gelic_wireless.c
index 72b775fd49c8..d568af1eb4f4 100644
--- a/drivers/net/ethernet/toshiba/ps3_gelic_wireless.c
+++ b/drivers/net/ethernet/toshiba/ps3_gelic_wireless.c
@@ -2305,7 +2305,7 @@ static const struct iw_handler_def gelic_wl_wext_handler_def = {
2305 .get_wireless_stats = gelic_wl_get_wireless_stats, 2305 .get_wireless_stats = gelic_wl_get_wireless_stats,
2306}; 2306};
2307 2307
2308static struct net_device * __devinit gelic_wl_alloc(struct gelic_card *card) 2308static struct net_device *gelic_wl_alloc(struct gelic_card *card)
2309{ 2309{
2310 struct net_device *netdev; 2310 struct net_device *netdev;
2311 struct gelic_port *port; 2311 struct gelic_port *port;
@@ -2582,7 +2582,7 @@ static const struct ethtool_ops gelic_wl_ethtool_ops = {
2582 .get_link = gelic_wl_get_link, 2582 .get_link = gelic_wl_get_link,
2583}; 2583};
2584 2584
2585static void __devinit gelic_wl_setup_netdev_ops(struct net_device *netdev) 2585static void gelic_wl_setup_netdev_ops(struct net_device *netdev)
2586{ 2586{
2587 struct gelic_wl_info *wl; 2587 struct gelic_wl_info *wl;
2588 wl = port_wl(netdev_priv(netdev)); 2588 wl = port_wl(netdev_priv(netdev));
@@ -2598,7 +2598,7 @@ static void __devinit gelic_wl_setup_netdev_ops(struct net_device *netdev)
2598/* 2598/*
2599 * driver probe/remove 2599 * driver probe/remove
2600 */ 2600 */
2601int __devinit gelic_wl_driver_probe(struct gelic_card *card) 2601int gelic_wl_driver_probe(struct gelic_card *card)
2602{ 2602{
2603 int ret; 2603 int ret;
2604 struct net_device *netdev; 2604 struct net_device *netdev;
diff --git a/drivers/net/ethernet/toshiba/spider_net.c b/drivers/net/ethernet/toshiba/spider_net.c
index c1ebfe9efcb3..f1b91fd7e41c 100644
--- a/drivers/net/ethernet/toshiba/spider_net.c
+++ b/drivers/net/ethernet/toshiba/spider_net.c
@@ -2492,7 +2492,7 @@ out_disable_dev:
2492 * spider_net_probe initializes pdev and registers a net_device 2492 * spider_net_probe initializes pdev and registers a net_device
2493 * structure for it. After that, the device can be ifconfig'ed up 2493 * structure for it. After that, the device can be ifconfig'ed up
2494 **/ 2494 **/
2495static int __devinit 2495static int
2496spider_net_probe(struct pci_dev *pdev, const struct pci_device_id *ent) 2496spider_net_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
2497{ 2497{
2498 int err = -EIO; 2498 int err = -EIO;
@@ -2531,7 +2531,7 @@ out:
2531 * spider_net_remove is called to remove the device and unregisters the 2531 * spider_net_remove is called to remove the device and unregisters the
2532 * net_device 2532 * net_device
2533 **/ 2533 **/
2534static void __devexit 2534static void
2535spider_net_remove(struct pci_dev *pdev) 2535spider_net_remove(struct pci_dev *pdev)
2536{ 2536{
2537 struct net_device *netdev; 2537 struct net_device *netdev;
@@ -2559,7 +2559,7 @@ static struct pci_driver spider_net_driver = {
2559 .name = spider_net_driver_name, 2559 .name = spider_net_driver_name,
2560 .id_table = spider_net_pci_tbl, 2560 .id_table = spider_net_pci_tbl,
2561 .probe = spider_net_probe, 2561 .probe = spider_net_probe,
2562 .remove = __devexit_p(spider_net_remove) 2562 .remove = spider_net_remove
2563}; 2563};
2564 2564
2565/** 2565/**
diff --git a/drivers/net/ethernet/toshiba/tc35815.c b/drivers/net/ethernet/toshiba/tc35815.c
index 651a70c55e6e..5db09efae927 100644
--- a/drivers/net/ethernet/toshiba/tc35815.c
+++ b/drivers/net/ethernet/toshiba/tc35815.c
@@ -60,7 +60,7 @@ enum tc35815_chiptype {
60/* indexed by tc35815_chiptype, above */ 60/* indexed by tc35815_chiptype, above */
61static const struct { 61static const struct {
62 const char *name; 62 const char *name;
63} chip_info[] __devinitdata = { 63} chip_info[] = {
64 { "TOSHIBA TC35815CF 10/100BaseTX" }, 64 { "TOSHIBA TC35815CF 10/100BaseTX" },
65 { "TOSHIBA TC35815 with Wake on LAN" }, 65 { "TOSHIBA TC35815 with Wake on LAN" },
66 { "TOSHIBA TC35815/TX4939" }, 66 { "TOSHIBA TC35815/TX4939" },
@@ -719,7 +719,7 @@ err_out:
719 * should provide a "tc35815-mac" device with a MAC address in its 719 * should provide a "tc35815-mac" device with a MAC address in its
720 * platform_data. 720 * platform_data.
721 */ 721 */
722static int __devinit tc35815_mac_match(struct device *dev, void *data) 722static int tc35815_mac_match(struct device *dev, void *data)
723{ 723{
724 struct platform_device *plat_dev = to_platform_device(dev); 724 struct platform_device *plat_dev = to_platform_device(dev);
725 struct pci_dev *pci_dev = data; 725 struct pci_dev *pci_dev = data;
@@ -727,7 +727,7 @@ static int __devinit tc35815_mac_match(struct device *dev, void *data)
727 return !strcmp(plat_dev->name, "tc35815-mac") && plat_dev->id == id; 727 return !strcmp(plat_dev->name, "tc35815-mac") && plat_dev->id == id;
728} 728}
729 729
730static int __devinit tc35815_read_plat_dev_addr(struct net_device *dev) 730static int tc35815_read_plat_dev_addr(struct net_device *dev)
731{ 731{
732 struct tc35815_local *lp = netdev_priv(dev); 732 struct tc35815_local *lp = netdev_priv(dev);
733 struct device *pd = bus_find_device(&platform_bus_type, NULL, 733 struct device *pd = bus_find_device(&platform_bus_type, NULL,
@@ -741,13 +741,13 @@ static int __devinit tc35815_read_plat_dev_addr(struct net_device *dev)
741 return -ENODEV; 741 return -ENODEV;
742} 742}
743#else 743#else
744static int __devinit tc35815_read_plat_dev_addr(struct net_device *dev) 744static int tc35815_read_plat_dev_addr(struct net_device *dev)
745{ 745{
746 return -ENODEV; 746 return -ENODEV;
747} 747}
748#endif 748#endif
749 749
750static int __devinit tc35815_init_dev_addr(struct net_device *dev) 750static int tc35815_init_dev_addr(struct net_device *dev)
751{ 751{
752 struct tc35815_regs __iomem *tr = 752 struct tc35815_regs __iomem *tr =
753 (struct tc35815_regs __iomem *)dev->base_addr; 753 (struct tc35815_regs __iomem *)dev->base_addr;
@@ -785,7 +785,7 @@ static const struct net_device_ops tc35815_netdev_ops = {
785#endif 785#endif
786}; 786};
787 787
788static int __devinit tc35815_init_one(struct pci_dev *pdev, 788static int tc35815_init_one(struct pci_dev *pdev,
789 const struct pci_device_id *ent) 789 const struct pci_device_id *ent)
790{ 790{
791 void __iomem *ioaddr = NULL; 791 void __iomem *ioaddr = NULL;
@@ -878,7 +878,7 @@ err_out:
878} 878}
879 879
880 880
881static void __devexit tc35815_remove_one(struct pci_dev *pdev) 881static void tc35815_remove_one(struct pci_dev *pdev)
882{ 882{
883 struct net_device *dev = pci_get_drvdata(pdev); 883 struct net_device *dev = pci_get_drvdata(pdev);
884 struct tc35815_local *lp = netdev_priv(dev); 884 struct tc35815_local *lp = netdev_priv(dev);
@@ -2198,7 +2198,7 @@ static struct pci_driver tc35815_pci_driver = {
2198 .name = MODNAME, 2198 .name = MODNAME,
2199 .id_table = tc35815_pci_tbl, 2199 .id_table = tc35815_pci_tbl,
2200 .probe = tc35815_init_one, 2200 .probe = tc35815_init_one,
2201 .remove = __devexit_p(tc35815_remove_one), 2201 .remove = tc35815_remove_one,
2202#ifdef CONFIG_PM 2202#ifdef CONFIG_PM
2203 .suspend = tc35815_suspend, 2203 .suspend = tc35815_suspend,
2204 .resume = tc35815_resume, 2204 .resume = tc35815_resume,
diff --git a/drivers/net/ethernet/via/via-rhine.c b/drivers/net/ethernet/via/via-rhine.c
index 0459c096629f..53ccc5174d08 100644
--- a/drivers/net/ethernet/via/via-rhine.c
+++ b/drivers/net/ethernet/via/via-rhine.c
@@ -113,7 +113,7 @@ static const int multicast_filter_limit = 32;
113#include <linux/dmi.h> 113#include <linux/dmi.h>
114 114
115/* These identify the driver base version and may not be removed. */ 115/* These identify the driver base version and may not be removed. */
116static const char version[] __devinitconst = 116static const char version[] =
117 "v1.10-LK" DRV_VERSION " " DRV_RELDATE " Written by Donald Becker"; 117 "v1.10-LK" DRV_VERSION " " DRV_RELDATE " Written by Donald Becker";
118 118
119/* This driver was written to use PCI memory space. Some early versions 119/* This driver was written to use PCI memory space. Some early versions
@@ -657,7 +657,7 @@ static void enable_mmio(long pioaddr, u32 quirks)
657 * Loads bytes 0x00-0x05, 0x6E-0x6F, 0x78-0x7B from EEPROM 657 * Loads bytes 0x00-0x05, 0x6E-0x6F, 0x78-0x7B from EEPROM
658 * (plus 0x6C for Rhine-I/II) 658 * (plus 0x6C for Rhine-I/II)
659 */ 659 */
660static void __devinit rhine_reload_eeprom(long pioaddr, struct net_device *dev) 660static void rhine_reload_eeprom(long pioaddr, struct net_device *dev)
661{ 661{
662 struct rhine_private *rp = netdev_priv(dev); 662 struct rhine_private *rp = netdev_priv(dev);
663 void __iomem *ioaddr = rp->base; 663 void __iomem *ioaddr = rp->base;
@@ -823,7 +823,7 @@ static int rhine_napipoll(struct napi_struct *napi, int budget)
823 return work_done; 823 return work_done;
824} 824}
825 825
826static void __devinit rhine_hw_init(struct net_device *dev, long pioaddr) 826static void rhine_hw_init(struct net_device *dev, long pioaddr)
827{ 827{
828 struct rhine_private *rp = netdev_priv(dev); 828 struct rhine_private *rp = netdev_priv(dev);
829 829
@@ -856,7 +856,7 @@ static const struct net_device_ops rhine_netdev_ops = {
856#endif 856#endif
857}; 857};
858 858
859static int __devinit rhine_init_one(struct pci_dev *pdev, 859static int rhine_init_one(struct pci_dev *pdev,
860 const struct pci_device_id *ent) 860 const struct pci_device_id *ent)
861{ 861{
862 struct net_device *dev; 862 struct net_device *dev;
@@ -2232,7 +2232,7 @@ static int rhine_close(struct net_device *dev)
2232} 2232}
2233 2233
2234 2234
2235static void __devexit rhine_remove_one(struct pci_dev *pdev) 2235static void rhine_remove_one(struct pci_dev *pdev)
2236{ 2236{
2237 struct net_device *dev = pci_get_drvdata(pdev); 2237 struct net_device *dev = pci_get_drvdata(pdev);
2238 struct rhine_private *rp = netdev_priv(dev); 2238 struct rhine_private *rp = netdev_priv(dev);
@@ -2359,7 +2359,7 @@ static struct pci_driver rhine_driver = {
2359 .name = DRV_NAME, 2359 .name = DRV_NAME,
2360 .id_table = rhine_pci_tbl, 2360 .id_table = rhine_pci_tbl,
2361 .probe = rhine_init_one, 2361 .probe = rhine_init_one,
2362 .remove = __devexit_p(rhine_remove_one), 2362 .remove = rhine_remove_one,
2363 .shutdown = rhine_shutdown, 2363 .shutdown = rhine_shutdown,
2364 .driver.pm = RHINE_PM_OPS, 2364 .driver.pm = RHINE_PM_OPS,
2365}; 2365};
diff --git a/drivers/net/ethernet/via/via-velocity.c b/drivers/net/ethernet/via/via-velocity.c
index a46c19859683..dc9edd48c933 100644
--- a/drivers/net/ethernet/via/via-velocity.c
+++ b/drivers/net/ethernet/via/via-velocity.c
@@ -375,7 +375,7 @@ MODULE_DEVICE_TABLE(pci, velocity_id_table);
375 * Given a chip identifier return a suitable description. Returns 375 * Given a chip identifier return a suitable description. Returns
376 * a pointer a static string valid while the driver is loaded. 376 * a pointer a static string valid while the driver is loaded.
377 */ 377 */
378static const char __devinit *get_chip_name(enum chip_type chip_id) 378static const char *get_chip_name(enum chip_type chip_id)
379{ 379{
380 int i; 380 int i;
381 for (i = 0; chip_info_table[i].name != NULL; i++) 381 for (i = 0; chip_info_table[i].name != NULL; i++)
@@ -392,7 +392,7 @@ static const char __devinit *get_chip_name(enum chip_type chip_id)
392 * unload for each active device that is present. Disconnects 392 * unload for each active device that is present. Disconnects
393 * the device from the network layer and frees all the resources 393 * the device from the network layer and frees all the resources
394 */ 394 */
395static void __devexit velocity_remove1(struct pci_dev *pdev) 395static void velocity_remove1(struct pci_dev *pdev)
396{ 396{
397 struct net_device *dev = pci_get_drvdata(pdev); 397 struct net_device *dev = pci_get_drvdata(pdev);
398 struct velocity_info *vptr = netdev_priv(dev); 398 struct velocity_info *vptr = netdev_priv(dev);
@@ -421,7 +421,8 @@ static void __devexit velocity_remove1(struct pci_dev *pdev)
421 * all the verification and checking as well as reporting so that 421 * all the verification and checking as well as reporting so that
422 * we don't duplicate code for each option. 422 * we don't duplicate code for each option.
423 */ 423 */
424static void __devinit velocity_set_int_opt(int *opt, int val, int min, int max, int def, char *name, const char *devname) 424static void velocity_set_int_opt(int *opt, int val, int min, int max, int def,
425 char *name, const char *devname)
425{ 426{
426 if (val == -1) 427 if (val == -1)
427 *opt = def; 428 *opt = def;
@@ -449,7 +450,8 @@ static void __devinit velocity_set_int_opt(int *opt, int val, int min, int max,
449 * all the verification and checking as well as reporting so that 450 * all the verification and checking as well as reporting so that
450 * we don't duplicate code for each option. 451 * we don't duplicate code for each option.
451 */ 452 */
452static void __devinit velocity_set_bool_opt(u32 *opt, int val, int def, u32 flag, char *name, const char *devname) 453static void velocity_set_bool_opt(u32 *opt, int val, int def, u32 flag,
454 char *name, const char *devname)
453{ 455{
454 (*opt) &= (~flag); 456 (*opt) &= (~flag);
455 if (val == -1) 457 if (val == -1)
@@ -474,7 +476,8 @@ static void __devinit velocity_set_bool_opt(u32 *opt, int val, int def, u32 flag
474 * Turn the module and command options into a single structure 476 * Turn the module and command options into a single structure
475 * for the current device 477 * for the current device
476 */ 478 */
477static void __devinit velocity_get_options(struct velocity_opt *opts, int index, const char *devname) 479static void velocity_get_options(struct velocity_opt *opts, int index,
480 const char *devname)
478{ 481{
479 482
480 velocity_set_int_opt(&opts->rx_thresh, rx_thresh[index], RX_THRESH_MIN, RX_THRESH_MAX, RX_THRESH_DEF, "rx_thresh", devname); 483 velocity_set_int_opt(&opts->rx_thresh, rx_thresh[index], RX_THRESH_MIN, RX_THRESH_MAX, RX_THRESH_DEF, "rx_thresh", devname);
@@ -2627,7 +2630,7 @@ static const struct net_device_ops velocity_netdev_ops = {
2627 * Set up the initial velocity_info struct for the device that has been 2630 * Set up the initial velocity_info struct for the device that has been
2628 * discovered. 2631 * discovered.
2629 */ 2632 */
2630static void __devinit velocity_init_info(struct pci_dev *pdev, 2633static void velocity_init_info(struct pci_dev *pdev,
2631 struct velocity_info *vptr, 2634 struct velocity_info *vptr,
2632 const struct velocity_info_tbl *info) 2635 const struct velocity_info_tbl *info)
2633{ 2636{
@@ -2648,7 +2651,8 @@ static void __devinit velocity_init_info(struct pci_dev *pdev,
2648 * Retrieve the PCI configuration space data that interests us from 2651 * Retrieve the PCI configuration space data that interests us from
2649 * the kernel PCI layer 2652 * the kernel PCI layer
2650 */ 2653 */
2651static int __devinit velocity_get_pci_info(struct velocity_info *vptr, struct pci_dev *pdev) 2654static int velocity_get_pci_info(struct velocity_info *vptr,
2655 struct pci_dev *pdev)
2652{ 2656{
2653 vptr->rev_id = pdev->revision; 2657 vptr->rev_id = pdev->revision;
2654 2658
@@ -2685,7 +2689,7 @@ static int __devinit velocity_get_pci_info(struct velocity_info *vptr, struct pc
2685 * Print per driver data as the kernel driver finds Velocity 2689 * Print per driver data as the kernel driver finds Velocity
2686 * hardware 2690 * hardware
2687 */ 2691 */
2688static void __devinit velocity_print_info(struct velocity_info *vptr) 2692static void velocity_print_info(struct velocity_info *vptr)
2689{ 2693{
2690 struct net_device *dev = vptr->dev; 2694 struct net_device *dev = vptr->dev;
2691 2695
@@ -2709,7 +2713,8 @@ static u32 velocity_get_link(struct net_device *dev)
2709 * Configure a discovered adapter from scratch. Return a negative 2713 * Configure a discovered adapter from scratch. Return a negative
2710 * errno error code on failure paths. 2714 * errno error code on failure paths.
2711 */ 2715 */
2712static int __devinit velocity_found1(struct pci_dev *pdev, const struct pci_device_id *ent) 2716static int velocity_found1(struct pci_dev *pdev,
2717 const struct pci_device_id *ent)
2713{ 2718{
2714 static int first = 1; 2719 static int first = 1;
2715 struct net_device *dev; 2720 struct net_device *dev;
@@ -3108,7 +3113,7 @@ static struct pci_driver velocity_driver = {
3108 .name = VELOCITY_NAME, 3113 .name = VELOCITY_NAME,
3109 .id_table = velocity_id_table, 3114 .id_table = velocity_id_table,
3110 .probe = velocity_found1, 3115 .probe = velocity_found1,
3111 .remove = __devexit_p(velocity_remove1), 3116 .remove = velocity_remove1,
3112#ifdef CONFIG_PM 3117#ifdef CONFIG_PM
3113 .suspend = velocity_suspend, 3118 .suspend = velocity_suspend,
3114 .resume = velocity_resume, 3119 .resume = velocity_resume,
diff --git a/drivers/net/ethernet/wiznet/w5100.c b/drivers/net/ethernet/wiznet/w5100.c
index 7daf92e56b65..352383890326 100644
--- a/drivers/net/ethernet/wiznet/w5100.c
+++ b/drivers/net/ethernet/wiznet/w5100.c
@@ -621,7 +621,7 @@ static const struct net_device_ops w5100_netdev_ops = {
621 .ndo_change_mtu = eth_change_mtu, 621 .ndo_change_mtu = eth_change_mtu,
622}; 622};
623 623
624static int __devinit w5100_hw_probe(struct platform_device *pdev) 624static int w5100_hw_probe(struct platform_device *pdev)
625{ 625{
626 struct wiznet_platform_data *data = pdev->dev.platform_data; 626 struct wiznet_platform_data *data = pdev->dev.platform_data;
627 struct net_device *ndev = platform_get_drvdata(pdev); 627 struct net_device *ndev = platform_get_drvdata(pdev);
@@ -696,7 +696,7 @@ static int __devinit w5100_hw_probe(struct platform_device *pdev)
696 return 0; 696 return 0;
697} 697}
698 698
699static int __devinit w5100_probe(struct platform_device *pdev) 699static int w5100_probe(struct platform_device *pdev)
700{ 700{
701 struct w5100_priv *priv; 701 struct w5100_priv *priv;
702 struct net_device *ndev; 702 struct net_device *ndev;
@@ -739,7 +739,7 @@ err_register:
739 return err; 739 return err;
740} 740}
741 741
742static int __devexit w5100_remove(struct platform_device *pdev) 742static int w5100_remove(struct platform_device *pdev)
743{ 743{
744 struct net_device *ndev = platform_get_drvdata(pdev); 744 struct net_device *ndev = platform_get_drvdata(pdev);
745 struct w5100_priv *priv = netdev_priv(ndev); 745 struct w5100_priv *priv = netdev_priv(ndev);
@@ -799,7 +799,7 @@ static struct platform_driver w5100_driver = {
799 .pm = &w5100_pm_ops, 799 .pm = &w5100_pm_ops,
800 }, 800 },
801 .probe = w5100_probe, 801 .probe = w5100_probe,
802 .remove = __devexit_p(w5100_remove), 802 .remove = w5100_remove,
803}; 803};
804 804
805module_platform_driver(w5100_driver); 805module_platform_driver(w5100_driver);
diff --git a/drivers/net/ethernet/wiznet/w5300.c b/drivers/net/ethernet/wiznet/w5300.c
index bd9eec676a58..9d1d986f8d40 100644
--- a/drivers/net/ethernet/wiznet/w5300.c
+++ b/drivers/net/ethernet/wiznet/w5300.c
@@ -541,7 +541,7 @@ static const struct net_device_ops w5300_netdev_ops = {
541 .ndo_change_mtu = eth_change_mtu, 541 .ndo_change_mtu = eth_change_mtu,
542}; 542};
543 543
544static int __devinit w5300_hw_probe(struct platform_device *pdev) 544static int w5300_hw_probe(struct platform_device *pdev)
545{ 545{
546 struct wiznet_platform_data *data = pdev->dev.platform_data; 546 struct wiznet_platform_data *data = pdev->dev.platform_data;
547 struct net_device *ndev = platform_get_drvdata(pdev); 547 struct net_device *ndev = platform_get_drvdata(pdev);
@@ -608,7 +608,7 @@ static int __devinit w5300_hw_probe(struct platform_device *pdev)
608 return 0; 608 return 0;
609} 609}
610 610
611static int __devinit w5300_probe(struct platform_device *pdev) 611static int w5300_probe(struct platform_device *pdev)
612{ 612{
613 struct w5300_priv *priv; 613 struct w5300_priv *priv;
614 struct net_device *ndev; 614 struct net_device *ndev;
@@ -651,7 +651,7 @@ err_register:
651 return err; 651 return err;
652} 652}
653 653
654static int __devexit w5300_remove(struct platform_device *pdev) 654static int w5300_remove(struct platform_device *pdev)
655{ 655{
656 struct net_device *ndev = platform_get_drvdata(pdev); 656 struct net_device *ndev = platform_get_drvdata(pdev);
657 struct w5300_priv *priv = netdev_priv(ndev); 657 struct w5300_priv *priv = netdev_priv(ndev);
@@ -711,7 +711,7 @@ static struct platform_driver w5300_driver = {
711 .pm = &w5300_pm_ops, 711 .pm = &w5300_pm_ops,
712 }, 712 },
713 .probe = w5300_probe, 713 .probe = w5300_probe,
714 .remove = __devexit_p(w5300_remove), 714 .remove = w5300_remove,
715}; 715};
716 716
717module_platform_driver(w5300_driver); 717module_platform_driver(w5300_driver);
diff --git a/drivers/net/ethernet/xilinx/ll_temac_main.c b/drivers/net/ethernet/xilinx/ll_temac_main.c
index f8e351880119..aad909d793d7 100644
--- a/drivers/net/ethernet/xilinx/ll_temac_main.c
+++ b/drivers/net/ethernet/xilinx/ll_temac_main.c
@@ -1002,7 +1002,7 @@ static const struct ethtool_ops temac_ethtool_ops = {
1002 .get_ts_info = ethtool_op_get_ts_info, 1002 .get_ts_info = ethtool_op_get_ts_info,
1003}; 1003};
1004 1004
1005static int __devinit temac_of_probe(struct platform_device *op) 1005static int temac_of_probe(struct platform_device *op)
1006{ 1006{
1007 struct device_node *np; 1007 struct device_node *np;
1008 struct temac_local *lp; 1008 struct temac_local *lp;
@@ -1144,7 +1144,7 @@ static int __devinit temac_of_probe(struct platform_device *op)
1144 return rc; 1144 return rc;
1145} 1145}
1146 1146
1147static int __devexit temac_of_remove(struct platform_device *op) 1147static int temac_of_remove(struct platform_device *op)
1148{ 1148{
1149 struct net_device *ndev = dev_get_drvdata(&op->dev); 1149 struct net_device *ndev = dev_get_drvdata(&op->dev);
1150 struct temac_local *lp = netdev_priv(ndev); 1150 struct temac_local *lp = netdev_priv(ndev);
@@ -1163,7 +1163,7 @@ static int __devexit temac_of_remove(struct platform_device *op)
1163 return 0; 1163 return 0;
1164} 1164}
1165 1165
1166static struct of_device_id temac_of_match[] __devinitdata = { 1166static struct of_device_id temac_of_match[] = {
1167 { .compatible = "xlnx,xps-ll-temac-1.01.b", }, 1167 { .compatible = "xlnx,xps-ll-temac-1.01.b", },
1168 { .compatible = "xlnx,xps-ll-temac-2.00.a", }, 1168 { .compatible = "xlnx,xps-ll-temac-2.00.a", },
1169 { .compatible = "xlnx,xps-ll-temac-2.02.a", }, 1169 { .compatible = "xlnx,xps-ll-temac-2.02.a", },
@@ -1174,7 +1174,7 @@ MODULE_DEVICE_TABLE(of, temac_of_match);
1174 1174
1175static struct platform_driver temac_of_driver = { 1175static struct platform_driver temac_of_driver = {
1176 .probe = temac_of_probe, 1176 .probe = temac_of_probe,
1177 .remove = __devexit_p(temac_of_remove), 1177 .remove = temac_of_remove,
1178 .driver = { 1178 .driver = {
1179 .owner = THIS_MODULE, 1179 .owner = THIS_MODULE,
1180 .name = "xilinx_temac", 1180 .name = "xilinx_temac",
diff --git a/drivers/net/ethernet/xilinx/xilinx_axienet_main.c b/drivers/net/ethernet/xilinx/xilinx_axienet_main.c
index a788501e978e..d9f69b82cc4f 100644
--- a/drivers/net/ethernet/xilinx/xilinx_axienet_main.c
+++ b/drivers/net/ethernet/xilinx/xilinx_axienet_main.c
@@ -48,7 +48,7 @@
48#define AXIENET_REGS_N 32 48#define AXIENET_REGS_N 32
49 49
50/* Match table for of_platform binding */ 50/* Match table for of_platform binding */
51static struct of_device_id axienet_of_match[] __devinitdata = { 51static struct of_device_id axienet_of_match[] = {
52 { .compatible = "xlnx,axi-ethernet-1.00.a", }, 52 { .compatible = "xlnx,axi-ethernet-1.00.a", },
53 { .compatible = "xlnx,axi-ethernet-1.01.a", }, 53 { .compatible = "xlnx,axi-ethernet-1.01.a", },
54 { .compatible = "xlnx,axi-ethernet-2.01.a", }, 54 { .compatible = "xlnx,axi-ethernet-2.01.a", },
@@ -1482,7 +1482,7 @@ static void axienet_dma_err_handler(unsigned long data)
1482 * device. Parses through device tree and populates fields of 1482 * device. Parses through device tree and populates fields of
1483 * axienet_local. It registers the Ethernet device. 1483 * axienet_local. It registers the Ethernet device.
1484 */ 1484 */
1485static int __devinit axienet_of_probe(struct platform_device *op) 1485static int axienet_of_probe(struct platform_device *op)
1486{ 1486{
1487 __be32 *p; 1487 __be32 *p;
1488 int size, ret = 0; 1488 int size, ret = 0;
@@ -1632,7 +1632,7 @@ nodev:
1632 return ret; 1632 return ret;
1633} 1633}
1634 1634
1635static int __devexit axienet_of_remove(struct platform_device *op) 1635static int axienet_of_remove(struct platform_device *op)
1636{ 1636{
1637 struct net_device *ndev = dev_get_drvdata(&op->dev); 1637 struct net_device *ndev = dev_get_drvdata(&op->dev);
1638 struct axienet_local *lp = netdev_priv(ndev); 1638 struct axienet_local *lp = netdev_priv(ndev);
@@ -1656,7 +1656,7 @@ static int __devexit axienet_of_remove(struct platform_device *op)
1656 1656
1657static struct platform_driver axienet_of_driver = { 1657static struct platform_driver axienet_of_driver = {
1658 .probe = axienet_of_probe, 1658 .probe = axienet_of_probe,
1659 .remove = __devexit_p(axienet_of_remove), 1659 .remove = axienet_of_remove,
1660 .driver = { 1660 .driver = {
1661 .owner = THIS_MODULE, 1661 .owner = THIS_MODULE,
1662 .name = "xilinx_axienet", 1662 .name = "xilinx_axienet",
diff --git a/drivers/net/ethernet/xilinx/xilinx_emaclite.c b/drivers/net/ethernet/xilinx/xilinx_emaclite.c
index 77cfe5110318..919b983114e9 100644
--- a/drivers/net/ethernet/xilinx/xilinx_emaclite.c
+++ b/drivers/net/ethernet/xilinx/xilinx_emaclite.c
@@ -1107,7 +1107,7 @@ static struct net_device_ops xemaclite_netdev_ops;
1107 * Return: 0, if the driver is bound to the Emaclite device, or 1107 * Return: 0, if the driver is bound to the Emaclite device, or
1108 * a negative error if there is failure. 1108 * a negative error if there is failure.
1109 */ 1109 */
1110static int __devinit xemaclite_of_probe(struct platform_device *ofdev) 1110static int xemaclite_of_probe(struct platform_device *ofdev)
1111{ 1111{
1112 struct resource r_irq; /* Interrupt resources */ 1112 struct resource r_irq; /* Interrupt resources */
1113 struct resource r_mem; /* IO mem resources */ 1113 struct resource r_mem; /* IO mem resources */
@@ -1229,7 +1229,7 @@ error2:
1229 * 1229 *
1230 * Return: 0, always. 1230 * Return: 0, always.
1231 */ 1231 */
1232static int __devexit xemaclite_of_remove(struct platform_device *of_dev) 1232static int xemaclite_of_remove(struct platform_device *of_dev)
1233{ 1233{
1234 struct device *dev = &of_dev->dev; 1234 struct device *dev = &of_dev->dev;
1235 struct net_device *ndev = dev_get_drvdata(dev); 1235 struct net_device *ndev = dev_get_drvdata(dev);
@@ -1280,7 +1280,7 @@ static struct net_device_ops xemaclite_netdev_ops = {
1280}; 1280};
1281 1281
1282/* Match table for OF platform binding */ 1282/* Match table for OF platform binding */
1283static struct of_device_id xemaclite_of_match[] __devinitdata = { 1283static struct of_device_id xemaclite_of_match[] = {
1284 { .compatible = "xlnx,opb-ethernetlite-1.01.a", }, 1284 { .compatible = "xlnx,opb-ethernetlite-1.01.a", },
1285 { .compatible = "xlnx,opb-ethernetlite-1.01.b", }, 1285 { .compatible = "xlnx,opb-ethernetlite-1.01.b", },
1286 { .compatible = "xlnx,xps-ethernetlite-1.00.a", }, 1286 { .compatible = "xlnx,xps-ethernetlite-1.00.a", },
@@ -1298,7 +1298,7 @@ static struct platform_driver xemaclite_of_driver = {
1298 .of_match_table = xemaclite_of_match, 1298 .of_match_table = xemaclite_of_match,
1299 }, 1299 },
1300 .probe = xemaclite_of_probe, 1300 .probe = xemaclite_of_probe,
1301 .remove = __devexit_p(xemaclite_of_remove), 1301 .remove = xemaclite_of_remove,
1302}; 1302};
1303 1303
1304module_platform_driver(xemaclite_of_driver); 1304module_platform_driver(xemaclite_of_driver);
diff --git a/drivers/net/ethernet/xscale/ixp4xx_eth.c b/drivers/net/ethernet/xscale/ixp4xx_eth.c
index 477d6729b17f..d3ebb73277be 100644
--- a/drivers/net/ethernet/xscale/ixp4xx_eth.c
+++ b/drivers/net/ethernet/xscale/ixp4xx_eth.c
@@ -1379,7 +1379,7 @@ static const struct net_device_ops ixp4xx_netdev_ops = {
1379 .ndo_validate_addr = eth_validate_addr, 1379 .ndo_validate_addr = eth_validate_addr,
1380}; 1380};
1381 1381
1382static int __devinit eth_init_one(struct platform_device *pdev) 1382static int eth_init_one(struct platform_device *pdev)
1383{ 1383{
1384 struct port *port; 1384 struct port *port;
1385 struct net_device *dev; 1385 struct net_device *dev;
@@ -1480,7 +1480,7 @@ err_free:
1480 return err; 1480 return err;
1481} 1481}
1482 1482
1483static int __devexit eth_remove_one(struct platform_device *pdev) 1483static int eth_remove_one(struct platform_device *pdev)
1484{ 1484{
1485 struct net_device *dev = platform_get_drvdata(pdev); 1485 struct net_device *dev = platform_get_drvdata(pdev);
1486 struct port *port = netdev_priv(dev); 1486 struct port *port = netdev_priv(dev);