Skip to content

Commit

Permalink
[POWERPC] Check for NULL ppc_md.init_IRQ() before calling
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sonny Rao authored and Paul Mackerras committed Jul 10, 2007
1 parent b3e998e commit 7058457
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/powerpc/kernel/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7058457

Please sign in to comment.