3394af677c
The ath patch number is already large and adding other patch for ath11k will add more confusion with the patch numbering. Since the support of ath11k based device is imminent, prepare the mac80211 ath patch dir and split it in the dedicated ath5k, ath9k, ath10k and ath11k (empty for now). Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
35 lines
686 B
Diff
35 lines
686 B
Diff
--- a/drivers/net/wireless/ath/ath9k/init.c
|
|
+++ b/drivers/net/wireless/ath/ath9k/init.c
|
|
@@ -1143,25 +1143,25 @@ static int __init ath9k_init(void)
|
|
{
|
|
int error;
|
|
|
|
- error = ath_pci_init();
|
|
+ error = ath_ahb_init();
|
|
if (error < 0) {
|
|
- pr_err("No PCI devices found, driver not installed\n");
|
|
error = -ENODEV;
|
|
goto err_out;
|
|
}
|
|
|
|
- error = ath_ahb_init();
|
|
+ error = ath_pci_init();
|
|
if (error < 0) {
|
|
+ pr_err("No PCI devices found, driver not installed\n");
|
|
error = -ENODEV;
|
|
- goto err_pci_exit;
|
|
+ goto err_ahb_exit;
|
|
}
|
|
|
|
dmi_check_system(ath9k_quirks);
|
|
|
|
return 0;
|
|
|
|
- err_pci_exit:
|
|
- ath_pci_exit();
|
|
+ err_ahb_exit:
|
|
+ ath_ahb_exit();
|
|
err_out:
|
|
return error;
|
|
}
|