diff options
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 bdfa89403389..d52f34cc9526 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 | ||