mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-27 17:18:59 +00:00
fb81a9b5ed
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
23 lines
669 B
Diff
23 lines
669 B
Diff
--- 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;
|
|
}
|