diff options
author | David S. Miller <davem@davemloft.net> | 2009-03-23 16:33:28 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-03-23 16:33:28 -0400 |
commit | c7670718cbca7a2f3c8751076cb62e1691006be9 (patch) | |
tree | bcae2080f06254abff0fd69bd55082e254912601 | |
parent | 2199b87a94375befd574a58b7824551c1e285833 (diff) |
sunlance: Convert to net_device_ops.
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/sunlance.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/drivers/net/sunlance.c b/drivers/net/sunlance.c index 16c528db7251..3a2bb9684664 100644 --- a/drivers/net/sunlance.c +++ b/drivers/net/sunlance.c | |||
@@ -1311,6 +1311,14 @@ 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 | }; | ||
1321 | |||
1314 | static int __devinit sparc_lance_probe_one(struct of_device *op, | 1322 | static int __devinit sparc_lance_probe_one(struct of_device *op, |
1315 | struct of_device *ledma, | 1323 | struct of_device *ledma, |
1316 | struct of_device *lebuffer) | 1324 | struct of_device *lebuffer) |
@@ -1462,13 +1470,9 @@ no_link_test: | |||
1462 | 1470 | ||
1463 | lp->dev = dev; | 1471 | lp->dev = dev; |
1464 | SET_NETDEV_DEV(dev, &op->dev); | 1472 | 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; | 1473 | dev->watchdog_timeo = 5*HZ; |
1470 | dev->set_multicast_list = &lance_set_multicast; | ||
1471 | dev->ethtool_ops = &sparc_lance_ethtool_ops; | 1474 | dev->ethtool_ops = &sparc_lance_ethtool_ops; |
1475 | dev->netdev_ops = &sparc_lance_ops; | ||
1472 | 1476 | ||
1473 | dev->irq = op->irqs[0]; | 1477 | dev->irq = op->irqs[0]; |
1474 | 1478 | ||