diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2008-10-16 08:19:04 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-10-16 10:53:30 -0400 |
commit | 10e580842ec8e53dddf62e1ab1871f4906477376 (patch) | |
tree | 5793b45755f21f578ff4b06a3a3546b3de5eb8f4 /kernel/irq/handle.c | |
parent | 2be3b52a5785a6a5c5349fbd315f57595f7074be (diff) |
genirq: use iterators for irq_desc loops
Use for_each_irq_desc[_reverse] for all the iteration loops.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/irq/handle.c')
-rw-r--r-- | kernel/irq/handle.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/irq/handle.c b/kernel/irq/handle.c index a69368ff607f..c815b42d0f5b 100644 --- a/kernel/irq/handle.c +++ b/kernel/irq/handle.c | |||
@@ -268,9 +268,10 @@ static struct lock_class_key irq_desc_lock_class; | |||
268 | 268 | ||
269 | void early_init_irq_lock_class(void) | 269 | void early_init_irq_lock_class(void) |
270 | { | 270 | { |
271 | struct irq_desc *desc; | ||
271 | int i; | 272 | int i; |
272 | 273 | ||
273 | for (i = 0; i < nr_irqs; i++) | 274 | for_each_irq_desc(i, desc) |
274 | lockdep_set_class(&irq_desc[i].lock, &irq_desc_lock_class); | 275 | lockdep_set_class(&desc->lock, &irq_desc_lock_class); |
275 | } | 276 | } |
276 | #endif | 277 | #endif |