[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>
This commit is contained in:
committed by
John W. Linville
parent
3874d0fefd
commit
32a74b7c8f
@@ -195,6 +195,9 @@ static int if_usb_probe(struct usb_interface *intf,
|
||||
if (!(priv = wlan_add_card(usb_cardp)))
|
||||
goto dealloc;
|
||||
|
||||
if (libertas_activate_card(priv))
|
||||
goto dealloc;
|
||||
|
||||
if (libertas_found < MAX_DEVS) {
|
||||
libertas_devs[libertas_found] = priv->wlan_dev.netdev;
|
||||
libertas_found++;
|
||||
|
Reference in New Issue
Block a user