diff options
author | Stephen Hemminger <shemminger@linux-foundation.org> | 2009-03-26 18:11:21 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-03-27 10:46:42 +0300 |
commit | 816b26f500e9d78ccd56e1c8ffac85f5d8765c00 (patch) | |
tree | 362526f3fa81bb7980b3d962958de1867f7ee8ea /drivers/net/appletalk | |
parent | 4fafc12328a4e2d4afbc4541c46be014e22c5b66 (diff) | |
download | linux-816b26f500e9d78ccd56e1c8ffac85f5d8765c00.tar.xz |
appletalk: convert LTPC 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/appletalk')
-rw-r--r-- | drivers/net/appletalk/ltpc.c | 14 |
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) return (want & 2) ? 3 : 1; } +static const struct net_device_ops ltpc_netdev = { + .ndo_start_xmit = ltpc_xmit, + .ndo_do_ioctl = ltpc_ioctl, + .ndo_set_multicast_list = set_multicast_list, +}; + struct net_device * __init ltpc_probe(void) { struct net_device *dev; @@ -1118,13 +1124,7 @@ struct net_device * __init ltpc_probe(void) else printk(KERN_INFO "Apple/Farallon LocalTalk-PC card at %03x, DMA%d. Using polled mode.\n",io,dma); - /* Fill in the fields of the device structure with ethernet-generic values. */ - dev->hard_start_xmit = ltpc_xmit; - - /* add the ltpc-specific things */ - dev->do_ioctl = <pc_ioctl; - - dev->set_multicast_list = &set_multicast_list; + dev->netdev_ops = <pc_netdev; dev->mc_list = NULL; dev->base_addr = io; dev->irq = irq; |