Commit f75f369f authored by Atsushi Nemoto's avatar Atsushi Nemoto Committed by Ralf Baechle

[MIPS] Fix build errors on SEAD

Quick and dirty fix for build errors on SEAD.
Signed-off-by: default avatarAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent f9bba75e
...@@ -47,6 +47,9 @@ ...@@ -47,6 +47,9 @@
#ifdef CONFIG_MIPS_MALTA #ifdef CONFIG_MIPS_MALTA
#include <asm/mips-boards/maltaint.h> #include <asm/mips-boards/maltaint.h>
#endif #endif
#ifdef CONFIG_MIPS_SEAD
#include <asm/mips-boards/seadint.h>
#endif
unsigned long cpu_khz; unsigned long cpu_khz;
...@@ -263,11 +266,13 @@ void __init mips_time_init(void) ...@@ -263,11 +266,13 @@ void __init mips_time_init(void)
void __init plat_timer_setup(struct irqaction *irq) void __init plat_timer_setup(struct irqaction *irq)
{ {
#ifdef MSC01E_INT_BASE
if (cpu_has_veic) { if (cpu_has_veic) {
set_vi_handler (MSC01E_INT_CPUCTR, mips_timer_dispatch); set_vi_handler (MSC01E_INT_CPUCTR, mips_timer_dispatch);
mips_cpu_timer_irq = MSC01E_INT_BASE + MSC01E_INT_CPUCTR; mips_cpu_timer_irq = MSC01E_INT_BASE + MSC01E_INT_CPUCTR;
} } else
else { #endif
{
if (cpu_has_vint) if (cpu_has_vint)
set_vi_handler (MIPSCPU_INT_CPUCTR, mips_timer_dispatch); set_vi_handler (MIPSCPU_INT_CPUCTR, mips_timer_dispatch);
mips_cpu_timer_irq = MIPSCPU_INT_BASE + MIPSCPU_INT_CPUCTR; mips_cpu_timer_irq = MIPSCPU_INT_BASE + MIPSCPU_INT_CPUCTR;
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
* Sead board. * Sead board.
*/ */
#include <linux/init.h> #include <linux/init.h>
#include <linux/irq.h> #include <linux/interrupt.h>
#include <asm/irq_cpu.h> #include <asm/irq_cpu.h>
#include <asm/mipsregs.h> #include <asm/mipsregs.h>
...@@ -108,7 +108,7 @@ asmlinkage void plat_irq_dispatch(void) ...@@ -108,7 +108,7 @@ asmlinkage void plat_irq_dispatch(void)
if (irq >= 0) if (irq >= 0)
do_IRQ(MIPSCPU_INT_BASE + irq); do_IRQ(MIPSCPU_INT_BASE + irq);
else else
spurious_interrupt(regs); spurious_interrupt();
} }
void __init arch_init_irq(void) void __init arch_init_irq(void)
......
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