From 2974a35657bf73db154c0173d3061812716f4e00 Mon Sep 17 00:00:00 2001 From: Paul Burton Date: Sun, 24 May 2015 16:11:18 +0100 Subject: [PATCH] MIPS: JZ4740: use generic plat_irq_dispatch Make use of the generic plat_irq_dispatch function introduced by commit 85f7cdacbb81 "MIPS: Provide a generic plat_irq_dispatch", in order to reduce unnecessary code duplication. Signed-off-by: Paul Burton Cc: Lars-Peter Clausen Cc: linux-mips@linux-mips.org Cc: linux-kernel@vger.kernel.org Cc: Brian Norris Patchwork: https://patchwork.linux-mips.org/patch/10138/ Signed-off-by: Ralf Baechle --- arch/mips/jz4740/irq.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/arch/mips/jz4740/irq.c b/arch/mips/jz4740/irq.c index 3ec9087540b4..a2452bb80e1d 100644 --- a/arch/mips/jz4740/irq.c +++ b/arch/mips/jz4740/irq.c @@ -27,7 +27,6 @@ #include #include -#include #include #include @@ -111,17 +110,6 @@ void __init arch_init_irq(void) setup_irq(2, &jz4740_cascade_action); } -asmlinkage void plat_irq_dispatch(void) -{ - unsigned int pending = read_c0_status() & read_c0_cause() & ST0_IM; - if (pending & STATUSF_IP2) - do_IRQ(2); - else if (pending & STATUSF_IP3) - do_IRQ(3); - else - spurious_interrupt(); -} - #ifdef CONFIG_DEBUG_FS static inline void intc_seq_reg(struct seq_file *s, const char *name, -- 2.20.1