source: trunk/package/mac80211/patches/502-ath9k_ahb_init.patch @ 31326

Last change on this file since 31326 was 31326, checked in by nbd, 5 years ago

ath9k/ath5k: fix driver load issues with mesh support compiled out

File size: 693 bytes
  • drivers/net/wireless/ath/ath9k/init.c

    a b static int __init ath9k_init(void) 
    904904                goto err_out; 
    905905        } 
    906906 
    907         error = ath_pci_init(); 
     907        error = ath_ahb_init(); 
    908908        if (error < 0) { 
    909                 pr_err("No PCI devices found, driver not installed\n"); 
    910909                error = -ENODEV; 
    911910                goto err_rate_unregister; 
    912911        } 
    913912 
    914         error = ath_ahb_init(); 
     913        error = ath_pci_init(); 
    915914        if (error < 0) { 
     915                pr_err("No PCI devices found, driver not installed\n"); 
    916916                error = -ENODEV; 
    917                 goto err_pci_exit; 
     917                goto err_ahb_exit; 
    918918        } 
    919919 
    920920        return 0; 
    921921 
    922  err_pci_exit: 
    923         ath_pci_exit(); 
     922 err_ahb_exit: 
     923        ath_ahb_exit(); 
    924924 
    925925 err_rate_unregister: 
    926926        ath_rate_control_unregister(); 
Note: See TracBrowser for help on using the repository browser.