[POWERPC] Check for NULL ppc_md.init_IRQ() before calling
authorSonny Rao <sonny@burdell.org>
Mon, 9 Jul 2007 17:31:44 +0000 (03:31 +1000)
committerPaul Mackerras <paulus@samba.org>
Tue, 10 Jul 2007 12:03:14 +0000 (22:03 +1000)
Check to make sure ppc_md.init_IRQ has been set before calling it.

Signed-off-by: Sonny Rao <sonny@burdell.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/irq.c

index a3351561d2834ebc320278302e35d4339ab71cec..2fc87862146cbd68048c0d2307a5eb6b626de086 100644 (file)
@@ -336,7 +336,8 @@ void do_IRQ(struct pt_regs *regs)
 
 void __init init_IRQ(void)
 {
-       ppc_md.init_IRQ();
+       if (ppc_md.init_IRQ)
+               ppc_md.init_IRQ();
 #ifdef CONFIG_PPC64
        irq_ctx_init();
 #endif