diff options
author | Holger Schurig <hs4233@mail.mn-solutions.de> | 2007-05-25 12:04:31 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2007-06-11 14:28:38 -0400 |
commit | 32a74b7c8f7b883b532e0e4333b7c3014d3d8fe8 (patch) | |
tree | ef19ed4732bfd73818f6ddfc83b90e2b3eb4363d /drivers/net/wireless/libertas/if_usb.c | |
parent | 3874d0fefd965eedfc7f8e0a5459ddf914eb4306 (diff) |
[PATCH] libertas: split wlan_add_card()
Split wlan_add_card() into a part that just setups kernel parameters and
into the function libertas_activate_card(), which will implizitly use
hardware functions by the started thread.
This allows us later to do something like this:
priv = libertas_add_card();
priv->hw_command_to_host = if_usb_command_to_host;
priv->hw_xxxx = if_usb_xxxx;
priv->hw_yyyy = if_usb_yyyy;
wlan_activate_card()
and of course the CF driver can set it's own 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.c')
-rw-r--r-- | drivers/net/wireless/libertas/if_usb.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/libertas/if_usb.c b/drivers/net/wireless/libertas/if_usb.c index 99f4ba35d6ef..e4caf3e4b352 100644 --- a/drivers/net/wireless/libertas/if_usb.c +++ b/drivers/net/wireless/libertas/if_usb.c | |||
@@ -195,6 +195,9 @@ static int if_usb_probe(struct usb_interface *intf, | |||
195 | if (!(priv = wlan_add_card(usb_cardp))) | 195 | if (!(priv = wlan_add_card(usb_cardp))) |
196 | goto dealloc; | 196 | goto dealloc; |
197 | 197 | ||
198 | if (libertas_activate_card(priv)) | ||
199 | goto dealloc; | ||
200 | |||
198 | if (libertas_found < MAX_DEVS) { | 201 | if (libertas_found < MAX_DEVS) { |
199 | libertas_devs[libertas_found] = priv->wlan_dev.netdev; | 202 | libertas_devs[libertas_found] = priv->wlan_dev.netdev; |
200 | libertas_found++; | 203 | libertas_found++; |