mipsnet: convert to net_device_ops
authorAlexander Beregalov <a.beregalov@gmail.com>
Wed, 15 Apr 2009 12:52:51 +0000 (12:52 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 16 Apr 2009 09:20:18 +0000 (02:20 -0700)
Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/mipsnet.c

index 664835b822fba31ed7d3d8cd15ce20172887dc36..b3b9a147d09a3c9cf23906d6034049240bf20919 100644 (file)
@@ -237,6 +237,16 @@ static void mipsnet_set_mclist(struct net_device *dev)
 {
 }
 
+static const struct net_device_ops mipsnet_netdev_ops = {
+       .ndo_open               = mipsnet_open,
+       .ndo_stop               = mipsnet_close,
+       .ndo_start_xmit         = mipsnet_xmit,
+       .ndo_set_multicast_list = mipsnet_set_mclist,
+       .ndo_change_mtu         = eth_change_mtu,
+       .ndo_validate_addr      = eth_validate_addr,
+       .ndo_set_mac_address    = eth_mac_addr,
+};
+
 static int __init mipsnet_probe(struct platform_device *dev)
 {
        struct net_device *netdev;
@@ -250,10 +260,7 @@ static int __init mipsnet_probe(struct platform_device *dev)
 
        platform_set_drvdata(dev, netdev);
 
-       netdev->open                    = mipsnet_open;
-       netdev->stop                    = mipsnet_close;
-       netdev->hard_start_xmit         = mipsnet_xmit;
-       netdev->set_multicast_list      = mipsnet_set_mclist;
+       netdev->netdev_ops = &mipsnet_netdev_ops;
 
        /*
         * TODO: probe for these or load them from PARAM