2012-04-16 21:08:41 +00:00
|
|
|
--- a/drivers/net/wireless/ath/ath9k/init.c
|
|
|
|
+++ b/drivers/net/wireless/ath/ath9k/init.c
|
2013-10-10 21:10:45 +00:00
|
|
|
@@ -1069,23 +1069,23 @@ static int __init ath9k_init(void)
|
2012-04-16 21:08:41 +00:00
|
|
|
goto err_out;
|
|
|
|
}
|
|
|
|
|
|
|
|
- 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_rate_unregister;
|
|
|
|
}
|
|
|
|
|
|
|
|
- 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;
|
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
- err_pci_exit:
|
|
|
|
- ath_pci_exit();
|
|
|
|
+ err_ahb_exit:
|
|
|
|
+ ath_ahb_exit();
|
|
|
|
|
|
|
|
err_rate_unregister:
|
|
|
|
ath_rate_control_unregister();
|