diff options
author | Sonny Rao <sonny@burdell.org> | 2007-07-09 19:31:44 +0200 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-07-10 14:03:14 +0200 |
commit | 70584578ab3e940ac9d7820f268f9adc9884e407 (patch) | |
tree | 8ca6396165de16296b1e55650272a637360bb9fa | |
parent | [POWERPC] Remove extra return statement (diff) | |
download | linux-70584578ab3e940ac9d7820f268f9adc9884e407.tar.xz linux-70584578ab3e940ac9d7820f268f9adc9884e407.zip |
[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>
-rw-r--r-- | arch/powerpc/kernel/irq.c | 3 |
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) 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 |