From c872ddc401f948134a30d6c6a992f6880024380b Mon Sep 17 00:00:00 2001 From: Tony Lin Date: Thu, 2 Feb 2012 13:59:05 +0800 Subject: [PATCH] ENGR00173615 [mx5 mmc]fix mx5 build error fix build error on mx5 platforms Signed-off-by: Tony Lin --- arch/arm/plat-mxc/include/mach/mxc.h | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/arch/arm/plat-mxc/include/mach/mxc.h b/arch/arm/plat-mxc/include/mach/mxc.h index 7ce96e0bfb05..15a82a2a988e 100755 --- a/arch/arm/plat-mxc/include/mach/mxc.h +++ b/arch/arm/plat-mxc/include/mach/mxc.h @@ -90,11 +90,6 @@ extern unsigned int system_rev; board_is_rev(IMX_BOARD_REV_2)) #define board_is_mx6q_sabre_auto() (cpu_is_mx6q() && \ board_is_rev(IMX_BOARD_REV_3)) - -#ifndef __ASSEMBLY__ -extern int mx6q_revision(void); -#endif - #endif #ifndef __ASSEMBLY__ @@ -227,8 +222,18 @@ extern unsigned int __mxc_cpu_type; #ifdef CONFIG_SOC_IMX6Q #define cpu_is_mx6q() (1) + +#ifndef __ASSEMBLY__ +extern int mx6q_revision(void); +#endif + #else #define cpu_is_mx6q() (0) + +#ifndef __ASSEMBLY__ +#define mx6q_revision(void) (0) +#endif + #endif struct cpu_op { -- 2.39.5