From b2c870be1ca80d1a18a5f0ec777990a43672d476 Mon Sep 17 00:00:00 2001 From: Paul Mackerras Date: Sun, 16 Mar 2003 20:37:36 +1100 Subject: [PATCH] PPC32: Don't reregister existing /proc/irq entries. --- arch/ppc/kernel/irq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/ppc/kernel/irq.c b/arch/ppc/kernel/irq.c index f0130aa394212..24965586025c0 100644 --- a/arch/ppc/kernel/irq.c +++ b/arch/ppc/kernel/irq.c @@ -375,7 +375,7 @@ int show_interrupts(struct seq_file *p, void *v) seq_printf(p, "%s", (irq_desc[i].status & IRQ_LEVEL) ? "Level " : "Edge "); seq_printf(p, " %s", action->name); for (action = action->next; action; action = action->next) - seq_printf(p, ", %s", action->name); + seq_printf(p, ", %s", action->name); seq_putc(p, '\n'); skip: spin_unlock_irqrestore(&irq_desc[i].lock, flags); @@ -684,7 +684,7 @@ static void register_irq_proc (unsigned int irq) struct proc_dir_entry *entry; char name [MAX_NAMELEN]; - if (!root_irq_dir || (irq_desc[irq].handler == NULL)) + if (!root_irq_dir || (irq_desc[irq].handler == NULL) || irq_dir[irq]) return; memset(name, 0, MAX_NAMELEN); -- 2.53.0