Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ibmtr: convert to net_device_ops

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Stephen Hemminger and committed by
David S. Miller
c86d8740 9fd3238e

+9 -5
+9 -5
drivers/net/tokenring/ibmtr.c
··· 815 815 816 816 /*****************************************************************************/ 817 817 818 + static 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 + 818 826 static int __devinit trdev_init(struct net_device *dev) 819 827 { 820 828 struct tok_info *ti = netdev_priv(dev); 821 829 822 830 SET_PAGE(ti->srb_page); 823 831 ti->open_failure = NO ; 824 - dev->open = tok_open; 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; 832 + dev->netdev_ops = &trdev_netdev_ops; 829 833 830 834 return 0; 831 835 }