diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2009-03-20 15:35:34 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-03-21 22:19:16 -0400 |
commit | 9cc8ba783d56b36259b2d610e97bcda8a6fe3b02 (patch) | |
tree | 54a250bc4ca6c170fd890e2a3fe76ddbedc8d25e /net | |
parent | 92bcd4fe9a63e8785a4f6ba4262ee601c271a70b (diff) |
irlan: convert to net_device_ops
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/irda/irlan/irlan_eth.c | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/net/irda/irlan/irlan_eth.c b/net/irda/irlan/irlan_eth.c index 05112be99569..724bcf951b80 100644 --- a/net/irda/irlan/irlan_eth.c +++ b/net/irda/irlan/irlan_eth.c | |||
@@ -45,6 +45,16 @@ static int irlan_eth_xmit(struct sk_buff *skb, struct net_device *dev); | |||
45 | static void irlan_eth_set_multicast_list( struct net_device *dev); | 45 | static void irlan_eth_set_multicast_list( struct net_device *dev); |
46 | static struct net_device_stats *irlan_eth_get_stats(struct net_device *dev); | 46 | static struct net_device_stats *irlan_eth_get_stats(struct net_device *dev); |
47 | 47 | ||
48 | static const struct net_device_ops irlan_eth_netdev_ops = { | ||
49 | .ndo_open = irlan_eth_open, | ||
50 | .ndo_stop = irlan_eth_close, | ||
51 | .ndo_start_xmit = irlan_eth_xmit, | ||
52 | .ndo_get_stats = irlan_eth_get_stats, | ||
53 | .ndo_set_multicast_list = irlan_eth_set_multicast_list, | ||
54 | .ndo_change_mtu = eth_change_mtu, | ||
55 | .ndo_validate_addr = eth_validate_addr, | ||
56 | }; | ||
57 | |||
48 | /* | 58 | /* |
49 | * Function irlan_eth_setup (dev) | 59 | * Function irlan_eth_setup (dev) |
50 | * | 60 | * |
@@ -53,14 +63,11 @@ static struct net_device_stats *irlan_eth_get_stats(struct net_device *dev); | |||
53 | */ | 63 | */ |
54 | static void irlan_eth_setup(struct net_device *dev) | 64 | static void irlan_eth_setup(struct net_device *dev) |
55 | { | 65 | { |
56 | dev->open = irlan_eth_open; | 66 | ether_setup(dev); |
57 | dev->stop = irlan_eth_close; | 67 | |
58 | dev->hard_start_xmit = irlan_eth_xmit; | 68 | dev->netdev_ops = &irlan_eth_netdev_ops; |
59 | dev->get_stats = irlan_eth_get_stats; | ||
60 | dev->set_multicast_list = irlan_eth_set_multicast_list; | ||
61 | dev->destructor = free_netdev; | 69 | dev->destructor = free_netdev; |
62 | 70 | ||
63 | ether_setup(dev); | ||
64 | 71 | ||
65 | /* | 72 | /* |
66 | * Lets do all queueing in IrTTP instead of this device driver. | 73 | * Lets do all queueing in IrTTP instead of this device driver. |