aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-samsung/init.c
diff options
context:
space:
mode:
authorKukjin Kim <kgene.kim@samsung.com>2011-03-23 01:45:29 -0400
committerKukjin Kim <kgene.kim@samsung.com>2011-03-28 03:17:54 -0400
commit9d5fda6656fae8004deb81e91bbd144c8743e500 (patch)
tree8fa5778d21791e02a6c76d866aa7c630f10fa505 /arch/arm/plat-samsung/init.c
parentb9ab19f936e823c31e66702ee553e4d18e910c9a (diff)
ARM: SAMSUNG: Fix CPU idmask
This patch fixes CPU idmask of S5P64X0 and EXYNOS4210 and its comparison method because just want to use CPU id for it. Cc: Ben Dooks <ben-linux@fluff.org> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/plat-samsung/init.c')
-rw-r--r--arch/arm/plat-samsung/init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/plat-samsung/init.c b/arch/arm/plat-samsung/init.c
index 6790edfaca6f..79d10fca9090 100644
--- a/arch/arm/plat-samsung/init.c
+++ b/arch/arm/plat-samsung/init.c
@@ -36,7 +36,7 @@ static struct cpu_table * __init s3c_lookup_cpu(unsigned long idcode,
36 unsigned int count) 36 unsigned int count)
37{ 37{
38 for (; count != 0; count--, tab++) { 38 for (; count != 0; count--, tab++) {
39 if ((idcode & tab->idmask) == tab->idcode) 39 if ((idcode & tab->idmask) == (tab->idcode & tab->idmask))
40 return tab; 40 return tab;
41 } 41 }
42 42