diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2008-11-25 21:25:14 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-25 21:25:14 -0500 |
commit | 50014f1b939dff5e591e8aea9ec2932d146d2996 (patch) | |
tree | eb1b46d469965fb2d0ef22426a149321614290bc /drivers | |
parent | 4be7ef4eac1d96a61af62bda8a59c1fb78c3b31b (diff) |
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')
-rw-r--r-- | drivers/net/ne2.c | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/drivers/net/ne2.c b/drivers/net/ne2.c index 6f8f32603466..8d61807dc181 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) | |||
492 | 492 | ||
493 | ei_status.priv = slot; | 493 | ei_status.priv = slot; |
494 | 494 | ||
495 | dev->open = &ne_open; | 495 | dev->netdev_ops = &eip_netdev_ops; |
496 | dev->stop = &ne_close; | ||
497 | #ifdef CONFIG_NET_POLL_CONTROLLER | ||
498 | dev->poll_controller = eip_poll; | ||
499 | #endif | ||
500 | NS8390p_init(dev, 0); | 496 | NS8390p_init(dev, 0); |
501 | 497 | ||
502 | retval = register_netdev(dev); | 498 | retval = register_netdev(dev); |
@@ -511,20 +507,6 @@ out: | |||
511 | return retval; | 507 | return retval; |
512 | } | 508 | } |
513 | 509 | ||
514 | static int ne_open(struct net_device *dev) | ||
515 | { | ||
516 | eip_open(dev); | ||
517 | return 0; | ||
518 | } | ||
519 | |||
520 | static int ne_close(struct net_device *dev) | ||
521 | { | ||
522 | if (ei_debug > 1) | ||
523 | printk("%s: Shutting down ethercard.\n", dev->name); | ||
524 | eip_close(dev); | ||
525 | return 0; | ||
526 | } | ||
527 | |||
528 | /* Hard reset the card. This used to pause for the same period that a | 510 | /* Hard reset the card. This used to pause for the same period that a |
529 | 8390 reset command required, but that shouldn't be necessary. */ | 511 | 8390 reset command required, but that shouldn't be necessary. */ |
530 | static void ne_reset_8390(struct net_device *dev) | 512 | static void ne_reset_8390(struct net_device *dev) |