[PATCH -tip] x86: fix build without CONFIG_X86_MRST

From: Stanislaw Gruszka
Date: Tue Dec 06 2011 - 05:18:15 EST


Fix compilation error when compiled with CONFIG_X86_INTEL_MID and
without CONFIG_X86_MRST:

arch/x86/built-in.o: In function `add_rtc_cmos':
rtc.c:(.init.text+0x34bd): undefined reference to `__mrst_cpu_chip'

Problem was caused currently by:

commit 35d476996288af6a4aaa8b172bcd31decd233de7
Author: Mathias Nyman <mathias.nyman@xxxxxxxxxxxxxxx>
Date: Tue Nov 15 14:46:52 2011 -0800

x86/rtc, mrst: Don't register a platform RTC device for for Intel MID platforms

Signed-off-by: Stanislaw Gruszka <sgruszka@xxxxxxxxxx>
---
arch/x86/include/asm/mrst.h | 10 +++-------
1 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/arch/x86/include/asm/mrst.h b/arch/x86/include/asm/mrst.h
index 93f7909..3f4589b 100644
--- a/arch/x86/include/asm/mrst.h
+++ b/arch/x86/include/asm/mrst.h
@@ -32,18 +32,14 @@ enum mrst_cpu_type {

extern enum mrst_cpu_type __mrst_cpu_chip;

-#ifdef CONFIG_X86_INTEL_MID
-
+#ifdef CONFIG_X86_MRST
static inline enum mrst_cpu_type mrst_identify_cpu(void)
{
return __mrst_cpu_chip;
}
-
-#else /* !CONFIG_X86_INTEL_MID */
-
+#else
#define mrst_identify_cpu() (0)
-
-#endif /* !CONFIG_X86_INTEL_MID */
+#endif

enum mrst_timer_options {
MRST_TIMER_DEFAULT,
--
1.7.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/