aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/natsemi
diff options
context:
space:
mode:
authorBill Pemberton <wfp5p@virginia.edu>2012-12-03 09:23:17 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-12-03 14:16:44 -0500
commit6980cbe4a6dbb3d7871e99a3cbc74a572d14d327 (patch)
treeb29d3eac138b545f555dc79f24e397b09f8303ae /drivers/net/ethernet/natsemi
parent19d1b44aa8eba6304abdfe9761bb941f38b512f5 (diff)
natsemi: 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>
Diffstat (limited to 'drivers/net/ethernet/natsemi')
-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
6 files changed, 28 insertions, 28 deletions
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 },