1
0

501-ath9k_ahb_init.patch 650 B

1234567891011121314151617181920212223242526272829303132
  1. --- a/drivers/net/wireless/ath/ath9k/init.c
  2. +++ b/drivers/net/wireless/ath/ath9k/init.c
  3. @@ -1076,23 +1076,23 @@ static int __init ath9k_init(void)
  4. {
  5. int error;
  6. - error = ath_pci_init();
  7. + error = ath_ahb_init();
  8. if (error < 0) {
  9. - pr_err("No PCI devices found, driver not installed\n");
  10. error = -ENODEV;
  11. goto err_out;
  12. }
  13. - error = ath_ahb_init();
  14. + error = ath_pci_init();
  15. if (error < 0) {
  16. + pr_err("No PCI devices found, driver not installed\n");
  17. error = -ENODEV;
  18. - goto err_pci_exit;
  19. + goto err_ahb_exit;
  20. }
  21. return 0;
  22. - err_pci_exit:
  23. - ath_pci_exit();
  24. + err_ahb_exit:
  25. + ath_ahb_exit();
  26. err_out:
  27. return error;
  28. }