]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/net/ne2.c
V4L/DVB: zr364xx: remove unused #include <version.h>
[linux-2.6-omap-h63xx.git] / drivers / net / ne2.c
index 6f8f32603466384df3b2df1805fd2ce38cb6f4cc..a53bb201d3c7612f92ba6015fbfd4ae15726ae32 100644 (file)
@@ -137,9 +137,6 @@ extern int netcard_probe(struct net_device *dev);
 
 static int ne2_probe1(struct net_device *dev, int slot);
 
-static int ne_open(struct net_device *dev);
-static int ne_close(struct net_device *dev);
-
 static void ne_reset_8390(struct net_device *dev);
 static void ne_get_8390_hdr(struct net_device *dev, struct e8390_pkt_hdr *hdr,
                int ring_page);
@@ -492,11 +489,7 @@ static int __init ne2_probe1(struct net_device *dev, int slot)
 
        ei_status.priv = slot;
 
-       dev->open = &ne_open;
-       dev->stop = &ne_close;
-#ifdef CONFIG_NET_POLL_CONTROLLER
-       dev->poll_controller = eip_poll;
-#endif
+       dev->netdev_ops = &eip_netdev_ops;
        NS8390p_init(dev, 0);
 
        retval = register_netdev(dev);
@@ -511,20 +504,6 @@ out:
        return retval;
 }
 
-static int ne_open(struct net_device *dev)
-{
-       eip_open(dev);
-       return 0;
-}
-
-static int ne_close(struct net_device *dev)
-{
-       if (ei_debug > 1)
-               printk("%s: Shutting down ethercard.\n", dev->name);
-       eip_close(dev);
-       return 0;
-}
-
 /* Hard reset the card.  This used to pause for the same period that a
    8390 reset command required, but that shouldn't be necessary. */
 static void ne_reset_8390(struct net_device *dev)