diff options
author | Artem B. Bityuckiy <dedekind@infradead.org> | 2005-07-06 10:43:18 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@mtd.linutronix.de> | 2005-07-06 13:40:38 -0400 |
commit | b3539219c9ea20ebf6a5ea3cc534f423a3607c41 (patch) | |
tree | d17c31c0eac0a7290ba5011b59a100fd9e9c9532 /drivers/net/3c523.c | |
parent | 6430a8def12edebc1c9c7c2621d33ca0e8653c33 (diff) | |
parent | a18bcb7450840f07a772a45229de4811d930f461 (diff) |
Merge with rsync://fileserver/linux
Update to 2.6.12-rc3
Diffstat (limited to 'drivers/net/3c523.c')
-rw-r--r-- | drivers/net/3c523.c | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/drivers/net/3c523.c b/drivers/net/3c523.c index 8f6b2fa13e28..9e1fe2e0478c 100644 --- a/drivers/net/3c523.c +++ b/drivers/net/3c523.c | |||
@@ -572,6 +572,10 @@ static int __init do_elmc_probe(struct net_device *dev) | |||
572 | dev->flags&=~IFF_MULTICAST; /* Multicast doesn't work */ | 572 | dev->flags&=~IFF_MULTICAST; /* Multicast doesn't work */ |
573 | #endif | 573 | #endif |
574 | 574 | ||
575 | retval = register_netdev(dev); | ||
576 | if (retval) | ||
577 | goto err_out; | ||
578 | |||
575 | return 0; | 579 | return 0; |
576 | err_out: | 580 | err_out: |
577 | mca_set_adapter_procfn(slot, NULL, NULL); | 581 | mca_set_adapter_procfn(slot, NULL, NULL); |
@@ -600,12 +604,7 @@ struct net_device * __init elmc_probe(int unit) | |||
600 | err = do_elmc_probe(dev); | 604 | err = do_elmc_probe(dev); |
601 | if (err) | 605 | if (err) |
602 | goto out; | 606 | goto out; |
603 | err = register_netdev(dev); | ||
604 | if (err) | ||
605 | goto out1; | ||
606 | return dev; | 607 | return dev; |
607 | out1: | ||
608 | cleanup_card(dev); | ||
609 | out: | 608 | out: |
610 | free_netdev(dev); | 609 | free_netdev(dev); |
611 | return ERR_PTR(err); | 610 | return ERR_PTR(err); |
@@ -1275,6 +1274,7 @@ module_param_array(irq, int, NULL, 0); | |||
1275 | module_param_array(io, int, NULL, 0); | 1274 | module_param_array(io, int, NULL, 0); |
1276 | MODULE_PARM_DESC(io, "EtherLink/MC I/O base address(es)"); | 1275 | MODULE_PARM_DESC(io, "EtherLink/MC I/O base address(es)"); |
1277 | MODULE_PARM_DESC(irq, "EtherLink/MC IRQ number(s)"); | 1276 | MODULE_PARM_DESC(irq, "EtherLink/MC IRQ number(s)"); |
1277 | MODULE_LICENSE("GPL"); | ||
1278 | 1278 | ||
1279 | int init_module(void) | 1279 | int init_module(void) |
1280 | { | 1280 | { |
@@ -1288,12 +1288,9 @@ int init_module(void) | |||
1288 | dev->irq=irq[this_dev]; | 1288 | dev->irq=irq[this_dev]; |
1289 | dev->base_addr=io[this_dev]; | 1289 | dev->base_addr=io[this_dev]; |
1290 | if (do_elmc_probe(dev) == 0) { | 1290 | if (do_elmc_probe(dev) == 0) { |
1291 | if (register_netdev(dev) == 0) { | 1291 | dev_elmc[this_dev] = dev; |
1292 | dev_elmc[this_dev] = dev; | 1292 | found++; |
1293 | found++; | 1293 | continue; |
1294 | continue; | ||
1295 | } | ||
1296 | cleanup_card(dev); | ||
1297 | } | 1294 | } |
1298 | free_netdev(dev); | 1295 | free_netdev(dev); |
1299 | if (io[this_dev]==0) | 1296 | if (io[this_dev]==0) |