aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/tlan.c
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2009-01-07 20:27:15 -0500
committerDavid S. Miller <davem@davemloft.net>2009-01-07 20:27:15 -0500
commit391c5e6e1822810900c33165442af8053a8ae054 (patch)
tree087dd4b1086f83be9a417619694bad592da5cb50 /drivers/net/tlan.c
parented8cf436caccb7f464135b0a9eba0e7624299826 (diff)
tlan: 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/tlan.c')
-rw-r--r--drivers/net/tlan.c26
1 files changed, 16 insertions, 10 deletions
diff --git a/drivers/net/tlan.c b/drivers/net/tlan.c
index 85ef8b744557..68b967b585aa 100644
--- a/drivers/net/tlan.c
+++ b/drivers/net/tlan.c
@@ -831,6 +831,21 @@ static void TLan_Poll(struct net_device *dev)
831} 831}
832#endif 832#endif
833 833
834static const struct net_device_ops TLan_netdev_ops = {
835 .ndo_open = TLan_Open,
836 .ndo_stop = TLan_Close,
837 .ndo_start_xmit = TLan_StartTx,
838 .ndo_tx_timeout = TLan_tx_timeout,
839 .ndo_get_stats = TLan_GetStats,
840 .ndo_set_multicast_list = TLan_SetMulticastList,
841 .ndo_do_ioctl = TLan_ioctl,
842 .ndo_change_mtu = eth_change_mtu,
843 .ndo_set_mac_address = eth_mac_addr,
844 .ndo_validate_addr = eth_validate_addr,
845#ifdef CONFIG_NET_POLL_CONTROLLER
846 .ndo_poll_controller = TLan_Poll,
847#endif
848};
834 849
835 850
836 851
@@ -892,16 +907,7 @@ static int TLan_Init( struct net_device *dev )
892 netif_carrier_off(dev); 907 netif_carrier_off(dev);
893 908
894 /* Device methods */ 909 /* Device methods */
895 dev->open = &TLan_Open; 910 dev->netdev_ops = &TLan_netdev_ops;
896 dev->hard_start_xmit = &TLan_StartTx;
897 dev->stop = &TLan_Close;
898 dev->get_stats = &TLan_GetStats;
899 dev->set_multicast_list = &TLan_SetMulticastList;
900 dev->do_ioctl = &TLan_ioctl;
901#ifdef CONFIG_NET_POLL_CONTROLLER
902 dev->poll_controller = &TLan_Poll;
903#endif
904 dev->tx_timeout = &TLan_tx_timeout;
905 dev->watchdog_timeo = TX_TIMEOUT; 911 dev->watchdog_timeo = TX_TIMEOUT;
906 912
907 return 0; 913 return 0;