diff options
author | Bill Pemberton <wfp5p@virginia.edu> | 2012-12-03 09:23:17 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-12-03 14:16:44 -0500 |
commit | 6980cbe4a6dbb3d7871e99a3cbc74a572d14d327 (patch) | |
tree | b29d3eac138b545f555dc79f24e397b09f8303ae /drivers/net/ethernet/natsemi/macsonic.c | |
parent | 19d1b44aa8eba6304abdfe9761bb941f38b512f5 (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/macsonic.c')
-rw-r--r-- | drivers/net/ethernet/natsemi/macsonic.c | 18 |
1 files changed, 9 insertions, 9 deletions
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 | ||
199 | static int __devinit macsonic_init(struct net_device *dev) | 199 | static 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 | ||
248 | static void __devinit mac_onboard_sonic_ethernet_addr(struct net_device *dev) | 248 | static 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 | ||
312 | static int __devinit mac_onboard_sonic_probe(struct net_device *dev) | 312 | static 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 | ||
423 | static int __devinit mac_nubus_sonic_ethernet_addr(struct net_device *dev, | 423 | static 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 | ||
438 | static int __devinit macsonic_ident(struct nubus_dev *ndev) | 438 | static 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 | ||
463 | static int __devinit mac_nubus_sonic_probe(struct net_device *dev) | 463 | static 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 | ||
576 | static int __devinit mac_sonic_probe(struct platform_device *pdev) | 576 | static 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 | ||
622 | static int __devexit mac_sonic_device_remove (struct platform_device *pdev) | 622 | static 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 | ||
635 | static struct platform_driver mac_sonic_driver = { | 635 | static 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, |