Skip to contentSkip to conversation

ARM: mmp: fix cpuid detection on mmp2

PATCH New Haojian Zhuang 3 participants 3 messages Oct 29, 2010 – Nov 3, 2010

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 arch/arm/mach-mmp/include/mach/cputype.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
arch/arm/mach-mmp/include/mach/cputype.h +2 -1
index f43a68b..8a3b56d 100644
@@ -46,7 +46,8 @@ static inline int cpu_is_pxa910(void)
 #ifdef CONFIG_CPU_MMP2
 static inline int cpu_is_mmp2(void)
 {
-	return (((cpu_readid_id() >> 8) & 0xff) == 0x58);
+	return (((read_cpuid_id() >> 8) & 0xff) == 0x58);
+}
 #else
 #define cpu_is_mmp2()	(0)
 #endif
Signature · 1 line
1.5.6.5
#1 lore raw

PATCH 1/1 ARM: mmp: fix cpuid detection on mmp2

Quoted 5 lines · Haojian Zhuang

Fix typo error on cpu_is_mmp2(). Correct cpu_readid_id() to read_cpuid_id(). Append missing parenthesis.

Merged.

Quoted 22 lines

---
?arch/arm/mach-mmp/include/mach/cputype.h | ? ?3 ++- ?1 files changed, 2 insertions(+), 1 deletions(-)

arch/arm/mach-mmp/include/mach/cputype.h +0 -0
index f43a68b..8a3b56d 100644
@@ -46,7 +46,8 @@ static inline int cpu_is_pxa910(void)

?#ifdef CONFIG_CPU_MMP2
?static inline int cpu_is_mmp2(void)
?{
- ? ? ? return (((cpu_readid_id() >> 8) & 0xff) == 0x58);
+ ? ? ? return (((read_cpuid_id() >> 8) & 0xff) == 0x58); +}
?#else
?#define cpu_is_mmp2() ?(0)
?#endif
--
1.5.6.5

#2 lore raw

PATCH 1/1 ARM: mmp: fix cpuid detection on mmp2

In reply to Haojian Zhuang

Hello.

Quoted 2 lines · Haojian Zhuang

Fix typo error on cpu_is_mmp2(). Correct cpu_readid_id() to read_cpuid_id(). Append missing parenthesis.

That's a brace, not parenthesis.

Quoted 11 lines
---
  arch/arm/mach-mmp/include/mach/cputype.h |    3 ++-
  1 files changed, 2 insertions(+), 1 deletions(-)
arch/arm/mach-mmp/include/mach/cputype.h +0 -0
index f43a68b..8a3b56d 100644

arch/arm/mach-mmp/include/mach/cputype.h static inline int cpu_is_pxa910(void) · line 53

Quoted 9 lines
arch/arm/mach-mmp/include/mach/cputype.h +2 -1
@@ -46,7 +46,8 @@ static inline int cpu_is_pxa910(void)
  #ifdef CONFIG_CPU_MMP2
  static inline int cpu_is_mmp2(void)
  {
-	return (((cpu_readid_id()>>  8)&  0xff) == 0x58);
+	return (((read_cpuid_id()>>  8)&  0xff) == 0x58);
+}
  #else
  #define cpu_is_mmp2()	(0)
  #endif

WBR, Sergei