From: Benjamin Herrenschmidt Date: Tue, 27 Aug 2013 06:01:23 +0000 (+1000) Subject: powerpc/btext: Fix CONFIG_PPC_EARLY_DEBUG_BOOTX on ppc32 X-Git-Tag: next-20130912~147^2~6 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ee372bc1c6ab2f411d098337936ebb994af264c4;p=karo-tx-linux.git powerpc/btext: Fix CONFIG_PPC_EARLY_DEBUG_BOOTX on ppc32 The "rmci" stuff only exists on 64-bit Signed-off-by: Benjamin Herrenschmidt --- diff --git a/arch/powerpc/kernel/btext.c b/arch/powerpc/kernel/btext.c index 0428992fdb4b..41c011cb6070 100644 --- a/arch/powerpc/kernel/btext.c +++ b/arch/powerpc/kernel/btext.c @@ -52,7 +52,7 @@ extern void rmci_off(void); static inline void rmci_maybe_on(void) { -#ifdef CONFIG_PPC_EARLY_DEBUG_BOOTX +#if defined(CONFIG_PPC_EARLY_DEBUG_BOOTX) && defined(CONFIG_PPC64) if (!(mfmsr() & MSR_DR)) rmci_on(); #endif @@ -60,7 +60,7 @@ static inline void rmci_maybe_on(void) static inline void rmci_maybe_off(void) { -#ifdef CONFIG_PPC_EARLY_DEBUG_BOOTX +#if defined(CONFIG_PPC_EARLY_DEBUG_BOOTX) && defined(CONFIG_PPC64) if (!(mfmsr() & MSR_DR)) rmci_off(); #endif