diff options
Diffstat (limited to 'drivers/net/sunlance.c')
-rw-r--r-- | drivers/net/sunlance.c | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/drivers/net/sunlance.c b/drivers/net/sunlance.c index 16c528db7251..afc7b351e5ec 100644 --- a/drivers/net/sunlance.c +++ b/drivers/net/sunlance.c | |||
@@ -1311,6 +1311,17 @@ static const struct ethtool_ops sparc_lance_ethtool_ops = { | |||
1311 | .get_link = sparc_lance_get_link, | 1311 | .get_link = sparc_lance_get_link, |
1312 | }; | 1312 | }; |
1313 | 1313 | ||
1314 | static const struct net_device_ops sparc_lance_ops = { | ||
1315 | .ndo_open = lance_open, | ||
1316 | .ndo_stop = lance_close, | ||
1317 | .ndo_start_xmit = lance_start_xmit, | ||
1318 | .ndo_set_multicast_list = lance_set_multicast, | ||
1319 | .ndo_tx_timeout = lance_tx_timeout, | ||
1320 | .ndo_change_mtu = eth_change_mtu, | ||
1321 | .ndo_set_mac_address = eth_mac_addr, | ||
1322 | .ndo_validate_addr = eth_validate_addr, | ||
1323 | }; | ||
1324 | |||
1314 | static int __devinit sparc_lance_probe_one(struct of_device *op, | 1325 | static int __devinit sparc_lance_probe_one(struct of_device *op, |
1315 | struct of_device *ledma, | 1326 | struct of_device *ledma, |
1316 | struct of_device *lebuffer) | 1327 | struct of_device *lebuffer) |
@@ -1462,13 +1473,9 @@ no_link_test: | |||
1462 | 1473 | ||
1463 | lp->dev = dev; | 1474 | lp->dev = dev; |
1464 | SET_NETDEV_DEV(dev, &op->dev); | 1475 | SET_NETDEV_DEV(dev, &op->dev); |
1465 | dev->open = &lance_open; | ||
1466 | dev->stop = &lance_close; | ||
1467 | dev->hard_start_xmit = &lance_start_xmit; | ||
1468 | dev->tx_timeout = &lance_tx_timeout; | ||
1469 | dev->watchdog_timeo = 5*HZ; | 1476 | dev->watchdog_timeo = 5*HZ; |
1470 | dev->set_multicast_list = &lance_set_multicast; | ||
1471 | dev->ethtool_ops = &sparc_lance_ethtool_ops; | 1477 | dev->ethtool_ops = &sparc_lance_ethtool_ops; |
1478 | dev->netdev_ops = &sparc_lance_ops; | ||
1472 | 1479 | ||
1473 | dev->irq = op->irqs[0]; | 1480 | dev->irq = op->irqs[0]; |
1474 | 1481 | ||