aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc
diff options
context:
space:
mode:
authorSonny Rao <sonny@burdell.org>2007-07-09 13:31:44 -0400
committerPaul Mackerras <paulus@samba.org>2007-07-10 08:03:14 -0400
commit70584578ab3e940ac9d7820f268f9adc9884e407 (patch)
tree8ca6396165de16296b1e55650272a637360bb9fa /arch/powerpc
parentb3e998ee05773a3ac33d540aa341295acef4c56b (diff)
[POWERPC] Check for NULL ppc_md.init_IRQ() before calling
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>
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/kernel/irq.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/irq.c b/arch/powerpc/kernel/irq.c
index a3351561d283..2fc87862146c 100644
--- a/arch/powerpc/kernel/irq.c
+++ b/arch/powerpc/kernel/irq.c
@@ -336,7 +336,8 @@ void do_IRQ(struct pt_regs *regs)
336 336
337void __init init_IRQ(void) 337void __init init_IRQ(void)
338{ 338{
339 ppc_md.init_IRQ(); 339 if (ppc_md.init_IRQ)
340 ppc_md.init_IRQ();
340#ifdef CONFIG_PPC64 341#ifdef CONFIG_PPC64
341 irq_ctx_init(); 342 irq_ctx_init();
342#endif 343#endif