summaryrefslogtreecommitdiffstats
path: root/drivers/net/sunqe.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2009-03-23 13:33:37 -0700
committerDavid S. Miller <davem@davemloft.net>2009-03-23 13:33:37 -0700
commitecd4137320b59759bbe57eef89040ee3e5e66039 (patch)
tree937313eb371dcdb3ec382963a0ba240ecdbe0a4c /drivers/net/sunqe.c
parentc7670718cbca7a2f3c8751076cb62e1691006be9 (diff)
downloadop-kernel-dev-ecd4137320b59759bbe57eef89040ee3e5e66039.zip
op-kernel-dev-ecd4137320b59759bbe57eef89040ee3e5e66039.tar.gz
sunqe: Convert to net_device_ops.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sunqe.c')
-rw-r--r--drivers/net/sunqe.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/drivers/net/sunqe.c b/drivers/net/sunqe.c
index fe0c3f2..dd4757d 100644
--- a/drivers/net/sunqe.c
+++ b/drivers/net/sunqe.c
@@ -829,6 +829,14 @@ fail:
return NULL;
}
+static const struct net_device_ops qec_ops = {
+ .ndo_open = qe_open,
+ .ndo_stop = qe_close,
+ .ndo_start_xmit = qe_start_xmit,
+ .ndo_set_multicast_list = qe_set_multicast,
+ .ndo_tx_timeout = qe_tx_timeout,
+};
+
static int __devinit qec_ether_init(struct of_device *op)
{
static unsigned version_printed;
@@ -893,15 +901,11 @@ static int __devinit qec_ether_init(struct of_device *op)
SET_NETDEV_DEV(dev, &op->dev);
- dev->open = qe_open;
- dev->stop = qe_close;
- dev->hard_start_xmit = qe_start_xmit;
- dev->set_multicast_list = qe_set_multicast;
- dev->tx_timeout = qe_tx_timeout;
dev->watchdog_timeo = 5*HZ;
dev->irq = op->irqs[0];
dev->dma = 0;
dev->ethtool_ops = &qe_ethtool_ops;
+ dev->netdev_ops = &qec_ops;
res = register_netdev(dev);
if (res)
OpenPOWER on IntegriCloud