aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2009-03-23 16:33:37 -0400
committerDavid S. Miller <davem@davemloft.net>2009-03-23 16:33:37 -0400
commitecd4137320b59759bbe57eef89040ee3e5e66039 (patch)
tree937313eb371dcdb3ec382963a0ba240ecdbe0a4c /drivers
parentc7670718cbca7a2f3c8751076cb62e1691006be9 (diff)
sunqe: Convert to net_device_ops.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-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 fe0c3f244562..dd4757d087eb 100644
--- a/drivers/net/sunqe.c
+++ b/drivers/net/sunqe.c
@@ -829,6 +829,14 @@ fail:
829 return NULL; 829 return NULL;
830} 830}
831 831
832static const struct net_device_ops qec_ops = {
833 .ndo_open = qe_open,
834 .ndo_stop = qe_close,
835 .ndo_start_xmit = qe_start_xmit,
836 .ndo_set_multicast_list = qe_set_multicast,
837 .ndo_tx_timeout = qe_tx_timeout,
838};
839
832static int __devinit qec_ether_init(struct of_device *op) 840static int __devinit qec_ether_init(struct of_device *op)
833{ 841{
834 static unsigned version_printed; 842 static unsigned version_printed;
@@ -893,15 +901,11 @@ static int __devinit qec_ether_init(struct of_device *op)
893 901
894 SET_NETDEV_DEV(dev, &op->dev); 902 SET_NETDEV_DEV(dev, &op->dev);
895 903
896 dev->open = qe_open;
897 dev->stop = qe_close;
898 dev->hard_start_xmit = qe_start_xmit;
899 dev->set_multicast_list = qe_set_multicast;
900 dev->tx_timeout = qe_tx_timeout;
901 dev->watchdog_timeo = 5*HZ; 904 dev->watchdog_timeo = 5*HZ;
902 dev->irq = op->irqs[0]; 905 dev->irq = op->irqs[0];
903 dev->dma = 0; 906 dev->dma = 0;
904 dev->ethtool_ops = &qe_ethtool_ops; 907 dev->ethtool_ops = &qe_ethtool_ops;
908 dev->netdev_ops = &qec_ops;
905 909
906 res = register_netdev(dev); 910 res = register_netdev(dev);
907 if (res) 911 if (res)