diff options
author | Stephen Hemminger <shemminger@linux-foundation.org> | 2009-03-26 11:11:35 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-03-27 03:46:51 -0400 |
commit | 8afb1cebf5e7fde4a1bddacb559bda8526e64144 (patch) | |
tree | b353d927f2a9a74419fc9c3bc8b03e9164a3686d /drivers/net/eepro.c | |
parent | 8a5f7dafbc92b6e87bd02b9d5b2b58da4f5bb4c3 (diff) |
netdev: convert eexpro to net_device_ops
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/eepro.c')
-rw-r--r-- | drivers/net/eepro.c | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/drivers/net/eepro.c b/drivers/net/eepro.c index e187c88ae145..cc2ab6412c73 100644 --- a/drivers/net/eepro.c +++ b/drivers/net/eepro.c | |||
@@ -739,6 +739,17 @@ static void __init eepro_print_info (struct net_device *dev) | |||
739 | 739 | ||
740 | static const struct ethtool_ops eepro_ethtool_ops; | 740 | static const struct ethtool_ops eepro_ethtool_ops; |
741 | 741 | ||
742 | static const struct net_device_ops eepro_netdev_ops = { | ||
743 | .ndo_open = eepro_open, | ||
744 | .ndo_stop = eepro_close, | ||
745 | .ndo_start_xmit = eepro_send_packet, | ||
746 | .ndo_set_multicast_list = set_multicast_list, | ||
747 | .ndo_tx_timeout = eepro_tx_timeout, | ||
748 | .ndo_change_mtu = eth_change_mtu, | ||
749 | .ndo_set_mac_address = eth_mac_addr, | ||
750 | .ndo_validate_addr = eth_validate_addr, | ||
751 | }; | ||
752 | |||
742 | /* This is the real probe routine. Linux has a history of friendly device | 753 | /* This is the real probe routine. Linux has a history of friendly device |
743 | probes on the ISA bus. A good device probe avoids doing writes, and | 754 | probes on the ISA bus. A good device probe avoids doing writes, and |
744 | verifies that the correct device exists and functions. */ | 755 | verifies that the correct device exists and functions. */ |
@@ -851,11 +862,7 @@ static int __init eepro_probe1(struct net_device *dev, int autoprobe) | |||
851 | } | 862 | } |
852 | } | 863 | } |
853 | 864 | ||
854 | dev->open = eepro_open; | 865 | dev->netdev_ops = &eepro_netdev_ops; |
855 | dev->stop = eepro_close; | ||
856 | dev->hard_start_xmit = eepro_send_packet; | ||
857 | dev->set_multicast_list = &set_multicast_list; | ||
858 | dev->tx_timeout = eepro_tx_timeout; | ||
859 | dev->watchdog_timeo = TX_TIMEOUT; | 866 | dev->watchdog_timeo = TX_TIMEOUT; |
860 | dev->ethtool_ops = &eepro_ethtool_ops; | 867 | dev->ethtool_ops = &eepro_ethtool_ops; |
861 | 868 | ||