diff options
author | Haojian Zhuang <haojian.zhuang@marvell.com> | 2010-10-28 23:32:56 -0400 |
---|---|---|
committer | Eric Miao <eric.y.miao@gmail.com> | 2010-11-03 11:11:16 -0400 |
commit | 3073f0fa2b50808f0a506370e494456d4aa73718 (patch) | |
tree | edac829e8d9a9c337ba5337a56b6556d508f7074 /arch/arm/mach-mmp | |
parent | c8ddb2713c624f432fa5fe3c7ecffcdda46ea0d4 (diff) |
ARM: mmp: fix cpuid detection on mmp2
Fix typo error on cpu_is_mmp2(). Correct cpu_readid_id() to
read_cpuid_id(). Append missing parenthesis.
Signed-off-by: Haojian Zhuang <haojian.zhuang@marvell.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
Diffstat (limited to 'arch/arm/mach-mmp')
-rw-r--r-- | arch/arm/mach-mmp/include/mach/cputype.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mach-mmp/include/mach/cputype.h b/arch/arm/mach-mmp/include/mach/cputype.h index f43a68b213f1..8a3b56dfd35d 100644 --- a/arch/arm/mach-mmp/include/mach/cputype.h +++ b/arch/arm/mach-mmp/include/mach/cputype.h | |||
@@ -46,7 +46,8 @@ static inline int cpu_is_pxa910(void) | |||
46 | #ifdef CONFIG_CPU_MMP2 | 46 | #ifdef CONFIG_CPU_MMP2 |
47 | static inline int cpu_is_mmp2(void) | 47 | static inline int cpu_is_mmp2(void) |
48 | { | 48 | { |
49 | return (((cpu_readid_id() >> 8) & 0xff) == 0x58); | 49 | return (((read_cpuid_id() >> 8) & 0xff) == 0x58); |
50 | } | ||
50 | #else | 51 | #else |
51 | #define cpu_is_mmp2() (0) | 52 | #define cpu_is_mmp2() (0) |
52 | #endif | 53 | #endif |