diff options
Diffstat (limited to 'arch/powerpc/kernel/irq.c')
-rw-r--r-- | arch/powerpc/kernel/irq.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/irq.c b/arch/powerpc/kernel/irq.c index 65632215f020..baa49eb93228 100644 --- a/arch/powerpc/kernel/irq.c +++ b/arch/powerpc/kernel/irq.c | |||
@@ -1065,8 +1065,11 @@ static int virq_debug_show(struct seq_file *m, void *private) | |||
1065 | seq_printf(m, "%-5s %-7s %-15s %s\n", "virq", "hwirq", | 1065 | seq_printf(m, "%-5s %-7s %-15s %s\n", "virq", "hwirq", |
1066 | "chip name", "host name"); | 1066 | "chip name", "host name"); |
1067 | 1067 | ||
1068 | for (i = 1; i < NR_IRQS; i++) { | 1068 | for (i = 1; i < nr_irqs; i++) { |
1069 | desc = irq_to_desc(i); | 1069 | desc = irq_to_desc(i); |
1070 | if (!desc) | ||
1071 | continue; | ||
1072 | |||
1070 | spin_lock_irqsave(&desc->lock, flags); | 1073 | spin_lock_irqsave(&desc->lock, flags); |
1071 | 1074 | ||
1072 | if (desc->action && desc->action->handler) { | 1075 | if (desc->action && desc->action->handler) { |