[PATCH] ARM: S5PC210: Use nr_irqs instead of NR_IRQS

Kyungmin Park kmpark at infradead.org
Tue Sep 28 01:50:27 EDT 2010


From: Kyungmin Park <kyungmin.park at samsung.com>

Don't use the NR_IRQS at code. It makes hard to work sparse IRQ.

Signed-off-by: Kyungmin Park <kyungmin.park at samsung.com>
---
diff --git a/arch/arm/mach-s5pv310/irq-combiner.c b/arch/arm/mach-s5pv310/irq-combiner.c
index 0f70521..1bb38bf 100644
--- a/arch/arm/mach-s5pv310/irq-combiner.c
+++ b/arch/arm/mach-s5pv310/irq-combiner.c
@@ -73,7 +73,7 @@ static void combiner_handle_cascade_irq(unsigned int irq, struct irq_desc *desc)
 	}
 
 	cascade_irq = combiner_irq + (chip_data->irq_offset & ~31);
-	if (unlikely(cascade_irq >= NR_IRQS))
+	if (unlikely(cascade_irq >= nr_irqs))
 		do_bad_IRQ(cascade_irq, desc);
 	else
 		generic_handle_irq(cascade_irq);



More information about the linux-arm-kernel mailing list