diff options
-rw-r--r-- | arch/arm/plat-mxc/tzic.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/plat-mxc/tzic.c b/arch/arm/plat-mxc/tzic.c index 57f9395f87ce..710f2e7da4ce 100644 --- a/arch/arm/plat-mxc/tzic.c +++ b/arch/arm/plat-mxc/tzic.c | |||
@@ -49,6 +49,8 @@ | |||
49 | 49 | ||
50 | void __iomem *tzic_base; /* Used as irq controller base in entry-macro.S */ | 50 | void __iomem *tzic_base; /* Used as irq controller base in entry-macro.S */ |
51 | 51 | ||
52 | #define TZIC_NUM_IRQS 128 | ||
53 | |||
52 | #ifdef CONFIG_FIQ | 54 | #ifdef CONFIG_FIQ |
53 | static int tzic_set_irq_fiq(unsigned int irq, unsigned int type) | 55 | static int tzic_set_irq_fiq(unsigned int irq, unsigned int type) |
54 | { | 56 | { |
@@ -166,7 +168,7 @@ void __init tzic_init_irq(void __iomem *irqbase) | |||
166 | 168 | ||
167 | /* all IRQ no FIQ Warning :: No selection */ | 169 | /* all IRQ no FIQ Warning :: No selection */ |
168 | 170 | ||
169 | for (i = 0; i < MXC_INTERNAL_IRQS; i++) { | 171 | for (i = 0; i < TZIC_NUM_IRQS; i++) { |
170 | irq_set_chip_and_handler(i, &mxc_tzic_chip.base, | 172 | irq_set_chip_and_handler(i, &mxc_tzic_chip.base, |
171 | handle_level_irq); | 173 | handle_level_irq); |
172 | set_irq_flags(i, IRQF_VALID); | 174 | set_irq_flags(i, IRQF_VALID); |