Commit 878f6485 authored by Stephen Hemminger's avatar Stephen Hemminger Committed by David S. Miller

3c501: convert to net_device_ops

Signed-off-by: default avatarStephen Hemminger <shemminger@vyatta.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a1799af4
...@@ -197,6 +197,17 @@ struct net_device * __init el1_probe(int unit) ...@@ -197,6 +197,17 @@ struct net_device * __init el1_probe(int unit)
return ERR_PTR(err); return ERR_PTR(err);
} }
static const struct net_device_ops el_netdev_ops = {
.ndo_open = el_open,
.ndo_stop = el1_close,
.ndo_start_xmit = el_start_xmit,
.ndo_tx_timeout = el_timeout,
.ndo_set_multicast_list = set_multicast_list,
.ndo_change_mtu = eth_change_mtu,
.ndo_set_mac_address = eth_mac_addr,
.ndo_validate_addr = eth_validate_addr,
};
/** /**
* el1_probe1: * el1_probe1:
* @dev: The device structure to use * @dev: The device structure to use
...@@ -305,12 +316,8 @@ static int __init el1_probe1(struct net_device *dev, int ioaddr) ...@@ -305,12 +316,8 @@ static int __init el1_probe1(struct net_device *dev, int ioaddr)
* The EL1-specific entries in the device structure. * The EL1-specific entries in the device structure.
*/ */
dev->open = &el_open; dev->netdev_ops = &el_netdev_ops;
dev->hard_start_xmit = &el_start_xmit;
dev->tx_timeout = &el_timeout;
dev->watchdog_timeo = HZ; dev->watchdog_timeo = HZ;
dev->stop = &el1_close;
dev->set_multicast_list = &set_multicast_list;
dev->ethtool_ops = &netdev_ethtool_ops; dev->ethtool_ops = &netdev_ethtool_ops;
return 0; return 0;
} }
......
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