diff options
author | Stephen Hemminger <shemminger@linux-foundation.org> | 2009-01-09 08:01:32 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-01-21 17:02:35 -0500 |
commit | 283767e70501a02e676c99964e5a3f09ec993469 (patch) | |
tree | aa384c0608eccfeb36ba9d3b8ad8e61f596b2984 | |
parent | f57505fd7ce559bacf5cde26a79ea355fa3bc1ce (diff) |
bpqether: convert to net_device_ops
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/hamradio/bpqether.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/drivers/net/hamradio/bpqether.c b/drivers/net/hamradio/bpqether.c index b662b67125bc..4bf0f19ecfa3 100644 --- a/drivers/net/hamradio/bpqether.c +++ b/drivers/net/hamradio/bpqether.c | |||
@@ -466,16 +466,17 @@ static const struct file_operations bpq_info_fops = { | |||
466 | 466 | ||
467 | /* ------------------------------------------------------------------------ */ | 467 | /* ------------------------------------------------------------------------ */ |
468 | 468 | ||
469 | static const struct net_device_ops bpq_netdev_ops = { | ||
470 | .ndo_open = bpq_open, | ||
471 | .ndo_stop = bpq_close, | ||
472 | .ndo_start_xmit = bpq_xmit, | ||
473 | .ndo_set_mac_address = bpq_set_mac_address, | ||
474 | .ndo_do_ioctl = bpq_ioctl, | ||
475 | }; | ||
469 | 476 | ||
470 | static void bpq_setup(struct net_device *dev) | 477 | static void bpq_setup(struct net_device *dev) |
471 | { | 478 | { |
472 | 479 | dev->netdev_ops = &bpq_netdev_ops; | |
473 | dev->hard_start_xmit = bpq_xmit; | ||
474 | dev->open = bpq_open; | ||
475 | dev->stop = bpq_close; | ||
476 | dev->set_mac_address = bpq_set_mac_address; | ||
477 | dev->get_stats = bpq_get_stats; | ||
478 | dev->do_ioctl = bpq_ioctl; | ||
479 | dev->destructor = free_netdev; | 480 | dev->destructor = free_netdev; |
480 | 481 | ||
481 | memcpy(dev->broadcast, &ax25_bcast, AX25_ADDR_LEN); | 482 | memcpy(dev->broadcast, &ax25_bcast, AX25_ADDR_LEN); |