Commit b2c870be authored by Paul Mackerras's avatar Paul Mackerras

PPC32: Don't reregister existing /proc/irq entries.

parent a37cbed3
...@@ -684,7 +684,7 @@ static void register_irq_proc (unsigned int irq) ...@@ -684,7 +684,7 @@ static void register_irq_proc (unsigned int irq)
struct proc_dir_entry *entry; struct proc_dir_entry *entry;
char name [MAX_NAMELEN]; 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; return;
memset(name, 0, MAX_NAMELEN); memset(name, 0, MAX_NAMELEN);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment