aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/tokenring
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@linux-foundation.org>2009-01-09 08:01:20 -0500
committerDavid S. Miller <davem@davemloft.net>2009-01-21 17:02:26 -0500
commitc86d87402966dc3f1996d17ef6bc2b676b46bb60 (patch)
tree87705d89fec60b93998bcdfff436409b5c110619 /drivers/net/tokenring
parent9fd3238e95046b61d518ddacaa767fa09f31b0d0 (diff)
ibmtr: convert 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/tokenring')
-rw-r--r--drivers/net/tokenring/ibmtr.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/drivers/net/tokenring/ibmtr.c b/drivers/net/tokenring/ibmtr.c
index f195d54ae42..9d896116cf7 100644
--- a/drivers/net/tokenring/ibmtr.c
+++ b/drivers/net/tokenring/ibmtr.c
@@ -815,17 +815,21 @@ static unsigned char __devinit get_sram_size(struct tok_info *adapt_info)
815 815
816/*****************************************************************************/ 816/*****************************************************************************/
817 817
818static const struct net_device_ops trdev_netdev_ops = {
819 .ndo_open = tok_open,
820 .ndo_stop = tok_close,
821 .ndo_start_xmit = tok_send_packet,
822 .ndo_set_multicast_list = tok_set_multicast_list,
823 .ndo_change_mtu = ibmtr_change_mtu,
824};
825
818static int __devinit trdev_init(struct net_device *dev) 826static int __devinit trdev_init(struct net_device *dev)
819{ 827{
820 struct tok_info *ti = netdev_priv(dev); 828 struct tok_info *ti = netdev_priv(dev);
821 829
822 SET_PAGE(ti->srb_page); 830 SET_PAGE(ti->srb_page);
823 ti->open_failure = NO ; 831 ti->open_failure = NO ;
824 dev->open = tok_open; 832 dev->netdev_ops = &trdev_netdev_ops;
825 dev->stop = tok_close;
826 dev->hard_start_xmit = tok_send_packet;
827 dev->set_multicast_list = tok_set_multicast_list;
828 dev->change_mtu = ibmtr_change_mtu;
829 833
830 return 0; 834 return 0;
831} 835}