summaryrefslogtreecommitdiffstats
path: root/target/linux/atheros/patches-3.18/105-ar2315_pci.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-03-13 02:59:04 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-03-13 02:59:04 +0000
commit2f1ff48ea3dd36424aee989f53104d98a553954b (patch)
tree2d43d512c5c8c241b64dbb62068830887f0a609d /target/linux/atheros/patches-3.18/105-ar2315_pci.patch
parent8a98d187d5660c9fc397e9966435a5835eb0d54c (diff)
downloadmaster-31e0f0ae-2f1ff48ea3dd36424aee989f53104d98a553954b.tar.gz
master-31e0f0ae-2f1ff48ea3dd36424aee989f53104d98a553954b.tar.bz2
master-31e0f0ae-2f1ff48ea3dd36424aee989f53104d98a553954b.zip
atheros: v3.18: change calls logic
Check SoC family (AR5312+ or AR2315+) before call instead of checking it inside the called function. Also convert ar{5312,2315}_init_device() function to void, since they both return zero and nobody care about return value. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 44713
Diffstat (limited to 'target/linux/atheros/patches-3.18/105-ar2315_pci.patch')
-rw-r--r--target/linux/atheros/patches-3.18/105-ar2315_pci.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/atheros/patches-3.18/105-ar2315_pci.patch b/target/linux/atheros/patches-3.18/105-ar2315_pci.patch
index 9d8954f846..3c66d86fe9 100644
--- a/target/linux/atheros/patches-3.18/105-ar2315_pci.patch
+++ b/target/linux/atheros/patches-3.18/105-ar2315_pci.patch
@@ -382,7 +382,7 @@
else if (pending & CAUSEF_IP2)
do_IRQ(AR2315_IRQ_MISC_INTRS);
else if (pending & CAUSEF_IP7)
-@@ -445,3 +449,18 @@ void __init ar2315_plat_mem_setup(void)
+@@ -428,3 +432,18 @@ void __init ar2315_plat_mem_setup(void)
ath25_serial_setup(AR2315_UART0, AR2315_MISC_IRQ_UART0,
ar2315_apb_frequency());
}