From: Chris Dearman Date: Thu, 24 May 2007 21:46:25 +0000 (+0100) Subject: [MIPS] Fix builds where MSC01E_xxx is undefined. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7b4f4ec21038ac13c63d130357d1c3015ec3f3e8;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git [MIPS] Fix builds where MSC01E_xxx is undefined. Signed-off-by: Chris Dearman Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/mips-boards/generic/time.c b/arch/mips/mips-boards/generic/time.c index 33432ea188fb..8f1000f51b3d 100644 --- a/arch/mips/mips-boards/generic/time.c +++ b/arch/mips/mips-boards/generic/time.c @@ -295,11 +295,14 @@ void __init plat_perf_setup(struct irqaction *irq) void __init plat_timer_setup(struct irqaction *irq) { int hwint = 0; +#ifdef MSC01E_INT_BASE if (cpu_has_veic) { set_vi_handler (MSC01E_INT_CPUCTR, mips_timer_dispatch); mips_cpu_timer_irq = MSC01E_INT_BASE + MSC01E_INT_CPUCTR; } - else { + else +#endif + { if (cpu_has_mips_r2) /* * Read IntCtl.IPTI to determine the timer interrupt