提交 70584578 编写于 作者: S Sonny Rao 提交者: 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: NSonny Rao <sonny@burdell.org>
Signed-off-by: NPaul Mackerras <paulus@samba.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册