summaryrefslogtreecommitdiffstats
path: root/arch/mips/ath79/pci.c
diff options
context:
space:
mode:
authorGabor Juhos2013-02-07 20:32:23 +0100
committerJohn Crispin2013-02-17 01:25:41 +0100
commit7e69c10a8ee1f201c040997c6742c27e915730ad (patch)
tree6857d1c2fd9d40491bf393708dcd753b6703f663 /arch/mips/ath79/pci.c
parentMIPS: pci-ar71xx: move irq base to the controller structure (diff)
downloadkernel-qcow2-linux-7e69c10a8ee1f201c040997c6742c27e915730ad.tar.gz
kernel-qcow2-linux-7e69c10a8ee1f201c040997c6742c27e915730ad.tar.xz
kernel-qcow2-linux-7e69c10a8ee1f201c040997c6742c27e915730ad.zip
ath79: add ATH79_CPU_IRQ() macro
Remove the individual ATH79_CPU_IRQ_* constants and use the new macro instead of those. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> Patchwork: http://patchwork.linux-mips.org/patch/4929/ Signed-off-by: John Crispin <blogic@openwrt.org>
Diffstat (limited to 'arch/mips/ath79/pci.c')
-rw-r--r--arch/mips/ath79/pci.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/mips/ath79/pci.c b/arch/mips/ath79/pci.c
index ea8aa10893d8..4350c252bce5 100644
--- a/arch/mips/ath79/pci.c
+++ b/arch/mips/ath79/pci.c
@@ -127,8 +127,8 @@ ath79_register_pci_ar71xx(void)
res[0].end = AR71XX_PCI_CFG_BASE + AR71XX_PCI_CFG_SIZE - 1;
res[1].flags = IORESOURCE_IRQ;
- res[1].start = ATH79_CPU_IRQ_IP2;
- res[1].end = ATH79_CPU_IRQ_IP2;
+ res[1].start = ATH79_CPU_IRQ(2);
+ res[1].end = ATH79_CPU_IRQ(2);
res[2].name = "io_base";
res[2].flags = IORESOURCE_IO;
@@ -208,7 +208,7 @@ int __init ath79_register_pci(void)
AR724X_PCI_MEM_BASE,
AR724X_PCI_MEM_SIZE,
0,
- ATH79_CPU_IRQ_IP2);
+ ATH79_CPU_IRQ(2));
} else if (soc_is_ar9342() ||
soc_is_ar9344()) {
u32 bootstrap;