Commit d6771e0b authored by Alexander Beregalov's avatar Alexander Beregalov Committed by David S. Miller

mipsnet: convert to net_device_ops

Signed-off-by: default avatarAlexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d53bc2df
...@@ -237,6 +237,16 @@ static void mipsnet_set_mclist(struct net_device *dev) ...@@ -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) static int __init mipsnet_probe(struct platform_device *dev)
{ {
struct net_device *netdev; struct net_device *netdev;
...@@ -250,10 +260,7 @@ static int __init mipsnet_probe(struct platform_device *dev) ...@@ -250,10 +260,7 @@ static int __init mipsnet_probe(struct platform_device *dev)
platform_set_drvdata(dev, netdev); platform_set_drvdata(dev, netdev);
netdev->open = mipsnet_open; netdev->netdev_ops = &mipsnet_netdev_ops;
netdev->stop = mipsnet_close;
netdev->hard_start_xmit = mipsnet_xmit;
netdev->set_multicast_list = mipsnet_set_mclist;
/* /*
* TODO: probe for these or load them from PARAM * TODO: probe for these or load them from PARAM
......
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