mac80211: rebase ontop of v4.18.5
[openwrt/openwrt.git] / package / kernel / mac80211 / patches / ath / 501-ath9k_ahb_init.patch
1 Index: backports-v4.18-rc7/drivers/net/wireless/ath/ath9k/init.c
2 ===================================================================
3 --- backports-v4.18-rc7.orig/drivers/net/wireless/ath/ath9k/init.c
4 +++ backports-v4.18-rc7/drivers/net/wireless/ath/ath9k/init.c
5 @@ -1144,25 +1144,25 @@ static int __init ath9k_init(void)
6 {
7 int error;
8
9 - error = ath_pci_init();
10 + error = ath_ahb_init();
11 if (error < 0) {
12 - pr_err("No PCI devices found, driver not installed\n");
13 error = -ENODEV;
14 goto err_out;
15 }
16
17 - error = ath_ahb_init();
18 + error = ath_pci_init();
19 if (error < 0) {
20 + pr_err("No PCI devices found, driver not installed\n");
21 error = -ENODEV;
22 - goto err_pci_exit;
23 + goto err_ahb_exit;
24 }
25
26 dmi_check_system(ath9k_quirks);
27
28 return 0;
29
30 - err_pci_exit:
31 - ath_pci_exit();
32 + err_ahb_exit:
33 + ath_ahb_exit();
34 err_out:
35 return error;
36 }