diff options
author | John Crispin <john@openwrt.org> | 2015-02-09 14:24:00 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2015-02-09 14:24:00 +0000 |
commit | ed84ceaa02386efa5eb46ac24abb644a1d176cfd (patch) | |
tree | 526114e349e1ac1ec87992db6e4b12d770b547cf /target/linux/ixp4xx/patches-3.18/910-ixp4xx-nr_irq_lines.patch | |
parent | ba2d7b9c2b08e8eb65b36e98f1a173548886be06 (diff) | |
download | mtk-20170518-ed84ceaa02386efa5eb46ac24abb644a1d176cfd.zip mtk-20170518-ed84ceaa02386efa5eb46ac24abb644a1d176cfd.tar.gz mtk-20170518-ed84ceaa02386efa5eb46ac24abb644a1d176cfd.tar.bz2 |
ixp4xx: add v3.18 support
Signed-off-by: Your Name <blogic@openwrt.org>
SVN-Revision: 44363
Diffstat (limited to 'target/linux/ixp4xx/patches-3.18/910-ixp4xx-nr_irq_lines.patch')
-rw-r--r-- | target/linux/ixp4xx/patches-3.18/910-ixp4xx-nr_irq_lines.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/target/linux/ixp4xx/patches-3.18/910-ixp4xx-nr_irq_lines.patch b/target/linux/ixp4xx/patches-3.18/910-ixp4xx-nr_irq_lines.patch new file mode 100644 index 0000000..970ee49 --- /dev/null +++ b/target/linux/ixp4xx/patches-3.18/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; + } |