Commit 283767e7 authored by Stephen Hemminger's avatar Stephen Hemminger Committed by David S. Miller

bpqether: 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 f57505fd
...@@ -466,16 +466,17 @@ static const struct file_operations bpq_info_fops = { ...@@ -466,16 +466,17 @@ static const struct file_operations bpq_info_fops = {
/* ------------------------------------------------------------------------ */ /* ------------------------------------------------------------------------ */
static const struct net_device_ops bpq_netdev_ops = {
.ndo_open = bpq_open,
.ndo_stop = bpq_close,
.ndo_start_xmit = bpq_xmit,
.ndo_set_mac_address = bpq_set_mac_address,
.ndo_do_ioctl = bpq_ioctl,
};
static void bpq_setup(struct net_device *dev) static void bpq_setup(struct net_device *dev)
{ {
dev->netdev_ops = &bpq_netdev_ops;
dev->hard_start_xmit = bpq_xmit;
dev->open = bpq_open;
dev->stop = bpq_close;
dev->set_mac_address = bpq_set_mac_address;
dev->get_stats = bpq_get_stats;
dev->do_ioctl = bpq_ioctl;
dev->destructor = free_netdev; dev->destructor = free_netdev;
memcpy(dev->broadcast, &ax25_bcast, AX25_ADDR_LEN); memcpy(dev->broadcast, &ax25_bcast, AX25_ADDR_LEN);
......
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