]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ieee1394: convert to net_device_ops
authorStephen Hemminger <shemminger@vyatta.com>
Tue, 6 Jan 2009 12:54:56 +0000 (12:54 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Jan 2009 00:48:30 +0000 (16:48 -0800)
Convert to net_device_ops.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Acked-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/ieee1394/eth1394.c

index 20128692b3398be1c3a8556e78b593718894bdc1..c5b272a5268a336c268a547d297505563ba48026 100644 (file)
@@ -516,16 +516,20 @@ static const struct header_ops ether1394_header_ops = {
        .parse          = ether1394_header_parse,
 };
 
+static const struct net_device_ops ether1394_netdev_ops = {
+       .ndo_open       = ether1394_open,
+       .ndo_stop       = ether1394_stop,
+       .ndo_start_xmit = ether1394_tx,
+       .ndo_get_stats  = ether1394_stats,
+       .ndo_tx_timeout = ether1394_tx_timeout,
+       .ndo_change_mtu = ether1394_change_mtu,
+};
+
 static void ether1394_init_dev(struct net_device *dev)
 {
-       dev->open               = ether1394_open;
-       dev->stop               = ether1394_stop;
-       dev->hard_start_xmit    = ether1394_tx;
-       dev->get_stats          = ether1394_stats;
-       dev->tx_timeout         = ether1394_tx_timeout;
-       dev->change_mtu         = ether1394_change_mtu;
 
        dev->header_ops         = &ether1394_header_ops;
+       dev->netdev_ops         = &ether1394_netdev_ops;
 
        SET_ETHTOOL_OPS(dev, &ethtool_ops);