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

ether3: convert to net_device_ops

Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Alexander Beregalov and committed by
David S. Miller
fe146be6 0b179e31

+13 -6
+13 -6
drivers/net/arm/ether3.c
··· 770 770 printk(KERN_INFO "%s", version); 771 771 } 772 772 773 + static const struct net_device_ops ether3_netdev_ops = { 774 + .ndo_open = ether3_open, 775 + .ndo_stop = ether3_close, 776 + .ndo_start_xmit = ether3_sendpacket, 777 + .ndo_get_stats = ether3_getstats, 778 + .ndo_set_multicast_list = ether3_setmulticastlist, 779 + .ndo_tx_timeout = ether3_timeout, 780 + .ndo_validate_addr = eth_validate_addr, 781 + .ndo_change_mtu = eth_change_mtu, 782 + .ndo_set_mac_address = eth_mac_addr, 783 + }; 784 + 773 785 static int __devinit 774 786 ether3_probe(struct expansion_card *ec, const struct ecard_id *id) 775 787 { ··· 858 846 goto free; 859 847 } 860 848 861 - dev->open = ether3_open; 862 - dev->stop = ether3_close; 863 - dev->hard_start_xmit = ether3_sendpacket; 864 - dev->get_stats = ether3_getstats; 865 - dev->set_multicast_list = ether3_setmulticastlist; 866 - dev->tx_timeout = ether3_timeout; 849 + dev->netdev_ops = &ether3_netdev_ops; 867 850 dev->watchdog_timeo = 5 * HZ / 100; 868 851 869 852 ret = register_netdev(dev);