diff options
author | Anton Altaparmakov <aia21@cantab.net> | 2005-06-30 04:52:20 -0400 |
---|---|---|
committer | Anton Altaparmakov <aia21@cantab.net> | 2005-06-30 04:52:20 -0400 |
commit | c2d9b8387bce8b4a0fd402fab7dc1319d11a418d (patch) | |
tree | 082cf7dd287f61635198011e61c3de1be130cc42 /drivers/net/ne-h8300.c | |
parent | 2a322e4c08be4e7cb0c04b427ddaaa679fd88863 (diff) | |
parent | 9b4311eedb17fa88f02e4876cd6aa9a08e383cd6 (diff) |
Automerge with /usr/src/ntfs-2.6.git.
Diffstat (limited to 'drivers/net/ne-h8300.c')
-rw-r--r-- | drivers/net/ne-h8300.c | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/drivers/net/ne-h8300.c b/drivers/net/ne-h8300.c index 84e291e24935..8f40368cf2e9 100644 --- a/drivers/net/ne-h8300.c +++ b/drivers/net/ne-h8300.c | |||
@@ -180,12 +180,7 @@ struct net_device * __init ne_probe(int unit) | |||
180 | err = do_ne_probe(dev); | 180 | err = do_ne_probe(dev); |
181 | if (err) | 181 | if (err) |
182 | goto out; | 182 | goto out; |
183 | err = register_netdev(dev); | ||
184 | if (err) | ||
185 | goto out1; | ||
186 | return dev; | 183 | return dev; |
187 | out1: | ||
188 | cleanup_card(dev); | ||
189 | out: | 184 | out: |
190 | free_netdev(dev); | 185 | free_netdev(dev); |
191 | return ERR_PTR(err); | 186 | return ERR_PTR(err); |
@@ -325,8 +320,13 @@ static int __init ne_probe1(struct net_device *dev, int ioaddr) | |||
325 | dev->poll_controller = ei_poll; | 320 | dev->poll_controller = ei_poll; |
326 | #endif | 321 | #endif |
327 | NS8390_init(dev, 0); | 322 | NS8390_init(dev, 0); |
328 | return 0; | ||
329 | 323 | ||
324 | ret = register_netdev(dev); | ||
325 | if (ret) | ||
326 | goto out_irq; | ||
327 | return 0; | ||
328 | out_irq: | ||
329 | free_irq(dev->irq, dev); | ||
330 | err_out: | 330 | err_out: |
331 | release_region(ioaddr, NE_IO_EXTENT); | 331 | release_region(ioaddr, NE_IO_EXTENT); |
332 | return ret; | 332 | return ret; |
@@ -633,11 +633,8 @@ int init_module(void) | |||
633 | err = init_reg_offset(dev, dev->base_addr); | 633 | err = init_reg_offset(dev, dev->base_addr); |
634 | if (!err) { | 634 | if (!err) { |
635 | if (do_ne_probe(dev) == 0) { | 635 | if (do_ne_probe(dev) == 0) { |
636 | if (register_netdev(dev) == 0) { | 636 | dev_ne[found++] = dev; |
637 | dev_ne[found++] = dev; | 637 | continue; |
638 | continue; | ||
639 | } | ||
640 | cleanup_card(dev); | ||
641 | } | 638 | } |
642 | } | 639 | } |
643 | free_netdev(dev); | 640 | free_netdev(dev); |