Skip to content

Commit

Permalink
ARM i.MX tzic: do not depend on MXC_INTERNAL_IRQS
Browse files Browse the repository at this point in the history
This becomes meaningless in subsequent patches.

Signed-off-by: Sascha Hauer <[email protected]>
  • Loading branch information
saschahauer committed Jul 7, 2011
1 parent 7bce7e8 commit fe31ad4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion arch/arm/plat-mxc/tzic.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@

void __iomem *tzic_base; /* Used as irq controller base in entry-macro.S */

#define TZIC_NUM_IRQS 128

#ifdef CONFIG_FIQ
static int tzic_set_irq_fiq(unsigned int irq, unsigned int type)
{
Expand Down Expand Up @@ -166,7 +168,7 @@ void __init tzic_init_irq(void __iomem *irqbase)

/* all IRQ no FIQ Warning :: No selection */

for (i = 0; i < MXC_INTERNAL_IRQS; i++) {
for (i = 0; i < TZIC_NUM_IRQS; i++) {
irq_set_chip_and_handler(i, &mxc_tzic_chip.base,
handle_level_irq);
set_irq_flags(i, IRQF_VALID);
Expand Down

0 comments on commit fe31ad4

Please sign in to comment.