diff options
author | Jonas Gorski <jogo@openwrt.org> | 2013-07-03 17:51:54 +0000 |
---|---|---|
committer | Jonas Gorski <jogo@openwrt.org> | 2013-07-03 17:51:54 +0000 |
commit | fb81a9b5ed2fa8d5ba4e7d00826b5ba1f0344d4f (patch) | |
tree | 9a6e90c8509e709ed1986c0089acf7fd30a06781 /target/linux/ixp4xx/patches-3.10/910-ixp4xx-nr_irq_lines.patch | |
parent | cdd6c5b750d6781bf5bb2bc6346baa54ab961fc4 (diff) | |
download | mtk-20170518-fb81a9b5ed2fa8d5ba4e7d00826b5ba1f0344d4f.zip mtk-20170518-fb81a9b5ed2fa8d5ba4e7d00826b5ba1f0344d4f.tar.gz mtk-20170518-fb81a9b5ed2fa8d5ba4e7d00826b5ba1f0344d4f.tar.bz2 |
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>
SVN-Revision: 37154
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.patch | 22 |
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 0000000..06e09f4 --- /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; + } |