aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Pemberton <wfp5p@virginia.edu>2012-12-03 09:23:23 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-12-03 14:16:45 -0500
commit134c1f154e1f9c0c7eddc9d5d13e110aed16b03e (patch)
tree89fa762ac4d45f13890c4abfaa05aa85ea1c7b7e
parent5bc7ec702fd7680eb12be88ada87742db9676f5c (diff)
packetengines: remove __dev* attributes
CONFIG_HOTPLUG is going away as an option. As result the __dev* markings will be going away. Remove use of __devinit, __devexit_p, __devinitdata, __devinitconst, and __devexit. Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/net/ethernet/packetengines/hamachi.c12
-rw-r--r--drivers/net/ethernet/packetengines/yellowfin.c10
2 files changed, 11 insertions, 11 deletions
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