diff options
author | Tony Lin <tony.lin@freescale.com> | 2012-02-02 13:59:05 +0800 |
---|---|---|
committer | Tony Lin <tony.lin@freescale.com> | 2012-02-07 15:54:24 +0800 |
commit | cfe60a5e6307969968a09e48a35585185f26c9cf (patch) | |
tree | 653b2719b6fb811cabd8fc83675fc7732e005878 | |
parent | 002b4604e15fb7754f17d43196d78cd82c8b166b (diff) |
ENGR00173615 [mx5 mmc]fix mx5 build error
fix build error on mx5 platforms
Signed-off-by: Tony Lin <tony.lin@freescale.com>
-rwxr-xr-x | arch/arm/plat-mxc/include/mach/mxc.h | 15 |
1 files 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 { |