aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/appletalk/ltpc.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/net/appletalk/ltpc.c b/drivers/net/appletalk/ltpc.c
index 74d9787311e6..78cc71469136 100644
--- a/drivers/net/appletalk/ltpc.c
+++ b/drivers/net/appletalk/ltpc.c
@@ -1012,6 +1012,12 @@ static int __init ltpc_probe_dma(int base, int dma)
1012 return (want & 2) ? 3 : 1; 1012 return (want & 2) ? 3 : 1;
1013} 1013}
1014 1014
1015static 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
1015struct net_device * __init ltpc_probe(void) 1021struct net_device * __init ltpc_probe(void)
1016{ 1022{
1017 struct net_device *dev; 1023 struct net_device *dev;
@@ -1118,13 +1124,7 @@ struct net_device * __init ltpc_probe(void)
1118 else 1124 else
1119 printk(KERN_INFO "Apple/Farallon LocalTalk-PC card at %03x, DMA%d. Using polled mode.\n",io,dma); 1125 printk(KERN_INFO "Apple/Farallon LocalTalk-PC card at %03x, DMA%d. Using polled mode.\n",io,dma);
1120 1126
1121 /* Fill in the fields of the device structure with ethernet-generic values. */ 1127 dev->netdev_ops = &ltpc_netdev;
1122 dev->hard_start_xmit = ltpc_xmit;
1123
1124 /* add the ltpc-specific things */
1125 dev->do_ioctl = &ltpc_ioctl;
1126
1127 dev->set_multicast_list = &set_multicast_list;
1128 dev->mc_list = NULL; 1128 dev->mc_list = NULL;
1129 dev->base_addr = io; 1129 dev->base_addr = io;
1130 dev->irq = irq; 1130 dev->irq = irq;