diff options
author | Stephen Hemminger <shemminger@linux-foundation.org> | 2009-01-09 08:01:41 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-01-21 17:02:40 -0500 |
commit | 6095e08126790592699d8aeef4d31b263a4176a4 (patch) | |
tree | b8634bb3165688496848cd500360e8824e0496b5 /drivers/net/hamradio | |
parent | ddbe9a686805c36a0e68451ebb8cb51b21d0c718 (diff) |
dmascc: convert to net_device_ops
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/hamradio')
-rw-r--r-- | drivers/net/hamradio/mkiss.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/drivers/net/hamradio/mkiss.c b/drivers/net/hamradio/mkiss.c index 6fc0e698bcb7..ed5b37d43334 100644 --- a/drivers/net/hamradio/mkiss.c +++ b/drivers/net/hamradio/mkiss.c | |||
@@ -667,19 +667,23 @@ static const struct header_ops ax_header_ops = { | |||
667 | .rebuild = ax_rebuild_header, | 667 | .rebuild = ax_rebuild_header, |
668 | }; | 668 | }; |
669 | 669 | ||
670 | static const struct net_device_ops ax_netdev_ops = { | ||
671 | .ndo_open = ax_open_dev, | ||
672 | .ndo_stop = ax_close, | ||
673 | .ndo_start_xmit = ax_xmit, | ||
674 | .ndo_set_mac_address = ax_set_mac_address, | ||
675 | }; | ||
676 | |||
670 | static void ax_setup(struct net_device *dev) | 677 | static void ax_setup(struct net_device *dev) |
671 | { | 678 | { |
672 | /* Finish setting up the DEVICE info. */ | 679 | /* Finish setting up the DEVICE info. */ |
673 | dev->mtu = AX_MTU; | 680 | dev->mtu = AX_MTU; |
674 | dev->hard_start_xmit = ax_xmit; | ||
675 | dev->open = ax_open_dev; | ||
676 | dev->stop = ax_close; | ||
677 | dev->set_mac_address = ax_set_mac_address; | ||
678 | dev->hard_header_len = 0; | 681 | dev->hard_header_len = 0; |
679 | dev->addr_len = 0; | 682 | dev->addr_len = 0; |
680 | dev->type = ARPHRD_AX25; | 683 | dev->type = ARPHRD_AX25; |
681 | dev->tx_queue_len = 10; | 684 | dev->tx_queue_len = 10; |
682 | dev->header_ops = &ax_header_ops; | 685 | dev->header_ops = &ax_header_ops; |
686 | dev->netdev_ops = &ax_netdev_ops; | ||
683 | 687 | ||
684 | 688 | ||
685 | memcpy(dev->broadcast, &ax25_bcast, AX25_ADDR_LEN); | 689 | memcpy(dev->broadcast, &ax25_bcast, AX25_ADDR_LEN); |