diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2009-01-07 20:34:36 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-01-07 20:34:36 -0500 |
commit | b8aa76a2bd9782e1a45e96602812910d5cfe7b52 (patch) | |
tree | 8a1ac18a31723e1d180b7d317a3b49c7103425e7 /drivers/net/de620.c | |
parent | 1f5ec79b8ec357516fbe14904a47f619bb3b543d (diff) |
de600: update 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/de620.c')
-rw-r--r-- | drivers/net/de620.c | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/drivers/net/de620.c b/drivers/net/de620.c index bdfa8940338..d52f34cc952 100644 --- a/drivers/net/de620.c +++ b/drivers/net/de620.c | |||
@@ -784,6 +784,17 @@ static int adapter_init(struct net_device *dev) | |||
784 | return 0; /* all ok */ | 784 | return 0; /* all ok */ |
785 | } | 785 | } |
786 | 786 | ||
787 | static const struct net_device_ops de620_netdev_ops = { | ||
788 | .ndo_open = de620_open, | ||
789 | .ndo_stop = de620_close, | ||
790 | .ndo_start_xmit = de620_start_xmit, | ||
791 | .ndo_tx_timeout = de620_timeout, | ||
792 | .ndo_set_multicast_list = de620_set_multicast_list, | ||
793 | .ndo_change_mtu = eth_change_mtu, | ||
794 | .ndo_set_mac_address = eth_mac_addr, | ||
795 | .ndo_validate_addr = eth_validate_addr, | ||
796 | }; | ||
797 | |||
787 | /****************************************************************************** | 798 | /****************************************************************************** |
788 | * | 799 | * |
789 | * Only start-up code below | 800 | * Only start-up code below |
@@ -861,12 +872,8 @@ struct net_device * __init de620_probe(int unit) | |||
861 | else | 872 | else |
862 | printk(" UTP)\n"); | 873 | printk(" UTP)\n"); |
863 | 874 | ||
864 | dev->open = de620_open; | 875 | dev->netdev_ops = &de620_netdev_ops; |
865 | dev->stop = de620_close; | ||
866 | dev->hard_start_xmit = de620_start_xmit; | ||
867 | dev->tx_timeout = de620_timeout; | ||
868 | dev->watchdog_timeo = HZ*2; | 876 | dev->watchdog_timeo = HZ*2; |
869 | dev->set_multicast_list = de620_set_multicast_list; | ||
870 | 877 | ||
871 | /* base_addr and irq are already set, see above! */ | 878 | /* base_addr and irq are already set, see above! */ |
872 | 879 | ||