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

appletalk: convert LTPC 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
816b26f5 4fafc123

+7 -7
+7 -7
drivers/net/appletalk/ltpc.c
··· 1012 1012 return (want & 2) ? 3 : 1; 1013 1013 } 1014 1014 1015 + static const struct net_device_ops ltpc_netdev = { 1016 + .ndo_start_xmit = ltpc_xmit, 1017 + .ndo_do_ioctl = ltpc_ioctl, 1018 + .ndo_set_multicast_list = set_multicast_list, 1019 + }; 1020 + 1015 1021 struct net_device * __init ltpc_probe(void) 1016 1022 { 1017 1023 struct net_device *dev; ··· 1124 1118 else 1125 1119 printk(KERN_INFO "Apple/Farallon LocalTalk-PC card at %03x, DMA%d. Using polled mode.\n",io,dma); 1126 1120 1127 - /* Fill in the fields of the device structure with ethernet-generic values. */ 1128 - dev->hard_start_xmit = ltpc_xmit; 1129 - 1130 - /* add the ltpc-specific things */ 1131 - dev->do_ioctl = &ltpc_ioctl; 1132 - 1133 - dev->set_multicast_list = &set_multicast_list; 1121 + dev->netdev_ops = &ltpc_netdev; 1134 1122 dev->mc_list = NULL; 1135 1123 dev->base_addr = io; 1136 1124 dev->irq = irq;