proc: fixup irq iterator

There is no need for irq_desc here. Even for sparse_irq we can
handle this clever in for_each_irq_nr().

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
Thomas Gleixner 2008-10-16 14:50:27 +02:00 committed by Ingo Molnar
parent 811410fdb6
commit 2be3b52a57
2 changed files with 5 additions and 5 deletions

View file

@ -27,6 +27,9 @@ extern int nr_irqs;
irq > 0; irq--, desc--)
#endif
#define for_each_irq_nr(irq) \
for (irq = 0; irq < nr_irqs; irq++)
#ifndef CONFIG_S390
#include <linux/linkage.h>