summaryrefslogtreecommitdiffstats
path: root/target/linux/ixp4xx/patches-3.14/910-ixp4xx-nr_irq_lines.patch
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2014-12-01 16:14:21 +0000
committerJohn Crispin <john@openwrt.org>2014-12-01 16:14:21 +0000
commitc27ee280ce3f7232059b06994e38a316f4eccebf (patch)
tree43afecfaf3feaf7325049834c77f8d3570fd5e07 /target/linux/ixp4xx/patches-3.14/910-ixp4xx-nr_irq_lines.patch
parent00f5d358acac9841bc1e927a3fbaf9a743b1e585 (diff)
downloadmaster-31e0f0ae-c27ee280ce3f7232059b06994e38a316f4eccebf.tar.gz
master-31e0f0ae-c27ee280ce3f7232059b06994e38a316f4eccebf.tar.bz2
master-31e0f0ae-c27ee280ce3f7232059b06994e38a316f4eccebf.zip
ixp4xx: add 3.14 support
Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 43464
Diffstat (limited to 'target/linux/ixp4xx/patches-3.14/910-ixp4xx-nr_irq_lines.patch')
-rw-r--r--target/linux/ixp4xx/patches-3.14/910-ixp4xx-nr_irq_lines.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/target/linux/ixp4xx/patches-3.14/910-ixp4xx-nr_irq_lines.patch b/target/linux/ixp4xx/patches-3.14/910-ixp4xx-nr_irq_lines.patch
new file mode 100644
index 0000000000..06e09f469d
--- /dev/null
+++ b/target/linux/ixp4xx/patches-3.14/910-ixp4xx-nr_irq_lines.patch
@@ -0,0 +1,22 @@
+--- a/arch/arm/mach-ixp4xx/ixdp425-pci.c
++++ b/arch/arm/mach-ixp4xx/ixdp425-pci.c
+@@ -53,7 +53,7 @@ static int __init ixdp425_map_irq(const
+ };
+
+ if (slot >= 1 && slot <= MAX_DEV && pin >= 1 && pin <= IRQ_LINES)
+- return pci_irq_table[(slot + pin - 2) % 4];
++ return pci_irq_table[(slot + pin - 2) % IRQ_LINES];
+
+ return -1;
+ }
+--- a/arch/arm/mach-ixp4xx/miccpt-pci.c
++++ b/arch/arm/mach-ixp4xx/miccpt-pci.c
+@@ -54,7 +54,7 @@ static int __init miccpt_map_irq(const s
+ };
+
+ if (slot >= 1 && slot <= MAX_DEV && pin >= 1 && pin <= IRQ_LINES)
+- return pci_irq_table[(slot + pin - 2) % 4];
++ return pci_irq_table[(slot + pin - 2) % IRQ_LINES];
+
+ return -1;
+ }