aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ne.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ne.c')
-rw-r--r--drivers/net/ne.c27
1 files changed, 3 insertions, 24 deletions
diff --git a/drivers/net/ne.c b/drivers/net/ne.c
index eb681c0d51ba..cb02698d1286 100644
--- a/drivers/net/ne.c
+++ b/drivers/net/ne.c
@@ -174,9 +174,6 @@ bad_clone_list[] __initdata = {
174static int ne_probe1(struct net_device *dev, unsigned long ioaddr); 174static int ne_probe1(struct net_device *dev, unsigned long ioaddr);
175static int ne_probe_isapnp(struct net_device *dev); 175static int ne_probe_isapnp(struct net_device *dev);
176 176
177static int ne_open(struct net_device *dev);
178static int ne_close(struct net_device *dev);
179
180static void ne_reset_8390(struct net_device *dev); 177static void ne_reset_8390(struct net_device *dev);
181static void ne_get_8390_hdr(struct net_device *dev, struct e8390_pkt_hdr *hdr, 178static void ne_get_8390_hdr(struct net_device *dev, struct e8390_pkt_hdr *hdr,
182 int ring_page); 179 int ring_page);
@@ -297,7 +294,6 @@ static int __init ne_probe1(struct net_device *dev, unsigned long ioaddr)
297 int neX000, ctron, copam, bad_card; 294 int neX000, ctron, copam, bad_card;
298 int reg0, ret; 295 int reg0, ret;
299 static unsigned version_printed; 296 static unsigned version_printed;
300 DECLARE_MAC_BUF(mac);
301 297
302 if (!request_region(ioaddr, NE_IO_EXTENT, DRV_NAME)) 298 if (!request_region(ioaddr, NE_IO_EXTENT, DRV_NAME))
303 return -EBUSY; 299 return -EBUSY;
@@ -517,7 +513,7 @@ static int __init ne_probe1(struct net_device *dev, unsigned long ioaddr)
517 } 513 }
518#endif 514#endif
519 515
520 printk("%s\n", print_mac(mac, dev->dev_addr)); 516 printk("%pM\n", dev->dev_addr);
521 517
522 ei_status.name = name; 518 ei_status.name = name;
523 ei_status.tx_start_page = start_page; 519 ei_status.tx_start_page = start_page;
@@ -537,11 +533,8 @@ static int __init ne_probe1(struct net_device *dev, unsigned long ioaddr)
537 ei_status.block_output = &ne_block_output; 533 ei_status.block_output = &ne_block_output;
538 ei_status.get_8390_hdr = &ne_get_8390_hdr; 534 ei_status.get_8390_hdr = &ne_get_8390_hdr;
539 ei_status.priv = 0; 535 ei_status.priv = 0;
540 dev->open = &ne_open; 536
541 dev->stop = &ne_close; 537 dev->netdev_ops = &eip_netdev_ops;
542#ifdef CONFIG_NET_POLL_CONTROLLER
543 dev->poll_controller = eip_poll;
544#endif
545 NS8390p_init(dev, 0); 538 NS8390p_init(dev, 0);
546 539
547 ret = register_netdev(dev); 540 ret = register_netdev(dev);
@@ -558,20 +551,6 @@ err_out:
558 return ret; 551 return ret;
559} 552}
560 553
561static int ne_open(struct net_device *dev)
562{
563 eip_open(dev);
564 return 0;
565}
566
567static int ne_close(struct net_device *dev)
568{
569 if (ei_debug > 1)
570 printk(KERN_DEBUG "%s: Shutting down ethercard.\n", dev->name);
571 eip_close(dev);
572 return 0;
573}
574
575/* Hard reset the card. This used to pause for the same period that a 554/* Hard reset the card. This used to pause for the same period that a
576 8390 reset command required, but that shouldn't be necessary. */ 555 8390 reset command required, but that shouldn't be necessary. */
577 556