arm: rockchip: use read_cpuid_part instead of read_cpuid_part_number

Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
This commit is contained in:
Huang, Tao
2015-05-20 16:01:55 +08:00
parent ceaf071f79
commit d2cd7b6321
3 changed files with 3 additions and 3 deletions

View File

@@ -120,7 +120,7 @@ static int __init rockchip_pl330_l2_cache_init(void)
void __iomem *base;
u32 aux[2] = { 0, ~0 }, prefetch, power;
if (read_cpuid_part_number() != ARM_CPU_PART_CORTEX_A9)
if (read_cpuid_part() != ARM_CPU_PART_CORTEX_A9)
return -ENODEV;
np = of_find_compatible_node(NULL, NULL, "rockchip,pl310-cache");

View File

@@ -43,7 +43,7 @@ static int __init rockchip_ca9_cpuidle_init(void)
if (!cpu_is_rockchip())
return -ENODEV;
if (read_cpuid_part_number() != ARM_CPU_PART_CORTEX_A9)
if (read_cpuid_part() != ARM_CPU_PART_CORTEX_A9)
return -ENODEV;
np = of_find_compatible_node(NULL, NULL, "arm,cortex-a9-gic");
if (!np)

View File

@@ -97,7 +97,7 @@ static int __init rockchip_smp_prepare_bootram(void)
}
/* set the boot function for the bootram code */
if (read_cpuid_part_number() == ARM_CPU_PART_CORTEX_A9)
if (read_cpuid_part() == ARM_CPU_PART_CORTEX_A9)
rockchip_boot_fn = virt_to_phys(rockchip_a9_secondary_startup);
else
rockchip_boot_fn = virt_to_phys(secondary_startup);