aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/3c503.c
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2008-11-25 21:26:20 -0500
committerDavid S. Miller <davem@davemloft.net>2008-11-25 21:26:20 -0500
commit53cdd28961f979e4494c85e9ace8c3b51ae39a45 (patch)
treebd55882de68a7c900bf09f9b4371b32b52d7786a /drivers/net/3c503.c
parente0b8cb0e0e361a40e4ab9d8463762db2286571f5 (diff)
3c503: convert to net_device_ops
Another of the 8390p group. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/3c503.c')
-rw-r--r--drivers/net/3c503.c18
1 files changed, 16 insertions, 2 deletions
diff --git a/drivers/net/3c503.c b/drivers/net/3c503.c
index 95bd95f1f99..c092c392922 100644
--- a/drivers/net/3c503.c
+++ b/drivers/net/3c503.c
@@ -168,6 +168,21 @@ out:
168} 168}
169#endif 169#endif
170 170
171static const struct net_device_ops el2_netdev_ops = {
172 .ndo_open = el2_open,
173 .ndo_stop = el2_close,
174
175 .ndo_start_xmit = eip_start_xmit,
176 .ndo_tx_timeout = eip_tx_timeout,
177 .ndo_get_stats = eip_get_stats,
178 .ndo_set_multicast_list = eip_set_multicast_list,
179 .ndo_validate_addr = eth_validate_addr,
180 .ndo_change_mtu = eth_change_mtu,
181#ifdef CONFIG_NET_POLL_CONTROLLER
182 .ndo_poll_controller = eip_poll,
183#endif
184};
185
171/* Probe for the Etherlink II card at I/O port base IOADDR, 186/* Probe for the Etherlink II card at I/O port base IOADDR,
172 returning non-zero on success. If found, set the station 187 returning non-zero on success. If found, set the station
173 address and memory parameters in DEVICE. */ 188 address and memory parameters in DEVICE. */
@@ -335,8 +350,7 @@ el2_probe1(struct net_device *dev, int ioaddr)
335 350
336 ei_status.saved_irq = dev->irq; 351 ei_status.saved_irq = dev->irq;
337 352
338 dev->open = &el2_open; 353 dev->netdev_ops = &el2_netdev_ops;
339 dev->stop = &el2_close;
340 dev->ethtool_ops = &netdev_ethtool_ops; 354 dev->ethtool_ops = &netdev_ethtool_ops;
341#ifdef CONFIG_NET_POLL_CONTROLLER 355#ifdef CONFIG_NET_POLL_CONTROLLER
342 dev->poll_controller = eip_poll; 356 dev->poll_controller = eip_poll;