提交 53cdd289 编写于 作者: S Stephen Hemminger 提交者: David S. Miller

3c503: convert to net_device_ops

Another of the 8390p group.
Signed-off-by: NStephen Hemminger <shemminger@vyatta.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 e0b8cb0e
...@@ -168,6 +168,21 @@ struct net_device * __init el2_probe(int unit) ...@@ -168,6 +168,21 @@ struct net_device * __init el2_probe(int unit)
} }
#endif #endif
static const struct net_device_ops el2_netdev_ops = {
.ndo_open = el2_open,
.ndo_stop = el2_close,
.ndo_start_xmit = eip_start_xmit,
.ndo_tx_timeout = eip_tx_timeout,
.ndo_get_stats = eip_get_stats,
.ndo_set_multicast_list = eip_set_multicast_list,
.ndo_validate_addr = eth_validate_addr,
.ndo_change_mtu = eth_change_mtu,
#ifdef CONFIG_NET_POLL_CONTROLLER
.ndo_poll_controller = eip_poll,
#endif
};
/* Probe for the Etherlink II card at I/O port base IOADDR, /* Probe for the Etherlink II card at I/O port base IOADDR,
returning non-zero on success. If found, set the station returning non-zero on success. If found, set the station
address and memory parameters in DEVICE. */ address and memory parameters in DEVICE. */
...@@ -335,8 +350,7 @@ el2_probe1(struct net_device *dev, int ioaddr) ...@@ -335,8 +350,7 @@ el2_probe1(struct net_device *dev, int ioaddr)
ei_status.saved_irq = dev->irq; ei_status.saved_irq = dev->irq;
dev->open = &el2_open; dev->netdev_ops = &el2_netdev_ops;
dev->stop = &el2_close;
dev->ethtool_ops = &netdev_ethtool_ops; dev->ethtool_ops = &netdev_ethtool_ops;
#ifdef CONFIG_NET_POLL_CONTROLLER #ifdef CONFIG_NET_POLL_CONTROLLER
dev->poll_controller = eip_poll; dev->poll_controller = eip_poll;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册