diff options
Diffstat (limited to 'drivers/net/wireless/libertas/main.c')
-rw-r--r-- | drivers/net/wireless/libertas/main.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/drivers/net/wireless/libertas/main.c b/drivers/net/wireless/libertas/main.c index 5c58c50b430d..33294dd0eeec 100644 --- a/drivers/net/wireless/libertas/main.c +++ b/drivers/net/wireless/libertas/main.c | |||
@@ -15,7 +15,6 @@ | |||
15 | #include <net/ieee80211.h> | 15 | #include <net/ieee80211.h> |
16 | 16 | ||
17 | #include "host.h" | 17 | #include "host.h" |
18 | #include "sbi.h" | ||
19 | #include "decl.h" | 18 | #include "decl.h" |
20 | #include "dev.h" | 19 | #include "dev.h" |
21 | #include "fw.h" | 20 | #include "fw.h" |
@@ -661,7 +660,7 @@ static int wlan_service_main_thread(void *data) | |||
661 | if (adapter->intcounter) { | 660 | if (adapter->intcounter) { |
662 | u8 int_status; | 661 | u8 int_status; |
663 | adapter->intcounter = 0; | 662 | adapter->intcounter = 0; |
664 | int_status = libertas_sbi_get_int_status(priv, &ireg); | 663 | int_status = priv->hw_get_int_status(priv, &ireg); |
665 | 664 | ||
666 | if (int_status) { | 665 | if (int_status) { |
667 | lbs_deb_thread( | 666 | lbs_deb_thread( |
@@ -693,9 +692,9 @@ static int wlan_service_main_thread(void *data) | |||
693 | 692 | ||
694 | adapter->hisregcpy &= ~his_cardevent; | 693 | adapter->hisregcpy &= ~his_cardevent; |
695 | 694 | ||
696 | if (libertas_sbi_read_event_cause(priv)) { | 695 | if (priv->hw_read_event_cause(priv)) { |
697 | lbs_pr_alert( | 696 | lbs_pr_alert( |
698 | "main-thread: libertas_sbi_read_event_cause failed\n"); | 697 | "main-thread: hw_read_event_cause failed\n"); |
699 | spin_unlock_irq(&adapter->driver_lock); | 698 | spin_unlock_irq(&adapter->driver_lock); |
700 | continue; | 699 | continue; |
701 | } | 700 | } |
@@ -850,7 +849,7 @@ int libertas_activate_card(wlan_private *priv) | |||
850 | * relevant information from the card and request for the required | 849 | * relevant information from the card and request for the required |
851 | * IRQ. | 850 | * IRQ. |
852 | */ | 851 | */ |
853 | if (libertas_sbi_register_dev(priv) < 0) { | 852 | if (priv->hw_register_dev(priv) < 0) { |
854 | lbs_pr_err("failed to register WLAN device\n"); | 853 | lbs_pr_err("failed to register WLAN device\n"); |
855 | goto err_registerdev; | 854 | goto err_registerdev; |
856 | } | 855 | } |
@@ -874,7 +873,7 @@ int libertas_activate_card(wlan_private *priv) | |||
874 | goto done; | 873 | goto done; |
875 | 874 | ||
876 | err_init_fw: | 875 | err_init_fw: |
877 | libertas_sbi_unregister_dev(priv); | 876 | priv->hw_unregister_dev(priv); |
878 | err_registerdev: | 877 | err_registerdev: |
879 | destroy_workqueue(priv->assoc_thread); | 878 | destroy_workqueue(priv->assoc_thread); |
880 | /* Stop the thread servicing the interrupts */ | 879 | /* Stop the thread servicing the interrupts */ |
@@ -1156,7 +1155,7 @@ static int wlan_init_module(void) | |||
1156 | 1155 | ||
1157 | libertas_debugfs_init(); | 1156 | libertas_debugfs_init(); |
1158 | 1157 | ||
1159 | if (libertas_sbi_register()) { | 1158 | if (if_usb_register()) { |
1160 | ret = -1; | 1159 | ret = -1; |
1161 | libertas_debugfs_remove(); | 1160 | libertas_debugfs_remove(); |
1162 | } | 1161 | } |
@@ -1169,7 +1168,7 @@ static void wlan_cleanup_module(void) | |||
1169 | { | 1168 | { |
1170 | lbs_deb_enter(LBS_DEB_MAIN); | 1169 | lbs_deb_enter(LBS_DEB_MAIN); |
1171 | 1170 | ||
1172 | libertas_sbi_unregister(); | 1171 | if_usb_unregister(); |
1173 | libertas_debugfs_remove(); | 1172 | libertas_debugfs_remove(); |
1174 | 1173 | ||
1175 | lbs_deb_leave(LBS_DEB_MAIN); | 1174 | lbs_deb_leave(LBS_DEB_MAIN); |