aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ixp4xx/patches-3.10/910-ixp4xx-nr_irq_lines.patch
diff options
context:
space:
mode:
authorJonas Gorski <jogo@openwrt.org>2013-07-03 17:51:54 +0000
committerJonas Gorski <jogo@openwrt.org>2013-07-03 17:51:54 +0000
commitf734ba771b7e5ef212d594a1ca3f557cae792d1f (patch)
treeef37d6c9f5cd1e66ba5b51adc8e446e1c16195d6 /target/linux/ixp4xx/patches-3.10/910-ixp4xx-nr_irq_lines.patch
parenta3a701aee78c83256c6609001f68af77accb6e5d (diff)
downloadupstream-f734ba771b7e5ef212d594a1ca3f557cae792d1f.tar.gz
upstream-f734ba771b7e5ef212d594a1ca3f557cae792d1f.tar.bz2
upstream-f734ba771b7e5ef212d594a1ca3f557cae792d1f.zip
ixp4xx: replace magic number with macros in avila/ixdp425/miccpt PCI routing setup
Replace magic number with the appropriate macro in avila/ixdp425/miccpt PCI routing setup. Signed-off-by: Tamas TEVESZ <ice@extreme.hu> Signed-off-by: Jonas Gorski <jogo@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37154 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ixp4xx/patches-3.10/910-ixp4xx-nr_irq_lines.patch')
-rw-r--r--target/linux/ixp4xx/patches-3.10/910-ixp4xx-nr_irq_lines.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/target/linux/ixp4xx/patches-3.10/910-ixp4xx-nr_irq_lines.patch b/target/linux/ixp4xx/patches-3.10/910-ixp4xx-nr_irq_lines.patch
new file mode 100644
index 0000000000..06e09f469d
--- /dev/null
+++ b/target/linux/ixp4xx/patches-3.10/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;
+ }