mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-18 07:27:20 +00:00
lec: convert to net_device_ops
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
162619e59a
commit
004b3225c0
@ -667,17 +667,19 @@ static void lec_set_multicast_list(struct net_device *dev)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static const struct net_device_ops lec_netdev_ops = {
|
||||||
|
.ndo_open = lec_open,
|
||||||
|
.ndo_stop = lec_close,
|
||||||
|
.ndo_start_xmit = lec_start_xmit,
|
||||||
|
.ndo_change_mtu = lec_change_mtu,
|
||||||
|
.ndo_tx_timeout = lec_tx_timeout,
|
||||||
|
.ndo_set_multicast_list = lec_set_multicast_list,
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
static void lec_init(struct net_device *dev)
|
static void lec_init(struct net_device *dev)
|
||||||
{
|
{
|
||||||
dev->change_mtu = lec_change_mtu;
|
dev->netdev_ops = &lec_netdev_ops;
|
||||||
dev->open = lec_open;
|
|
||||||
dev->stop = lec_close;
|
|
||||||
dev->hard_start_xmit = lec_start_xmit;
|
|
||||||
dev->tx_timeout = lec_tx_timeout;
|
|
||||||
|
|
||||||
dev->get_stats = lec_get_stats;
|
|
||||||
dev->set_multicast_list = lec_set_multicast_list;
|
|
||||||
dev->do_ioctl = NULL;
|
|
||||||
printk("%s: Initialized!\n", dev->name);
|
printk("%s: Initialized!\n", dev->name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user