[ARM] 3731/1: Allow IRQ definitions of IQ80331 and IQ80332 to co-exist

Patch from Martin Michlmayr

ARCH_IQ80331 and MACH_IQ80332 can be enabled at the same time but a
header file makes certain IRQ definitions conditional, leading to
the following compilation error when both platforms are enabled:

arch/arm/mach-iop3xx/iq80332-pci.c: In function 'iq80332_map_irq':
arch/arm/mach-iop3xx/iq80332-pci.c:54: error: 'IRQ_IQ80332_INTA' undeclared (first use in this function)
arch/arm/mach-iop3xx/iq80332-pci.c:54: error: (Each undeclared identifier is reported only once
arch/arm/mach-iop3xx/iq80332-pci.c:54: error: for each function it appears in.)
arch/arm/mach-iop3xx/iq80332-pci.c:54: error: 'IRQ_IQ80332_INTB' undeclared (first use in this function)
arch/arm/mach-iop3xx/iq80332-pci.c:54: error: 'IRQ_IQ80332_INTC' undeclared (first use in this function)
arch/arm/mach-iop3xx/iq80332-pci.c:54: error: 'IRQ_IQ80332_INTD' undeclared (first use in this function)

Signed-off-by: Martin Michlmayr <tbm@cyrius.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

authored by Martin Michlmayr and committed by Russell King d8ca3d11 284c5e6e

-4
-4
include/asm-arm/arch-iop3xx/iop331-irqs.h
··· 91 #define NR_IRQS NR_IOP331_IRQS 92 93 94 - #if defined(CONFIG_ARCH_IQ80331) 95 /* 96 * Interrupts available on the IQ80331 board 97 */ ··· 110 #define IRQ_IQ80331_INTC IRQ_IOP331_XINT2 111 #define IRQ_IQ80331_INTD IRQ_IOP331_XINT3 112 113 - #elif defined(CONFIG_MACH_IQ80332) 114 /* 115 * Interrupts available on the IQ80332 board 116 */ ··· 128 #define IRQ_IQ80332_INTB IRQ_IOP331_XINT1 129 #define IRQ_IQ80332_INTC IRQ_IOP331_XINT2 130 #define IRQ_IQ80332_INTD IRQ_IOP331_XINT3 131 - 132 - #endif 133 134 #endif // _IOP331_IRQ_H_
··· 91 #define NR_IRQS NR_IOP331_IRQS 92 93 94 /* 95 * Interrupts available on the IQ80331 board 96 */ ··· 111 #define IRQ_IQ80331_INTC IRQ_IOP331_XINT2 112 #define IRQ_IQ80331_INTD IRQ_IOP331_XINT3 113 114 /* 115 * Interrupts available on the IQ80332 board 116 */ ··· 130 #define IRQ_IQ80332_INTB IRQ_IOP331_XINT1 131 #define IRQ_IQ80332_INTC IRQ_IOP331_XINT2 132 #define IRQ_IQ80332_INTD IRQ_IOP331_XINT3 133 134 #endif // _IOP331_IRQ_H_