summaryrefslogtreecommitdiffstats
path: root/drivers/net/ne2.c
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2008-11-25 18:25:14 -0800
committerDavid S. Miller <davem@davemloft.net>2008-11-25 18:25:14 -0800
commit50014f1b939dff5e591e8aea9ec2932d146d2996 (patch)
treeeb1b46d469965fb2d0ef22426a149321614290bc /drivers/net/ne2.c
parent4be7ef4eac1d96a61af62bda8a59c1fb78c3b31b (diff)
downloadop-kernel-dev-50014f1b939dff5e591e8aea9ec2932d146d2996.zip
op-kernel-dev-50014f1b939dff5e591e8aea9ec2932d146d2996.tar.gz
ne2: convert to net_device_ops
Almost there. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ne2.c')
-rw-r--r--drivers/net/ne2.c20
1 files changed, 1 insertions, 19 deletions
diff --git a/drivers/net/ne2.c b/drivers/net/ne2.c
index 6f8f326..8d61807 100644
--- a/drivers/net/ne2.c
+++ b/drivers/net/ne2.c
@@ -492,11 +492,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 +507,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)
OpenPOWER on IntegriCloud