Skip to content

Commit

Permalink
ne2: convert to net_device_ops
Browse files Browse the repository at this point in the history
Almost there.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed Nov 26, 2008
1 parent 4be7ef4 commit 50014f1
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions drivers/net/ne2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -511,20 +507,6 @@ static int __init ne2_probe1(struct net_device *dev, int slot)
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)
Expand Down

0 comments on commit 50014f1

Please sign in to comment.