diff options
-rw-r--r-- | drivers/net/3c505.c | 18 |
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 | ||
1351 | static 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; |