Commit 70584578 authored by Sonny Rao's avatar Sonny Rao Committed by Paul Mackerras

[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: default avatarSonny Rao <sonny@burdell.org>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent b3e998ee
......@@ -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
......
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