diff options
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. |
