瀏覽代碼

[MIPS] Fix builds where MSC01E_xxx is undefined.

Signed-off-by: Chris Dearman <chris@mips.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Chris Dearman 18 年之前
父節點
當前提交
7b4f4ec210
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      arch/mips/mips-boards/generic/time.c

+ 4 - 1
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)
 void __init plat_timer_setup(struct irqaction *irq)
 {
 {
 	int hwint = 0;
 	int hwint = 0;
+#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_mips_r2)
 		if (cpu_has_mips_r2)
 			/*
 			/*
 			 * Read IntCtl.IPTI to determine the timer interrupt
 			 * Read IntCtl.IPTI to determine the timer interrupt