Skip to contentSkip to conversation

ARM: NUC900: change condition of IRQ_ADC to NR_IRQS for nuc932

PATCH In review Wan ZongShun 1 participant 1 message Dec 2, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/4 ARM: NUC900: change condition of IRQ_ADC to NR_IRQS for nuc932

Dear Russell,

For applying to nuc932, I modified the 'for' loop condition.

---
 arch/arm/mach-w90x900/irq.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/mach-w90x900/irq.c +1 -1
index 5444a27..633ac8b 100644
@@ -73,7 +73,7 @@ void __init nuc900_init_irq(void)
 
 	__raw_writel(0xFFFFFFFE, REG_AIC_MDCR);
 
-	for (irqno = IRQ_WDT; irqno <= IRQ_ADC; irqno++) {
+	for (irqno = IRQ_WDT; irqno < NR_IRQS; irqno++) {
 		set_irq_chip(irqno, &nuc900_irq_chip);
 		set_irq_handler(irqno, handle_level_irq);
 		set_irq_flags(irqno, IRQF_VALID);
Signature · 1 line
1.5.6.3