aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/3c505.c
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@linux-foundation.org>2009-01-09 08:01:12 -0500
committerDavid S. Miller <davem@davemloft.net>2009-01-21 17:02:22 -0500
commite6c42b782684cd582599d5c177516ee27d50deb8 (patch)
tree8e3559a76cdbba9376ca927cfed88217cf355284 /drivers/net/3c505.c
parent878f64856d152ea4bab7dc3c279d0ee117901e1c (diff)
3c505: convert to net_device_ops
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/3c505.c')
-rw-r--r--drivers/net/3c505.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/drivers/net/3c505.c b/drivers/net/3c505.c
index 6124605bef05..ea1ad8ce8836 100644
--- a/drivers/net/3c505.c
+++ b/drivers/net/3c505.c
@@ -1348,6 +1348,17 @@ static int __init elp_autodetect(struct net_device *dev)
1348 return 0; /* Because of this, the layer above will return -ENODEV */ 1348 return 0; /* Because of this, the layer above will return -ENODEV */
1349} 1349}
1350 1350
1351static const struct net_device_ops elp_netdev_ops = {
1352 .ndo_open = elp_open,
1353 .ndo_stop = elp_close,
1354 .ndo_get_stats = elp_get_stats,
1355 .ndo_start_xmit = elp_start_xmit,
1356 .ndo_tx_timeout = elp_timeout,
1357 .ndo_set_multicast_list = elp_set_mc_list,
1358 .ndo_change_mtu = eth_change_mtu,
1359 .ndo_set_mac_address = eth_mac_addr,
1360 .ndo_validate_addr = eth_validate_addr,
1361};
1351 1362
1352/****************************************************** 1363/******************************************************
1353 * 1364 *
@@ -1552,13 +1563,8 @@ static int __init elplus_setup(struct net_device *dev)
1552 printk(KERN_ERR "%s: adapter configuration failed\n", dev->name); 1563 printk(KERN_ERR "%s: adapter configuration failed\n", dev->name);
1553 } 1564 }
1554 1565
1555 dev->open = elp_open; /* local */ 1566 dev->netdev_ops = &elp_netdev_ops;
1556 dev->stop = elp_close; /* local */
1557 dev->get_stats = elp_get_stats; /* local */
1558 dev->hard_start_xmit = elp_start_xmit; /* local */
1559 dev->tx_timeout = elp_timeout; /* local */
1560 dev->watchdog_timeo = 10*HZ; 1567 dev->watchdog_timeo = 10*HZ;
1561 dev->set_multicast_list = elp_set_mc_list; /* local */
1562 dev->ethtool_ops = &netdev_ethtool_ops; /* local */ 1568 dev->ethtool_ops = &netdev_ethtool_ops; /* local */
1563 1569
1564 dev->mem_start = dev->mem_end = 0; 1570 dev->mem_start = dev->mem_end = 0;