diff options
author | Bill Pemberton <wfp5p@virginia.edu> | 2012-12-03 09:22:50 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-12-03 14:16:25 -0500 |
commit | 2791cf7a73d4c0ab110bcf21b5c0575efbe934d0 (patch) | |
tree | 581f9b9c06c4870ac17a57d8da1b3cf3da28acc5 /drivers/net | |
parent | 21cf689b16afa08fe8b02dfadaea88500d6c73c6 (diff) |
3c509: 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')
-rw-r--r-- | drivers/net/ethernet/3com/3c509.c | 24 |
1 files changed, 12 insertions, 12 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 | ||
95 | static char version[] __devinitdata = DRV_NAME ".c:" DRV_VERSION " " DRV_RELDATE " becker@scyld.com\n"; | 95 | static char version[] = DRV_NAME ".c:" DRV_VERSION " " DRV_RELDATE " becker@scyld.com\n"; |
96 | 96 | ||
97 | #ifdef EL3_DEBUG | 97 | #ifdef EL3_DEBUG |
98 | static int el3_debug = EL3_DEBUG; | 98 | static int el3_debug = EL3_DEBUG; |
@@ -184,7 +184,7 @@ static int max_interrupt_work = 10; | |||
184 | static int nopnp; | 184 | static int nopnp; |
185 | #endif | 185 | #endif |
186 | 186 | ||
187 | static int __devinit el3_common_init(struct net_device *dev); | 187 | static int el3_common_init(struct net_device *dev); |
188 | static void el3_common_remove(struct net_device *dev); | 188 | static void el3_common_remove(struct net_device *dev); |
189 | static ushort id_read_eeprom(int index); | 189 | static ushort id_read_eeprom(int index); |
190 | static ushort read_eeprom(int ioaddr, int index); | 190 | static 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 | ||
273 | static void __devinit el3_dev_fill(struct net_device *dev, __be16 *phys_addr, | 273 | static 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 | ||
286 | static int __devinit el3_isa_match(struct device *pdev, | 286 | static 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 | ||
344 | static int __devexit el3_isa_remove(struct device *pdev, | 344 | static 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 | ||
383 | static struct isa_driver el3_isa_driver = { | 383 | static 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 | }; |
407 | MODULE_DEVICE_TABLE(pnp, el3_pnp_ids); | 407 | MODULE_DEVICE_TABLE(pnp, el3_pnp_ids); |
408 | 408 | ||
409 | static int __devinit el3_pnp_probe(struct pnp_dev *pdev, | 409 | static 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 | ||
448 | static void __devexit el3_pnp_remove(struct pnp_dev *pdev) | 448 | static 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 | ||
522 | static int __devinit el3_common_init(struct net_device *dev) | 522 | static 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 */ |
621 | static int __devexit el3_device_remove (struct device *device) | 621 | static int el3_device_remove(struct device *device) |
622 | { | 622 | { |
623 | struct net_device *dev; | 623 | struct net_device *dev; |
624 | 624 | ||