diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2008-08-25 07:28:04 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2008-08-25 07:28:04 +0000 |
commit | b98cd0193c7ba0547336fdefc04f80964c5b3ad0 (patch) | |
tree | 1d5a7559736f61d5dda219518c17bb090fe18f95 /target/linux/adm5120/files-2.6.26/arch/mips/adm5120/common/irq.c | |
parent | 97fa191e8beafe603e1a6549792706e73885b490 (diff) | |
download | upstream-b98cd0193c7ba0547336fdefc04f80964c5b3ad0.tar.gz upstream-b98cd0193c7ba0547336fdefc04f80964c5b3ad0.tar.bz2 upstream-b98cd0193c7ba0547336fdefc04f80964c5b3ad0.zip |
[adm5120] minor cleanups
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12387 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/adm5120/files-2.6.26/arch/mips/adm5120/common/irq.c')
-rw-r--r-- | target/linux/adm5120/files-2.6.26/arch/mips/adm5120/common/irq.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/target/linux/adm5120/files-2.6.26/arch/mips/adm5120/common/irq.c b/target/linux/adm5120/files-2.6.26/arch/mips/adm5120/common/irq.c index ce303ec74a..140a7a0e95 100644 --- a/target/linux/adm5120/files-2.6.26/arch/mips/adm5120/common/irq.c +++ b/target/linux/adm5120/files-2.6.26/arch/mips/adm5120/common/irq.c @@ -12,17 +12,16 @@ #include <linux/init.h> #include <linux/kernel.h> #include <linux/version.h> +#include <linux/irq.h> #include <linux/interrupt.h> #include <linux/ioport.h> #include <linux/io.h> -#include <asm/irq.h> #include <asm/irq_cpu.h> #include <asm/mipsregs.h> #include <asm/bitops.h> #include <asm/mach-adm5120/adm5120_defs.h> -#include <asm/mach-adm5120/adm5120_irq.h> static void adm5120_intc_irq_unmask(unsigned int irq); static void adm5120_intc_irq_mask(unsigned int irq); @@ -121,9 +120,7 @@ static void adm5120_intc_irq_dispatch(void) unsigned long status; int irq; - /* dispatch only one IRQ at a time */ status = intc_read_reg(INTC_REG_IRQ_STATUS) & INTC_INT_ALL; - if (status) { irq = ADM5120_INTC_IRQ_BASE + fls(status) - 1; do_IRQ(irq); |