[PATCH 4/6] arm: mx5: always use __mxc_cpu_type to check cpu type

Richard Zhao richard.zhao at freescale.com
Thu Dec 9 09:08:34 EST 2010


Every SoC in mach-mx5 calls mxc_set_cpu_type to set cpu type.

Signed-off-by: Richard Zhao <richard.zhao at freescale.com>
---
 arch/arm/plat-mxc/include/mach/mxc.h |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/arch/arm/plat-mxc/include/mach/mxc.h b/arch/arm/plat-mxc/include/mach/mxc.h
index 4abbdd1..04afa33 100644
--- a/arch/arm/plat-mxc/include/mach/mxc.h
+++ b/arch/arm/plat-mxc/include/mach/mxc.h
@@ -129,10 +129,8 @@ extern unsigned int __mxc_cpu_type;
 #ifdef CONFIG_ARCH_MX5
 # ifdef mxc_cpu_type
 #  undef mxc_cpu_type
-#  define mxc_cpu_type __mxc_cpu_type
-# else
-#  define mxc_cpu_type MXC_CPU_MX51
 # endif
+# define mxc_cpu_type __mxc_cpu_type
 # define cpu_is_mx51()		(mxc_cpu_type == MXC_CPU_MX51)
 # define cpu_is_mx53()		(mxc_cpu_type == MXC_CPU_MX53)
 #else
-- 
1.6.3.3





More information about the linux-arm-kernel mailing list