Commit 9a9aa14a authored by Stephen Hemminger's avatar Stephen Hemminger Committed by David S. Miller

es3210: convert to net_device_ops

Signed-off-by: default avatarStephen Hemminger <shemminger@vyatta.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d269941b
...@@ -64,9 +64,6 @@ static const char version[] = ...@@ -64,9 +64,6 @@ static const char version[] =
static int es_probe1(struct net_device *dev, int ioaddr); static int es_probe1(struct net_device *dev, int ioaddr);
static int es_open(struct net_device *dev);
static int es_close(struct net_device *dev);
static void es_reset_8390(struct net_device *dev); static void es_reset_8390(struct net_device *dev);
static void es_get_8390_hdr(struct net_device *dev, struct e8390_pkt_hdr *hdr, int ring_page); static void es_get_8390_hdr(struct net_device *dev, struct e8390_pkt_hdr *hdr, int ring_page);
...@@ -289,11 +286,7 @@ static int __init es_probe1(struct net_device *dev, int ioaddr) ...@@ -289,11 +286,7 @@ static int __init es_probe1(struct net_device *dev, int ioaddr)
ei_status.block_output = &es_block_output; ei_status.block_output = &es_block_output;
ei_status.get_8390_hdr = &es_get_8390_hdr; ei_status.get_8390_hdr = &es_get_8390_hdr;
dev->open = &es_open; dev->netdev_ops = &ei_netdev_ops;
dev->stop = &es_close;
#ifdef CONFIG_NET_POLL_CONTROLLER
dev->poll_controller = ei_poll;
#endif
NS8390_init(dev, 0); NS8390_init(dev, 0);
retval = register_netdev(dev); retval = register_netdev(dev);
...@@ -385,22 +378,6 @@ static void es_block_output(struct net_device *dev, int count, ...@@ -385,22 +378,6 @@ static void es_block_output(struct net_device *dev, int count,
memcpy_toio(shmem, buf, count); memcpy_toio(shmem, buf, count);
} }
static int es_open(struct net_device *dev)
{
ei_open(dev);
return 0;
}
static int es_close(struct net_device *dev)
{
if (ei_debug > 1)
printk("%s: Shutting down ethercard.\n", dev->name);
ei_close(dev);
return 0;
}
#ifdef MODULE #ifdef MODULE
#define MAX_ES_CARDS 4 /* Max number of ES3210 cards per module */ #define MAX_ES_CARDS 4 /* Max number of ES3210 cards per module */
#define NAMELEN 8 /* # of chars for storing dev->name */ #define NAMELEN 8 /* # of chars for storing dev->name */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment