linux-mips
[Top] [All Lists]

[PATCH] Fix build error if CONFIG_CEVT_R4K was not defined

To: linux-mips@linux-mips.org
Subject: [PATCH] Fix build error if CONFIG_CEVT_R4K was not defined
From: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Date: Tue, 7 Apr 2009 00:04:55 +0900
Cc: ralf@linux-mips.org, "Kevin D. Kissell" <kevink@paralogos.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
This patch fixes build error introduced by "MIPS: SMTC:
Fix xxx_clockevent_init() naming conflict for SMT".

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
---
 arch/mips/include/asm/time.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/mips/include/asm/time.h b/arch/mips/include/asm/time.h
index e46f23f..df6a430 100644
--- a/arch/mips/include/asm/time.h
+++ b/arch/mips/include/asm/time.h
@@ -61,7 +61,7 @@ static inline int mips_clockevent_init(void)
        extern int smtc_clockevent_init(void);
 
        return smtc_clockevent_init();
-#elif CONFIG_CEVT_R4K
+#elif defined(CONFIG_CEVT_R4K)
        return r4k_clockevent_init();
 #else
        return -ENXIO;
-- 
1.5.6.3


<Prev in Thread] Current Thread [Next in Thread>