Commit 9cc8ba78 authored by Stephen Hemminger's avatar Stephen Hemminger Committed by David S. Miller

irlan: convert to net_device_ops

Signed-off-by: default avatarStephen Hemminger <shemminger@vyatta.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 92bcd4fe
...@@ -45,6 +45,16 @@ static int irlan_eth_xmit(struct sk_buff *skb, struct net_device *dev); ...@@ -45,6 +45,16 @@ static int irlan_eth_xmit(struct sk_buff *skb, struct net_device *dev);
static void irlan_eth_set_multicast_list( struct net_device *dev); static void irlan_eth_set_multicast_list( struct net_device *dev);
static struct net_device_stats *irlan_eth_get_stats(struct net_device *dev); static struct net_device_stats *irlan_eth_get_stats(struct net_device *dev);
static const struct net_device_ops irlan_eth_netdev_ops = {
.ndo_open = irlan_eth_open,
.ndo_stop = irlan_eth_close,
.ndo_start_xmit = irlan_eth_xmit,
.ndo_get_stats = irlan_eth_get_stats,
.ndo_set_multicast_list = irlan_eth_set_multicast_list,
.ndo_change_mtu = eth_change_mtu,
.ndo_validate_addr = eth_validate_addr,
};
/* /*
* Function irlan_eth_setup (dev) * Function irlan_eth_setup (dev)
* *
...@@ -53,14 +63,11 @@ static struct net_device_stats *irlan_eth_get_stats(struct net_device *dev); ...@@ -53,14 +63,11 @@ static struct net_device_stats *irlan_eth_get_stats(struct net_device *dev);
*/ */
static void irlan_eth_setup(struct net_device *dev) static void irlan_eth_setup(struct net_device *dev)
{ {
dev->open = irlan_eth_open; ether_setup(dev);
dev->stop = irlan_eth_close;
dev->hard_start_xmit = irlan_eth_xmit; dev->netdev_ops = &irlan_eth_netdev_ops;
dev->get_stats = irlan_eth_get_stats;
dev->set_multicast_list = irlan_eth_set_multicast_list;
dev->destructor = free_netdev; dev->destructor = free_netdev;
ether_setup(dev);
/* /*
* Lets do all queueing in IrTTP instead of this device driver. * Lets do all queueing in IrTTP instead of this device driver.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment