diff options
Diffstat (limited to 'arch/arm/plat-mxc/irq.c')
-rw-r--r-- | arch/arm/plat-mxc/irq.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm/plat-mxc/irq.c b/arch/arm/plat-mxc/irq.c index e937c8759a97..06862654a89a 100644 --- a/arch/arm/plat-mxc/irq.c +++ b/arch/arm/plat-mxc/irq.c | |||
@@ -72,14 +72,14 @@ int mxc_set_irq_fiq(unsigned int irq, unsigned int type) | |||
72 | { | 72 | { |
73 | unsigned int irqt; | 73 | unsigned int irqt; |
74 | 74 | ||
75 | if (irq >= MXC_MAX_INT_LINES) | 75 | if (irq >= MXC_INTERNAL_IRQS) |
76 | return -EINVAL; | 76 | return -EINVAL; |
77 | 77 | ||
78 | if (irq < MXC_MAX_INT_LINES / 2) { | 78 | if (irq < MXC_INTERNAL_IRQS / 2) { |
79 | irqt = __raw_readl(AVIC_INTTYPEL) & ~(1 << irq); | 79 | irqt = __raw_readl(AVIC_INTTYPEL) & ~(1 << irq); |
80 | __raw_writel(irqt | (!!type << irq), AVIC_INTTYPEL); | 80 | __raw_writel(irqt | (!!type << irq), AVIC_INTTYPEL); |
81 | } else { | 81 | } else { |
82 | irq -= MXC_MAX_INT_LINES / 2; | 82 | irq -= MXC_INTERNAL_IRQS / 2; |
83 | irqt = __raw_readl(AVIC_INTTYPEH) & ~(1 << irq); | 83 | irqt = __raw_readl(AVIC_INTTYPEH) & ~(1 << irq); |
84 | __raw_writel(irqt | (!!type << irq), AVIC_INTTYPEH); | 84 | __raw_writel(irqt | (!!type << irq), AVIC_INTTYPEH); |
85 | } | 85 | } |
@@ -129,7 +129,7 @@ void __init mxc_init_irq(void) | |||
129 | /* all IRQ no FIQ */ | 129 | /* all IRQ no FIQ */ |
130 | __raw_writel(0, AVIC_INTTYPEH); | 130 | __raw_writel(0, AVIC_INTTYPEH); |
131 | __raw_writel(0, AVIC_INTTYPEL); | 131 | __raw_writel(0, AVIC_INTTYPEL); |
132 | for (i = 0; i < MXC_MAX_INT_LINES; i++) { | 132 | for (i = 0; i < MXC_INTERNAL_IRQS; i++) { |
133 | set_irq_chip(i, &mxc_avic_chip); | 133 | set_irq_chip(i, &mxc_avic_chip); |
134 | set_irq_handler(i, handle_level_irq); | 134 | set_irq_handler(i, handle_level_irq); |
135 | set_irq_flags(i, IRQF_VALID); | 135 | set_irq_flags(i, IRQF_VALID); |