501-ath9k_ahb_init.patch 860 B

123456789101112131415161718192021222324252627282930313233343536
  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. - error = ath_pci_init();
  9. + error = ath_ahb_init();
  10. if (error < 0) {
  11. - pr_err("No PCI devices found, driver not installed\n");
  12. error = -ENODEV;
  13. goto err_out;
  14. }
  15. - error = ath_ahb_init();
  16. + error = ath_pci_init();
  17. if (error < 0) {
  18. + pr_err("No PCI devices found, driver not installed\n");
  19. error = -ENODEV;
  20. - goto err_pci_exit;
  21. + goto err_ahb_exit;
  22. }
  23. dmi_check_system(ath9k_quirks);
  24. return 0;
  25. - err_pci_exit:
  26. - ath_pci_exit();
  27. + err_ahb_exit:
  28. + ath_ahb_exit();
  29. err_out:
  30. return error;
  31. }