ne3210: convert to net_device_ops
By having common code in 8390.o don't need net_dev_ops in the driver. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
d079841d79
commit
d269941b5b
|
@ -45,9 +45,6 @@
|
||||||
|
|
||||||
#define DRV_NAME "ne3210"
|
#define DRV_NAME "ne3210"
|
||||||
|
|
||||||
static int ne3210_open(struct net_device *dev);
|
|
||||||
static int ne3210_close(struct net_device *dev);
|
|
||||||
|
|
||||||
static void ne3210_reset_8390(struct net_device *dev);
|
static void ne3210_reset_8390(struct net_device *dev);
|
||||||
|
|
||||||
static void ne3210_get_8390_hdr(struct net_device *dev, struct e8390_pkt_hdr *hdr, int ring_page);
|
static void ne3210_get_8390_hdr(struct net_device *dev, struct e8390_pkt_hdr *hdr, int ring_page);
|
||||||
|
@ -199,11 +196,8 @@ static int __init ne3210_eisa_probe (struct device *device)
|
||||||
ei_status.block_output = &ne3210_block_output;
|
ei_status.block_output = &ne3210_block_output;
|
||||||
ei_status.get_8390_hdr = &ne3210_get_8390_hdr;
|
ei_status.get_8390_hdr = &ne3210_get_8390_hdr;
|
||||||
|
|
||||||
dev->open = &ne3210_open;
|
dev->netdev_ops = &ei_netdev_ops;
|
||||||
dev->stop = &ne3210_close;
|
|
||||||
#ifdef CONFIG_NET_POLL_CONTROLLER
|
|
||||||
dev->poll_controller = ei_poll;
|
|
||||||
#endif
|
|
||||||
dev->if_port = ifmap_val[port_index];
|
dev->if_port = ifmap_val[port_index];
|
||||||
|
|
||||||
if ((retval = register_netdev (dev)))
|
if ((retval = register_netdev (dev)))
|
||||||
|
@ -320,22 +314,6 @@ static void ne3210_block_output(struct net_device *dev, int count,
|
||||||
memcpy_toio(shmem, buf, count);
|
memcpy_toio(shmem, buf, count);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int ne3210_open(struct net_device *dev)
|
|
||||||
{
|
|
||||||
ei_open(dev);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int ne3210_close(struct net_device *dev)
|
|
||||||
{
|
|
||||||
|
|
||||||
if (ei_debug > 1)
|
|
||||||
printk("%s: Shutting down ethercard.\n", dev->name);
|
|
||||||
|
|
||||||
ei_close(dev);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static struct eisa_device_id ne3210_ids[] = {
|
static struct eisa_device_id ne3210_ids[] = {
|
||||||
{ "EGL0101" },
|
{ "EGL0101" },
|
||||||
{ "NVL1801" },
|
{ "NVL1801" },
|
||||||
|
|
Loading…
Reference in New Issue