diff options
author | Jonas Gorski <jogo@openwrt.org> | 2015-07-05 21:33:21 +0000 |
---|---|---|
committer | Jonas Gorski <jogo@openwrt.org> | 2015-07-05 21:33:21 +0000 |
commit | a887f3a0a3757df5f8eb79045a60d65d4c505b98 (patch) | |
tree | be40571d173929962a191f4a664950feac26eddb /target/linux/ixp4xx/patches-4.1/910-ixp4xx-nr_irq_lines.patch | |
parent | fc3cda695cf056bdabea11452d0bf699f877811b (diff) | |
download | master-31e0f0ae-a887f3a0a3757df5f8eb79045a60d65d4c505b98.tar.gz master-31e0f0ae-a887f3a0a3757df5f8eb79045a60d65d4c505b98.tar.bz2 master-31e0f0ae-a887f3a0a3757df5f8eb79045a60d65d4c505b98.zip |
ixp4xx: add linux 4.1 support
Compile tested only.
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 46189
Diffstat (limited to 'target/linux/ixp4xx/patches-4.1/910-ixp4xx-nr_irq_lines.patch')
-rw-r--r-- | target/linux/ixp4xx/patches-4.1/910-ixp4xx-nr_irq_lines.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/target/linux/ixp4xx/patches-4.1/910-ixp4xx-nr_irq_lines.patch b/target/linux/ixp4xx/patches-4.1/910-ixp4xx-nr_irq_lines.patch new file mode 100644 index 0000000000..06e09f469d --- /dev/null +++ b/target/linux/ixp4xx/patches-4.1/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; + } |