aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/mac80211/patches/501-ath9k_ahb_init.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-10-18 17:38:59 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-10-18 17:38:59 +0000
commitf0d9e712e459332ec527802f7eaca104c47b14c2 (patch)
treeb03de3247dbdd3f785bda5318729be5ab75f5f95 /package/kernel/mac80211/patches/501-ath9k_ahb_init.patch
parent6d3fd947e4aa0430f592e9e3b0eb6b78cbe21f7b (diff)
downloadupstream-f0d9e712e459332ec527802f7eaca104c47b14c2.tar.gz
upstream-f0d9e712e459332ec527802f7eaca104c47b14c2.tar.bz2
upstream-f0d9e712e459332ec527802f7eaca104c47b14c2.zip
mac80211: update to 2014-10-08
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 42952
Diffstat (limited to 'package/kernel/mac80211/patches/501-ath9k_ahb_init.patch')
-rw-r--r--package/kernel/mac80211/patches/501-ath9k_ahb_init.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/package/kernel/mac80211/patches/501-ath9k_ahb_init.patch b/package/kernel/mac80211/patches/501-ath9k_ahb_init.patch
new file mode 100644
index 0000000000..c59e8c975c
--- /dev/null
+++ b/package/kernel/mac80211/patches/501-ath9k_ahb_init.patch
@@ -0,0 +1,32 @@
+--- a/drivers/net/wireless/ath/ath9k/init.c
++++ b/drivers/net/wireless/ath/ath9k/init.c
+@@ -981,23 +981,23 @@ static int __init ath9k_init(void)
+ {
+ int error;
+
+- 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_out;
+ }
+
+- 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_out:
+ return error;
+ }