summaryrefslogtreecommitdiff
path: root/arch/mips/mips-boards
diff options
context:
space:
mode:
authorChris Dearman <chris@mips.com>2007-05-24 21:46:25 (GMT)
committerRalf Baechle <ralf@linux-mips.org>2007-06-14 17:25:15 (GMT)
commit7b4f4ec21038ac13c63d130357d1c3015ec3f3e8 (patch)
treece5a28d2a2949a0de36605403a68166be00fb075 /arch/mips/mips-boards
parentffe9ee4709cf513fb80e9b7e04d214dd8b76a10d (diff)
downloadlinux-fsl-qoriq-7b4f4ec21038ac13c63d130357d1c3015ec3f3e8.tar.xz
[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>
Diffstat (limited to 'arch/mips/mips-boards')
-rw-r--r--arch/mips/mips-boards/generic/time.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/mips/mips-boards/generic/time.c b/arch/mips/mips-boards/generic/time.c
index 33432ea..8f1000f 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