Commit 2199b87a authored by David S. Miller's avatar David S. Miller

sunbmac: Convert to net_device_ops.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent adaa0db1
...@@ -1074,6 +1074,15 @@ static const struct ethtool_ops bigmac_ethtool_ops = { ...@@ -1074,6 +1074,15 @@ static const struct ethtool_ops bigmac_ethtool_ops = {
.get_link = bigmac_get_link, .get_link = bigmac_get_link,
}; };
static const struct net_device_ops bigmac_ops = {
.ndo_open = bigmac_open,
.ndo_stop = bigmac_close,
.ndo_start_xmit = bigmac_start_xmit,
.ndo_get_stats = bigmac_get_stats,
.ndo_set_multicast_list = bigmac_set_multicast,
.ndo_tx_timeout = bigmac_tx_timeout,
};
static int __devinit bigmac_ether_init(struct of_device *op, static int __devinit bigmac_ether_init(struct of_device *op,
struct of_device *qec_op) struct of_device *qec_op)
{ {
...@@ -1187,16 +1196,8 @@ static int __devinit bigmac_ether_init(struct of_device *op, ...@@ -1187,16 +1196,8 @@ static int __devinit bigmac_ether_init(struct of_device *op,
bp->dev = dev; bp->dev = dev;
/* Set links to our BigMAC open and close routines. */ /* Set links to our BigMAC open and close routines. */
dev->open = &bigmac_open;
dev->stop = &bigmac_close;
dev->hard_start_xmit = &bigmac_start_xmit;
dev->ethtool_ops = &bigmac_ethtool_ops; dev->ethtool_ops = &bigmac_ethtool_ops;
dev->netdev_ops = &bigmac_ops;
/* Set links to BigMAC statistic and multi-cast loading code. */
dev->get_stats = &bigmac_get_stats;
dev->set_multicast_list = &bigmac_set_multicast;
dev->tx_timeout = &bigmac_tx_timeout;
dev->watchdog_timeo = 5*HZ; dev->watchdog_timeo = 5*HZ;
/* Finish net device registration. */ /* Finish net device registration. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment