diff options
author | Holger Schurig <hs4233@mail.mn-solutions.de> | 2007-05-25 12:41:52 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2007-06-11 14:28:39 -0400 |
commit | 435a1acba23437a6c8462dd8437e48cdf09a2f71 (patch) | |
tree | 69b7f6c02f92d0148d8e470137446b0125e14681 /drivers/net/wireless/libertas/if_usb.h | |
parent | 084708b61014776198c56d1606343d4f504c691e (diff) |
[PATCH] libertas: fix RESET logic at unload time
Previously, we had a fixed array of 5 elements where we remembered all
initialized devices. This has been changed to use a "struct list_head"
organization, which is IMHO cleaner.
Also renamed usb_cardp to cardp, as in the reset of the code.
Renamed reset_device() to if_usb_reset_device() like many other functions.
Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/if_usb.h')
-rw-r--r-- | drivers/net/wireless/libertas/if_usb.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/wireless/libertas/if_usb.h b/drivers/net/wireless/libertas/if_usb.h index e994d75c5250..bfad79eb43cf 100644 --- a/drivers/net/wireless/libertas/if_usb.h +++ b/drivers/net/wireless/libertas/if_usb.h | |||
@@ -1,3 +1,8 @@ | |||
1 | #ifndef _LIBERTAS_IF_USB_H | ||
2 | #define _LIBERTAS_IF_USB_H | ||
3 | |||
4 | #include <linux/list.h> | ||
5 | |||
1 | /** | 6 | /** |
2 | * This file contains definition for USB interface. | 7 | * This file contains definition for USB interface. |
3 | */ | 8 | */ |
@@ -39,6 +44,7 @@ struct read_cb_info { | |||
39 | 44 | ||
40 | /** USB card description structure*/ | 45 | /** USB card description structure*/ |
41 | struct usb_card_rec { | 46 | struct usb_card_rec { |
47 | struct list_head list; | ||
42 | struct net_device *eth_dev; | 48 | struct net_device *eth_dev; |
43 | struct usb_device *udev; | 49 | struct usb_device *udev; |
44 | struct urb *rx_urb, *tx_urb; | 50 | struct urb *rx_urb, *tx_urb; |
@@ -100,3 +106,4 @@ int usb_tx_block(wlan_private *priv, u8 *payload, u16 nb); | |||
100 | void if_usb_free(struct usb_card_rec *cardp); | 106 | void if_usb_free(struct usb_card_rec *cardp); |
101 | int if_usb_issue_boot_command(wlan_private *priv, int ivalue); | 107 | int if_usb_issue_boot_command(wlan_private *priv, int ivalue); |
102 | 108 | ||
109 | #endif | ||