2018-09-23 16:02:35 +00:00
|
|
|
--- a/drivers/net/wireless/ath/ath9k/init.c
|
|
|
|
+++ b/drivers/net/wireless/ath/ath9k/init.c
|
2021-08-20 22:32:31 +00:00
|
|
|
@@ -1122,25 +1122,25 @@ static int __init ath9k_init(void)
|
2014-04-06 10:41:23 +00:00
|
|
|
{
|
|
|
|
int error;
|
2012-04-16 21:08:41 +00:00
|
|
|
|
|
|
|
- error = ath_pci_init();
|
|
|
|
+ error = ath_ahb_init();
|
|
|
|
if (error < 0) {
|
|
|
|
- pr_err("No PCI devices found, driver not installed\n");
|
|
|
|
error = -ENODEV;
|
2014-04-06 10:41:23 +00:00
|
|
|
goto err_out;
|
2012-04-16 21:08:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
- 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;
|
|
|
|
}
|
|
|
|
|
2018-08-02 06:44:29 +00:00
|
|
|
dmi_check_system(ath9k_quirks);
|
|
|
|
|
2012-04-16 21:08:41 +00:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
- err_pci_exit:
|
|
|
|
- ath_pci_exit();
|
|
|
|
+ err_ahb_exit:
|
|
|
|
+ ath_ahb_exit();
|
2014-04-06 10:41:23 +00:00
|
|
|
err_out:
|
|
|
|
return error;
|
|
|
|
}
|