aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-rockchip/platsmp.c
diff options
context:
space:
mode:
authorHeiko Stübner <heiko@sntech.de>2014-03-27 01:06:32 +0100
committerOlof Johansson <olof@lixom.net>2014-05-26 11:15:53 -0700
commit26ab69cb4c1f77060bece483f2ec210163867782 (patch)
treea7fb76ff3d21501a1e81f9b76b38577a97406f64 /arch/arm/mach-rockchip/platsmp.c
parent1ef81bf7bcc9d795619197b15218304c9d42c18c (diff)
ARM: rockchip: convert smp bringup to CPU_METHOD_OF_DECLARE
With the newly introduced CPU_METHOD_OF_DECLARE is not necessary anymore to reference the relevant smp_ops in the board file, but instead it can simply be set by the enable-method property of the cpu nodes. Signed-off-by: Heiko Stuebner <heiko@sntech.de> Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'arch/arm/mach-rockchip/platsmp.c')
-rw-r--r--arch/arm/mach-rockchip/platsmp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mach-rockchip/platsmp.c b/arch/arm/mach-rockchip/platsmp.c
index 072842f6491b..910835d4ccf4 100644
--- a/arch/arm/mach-rockchip/platsmp.c
+++ b/arch/arm/mach-rockchip/platsmp.c
@@ -178,7 +178,8 @@ static void __init rockchip_smp_prepare_cpus(unsigned int max_cpus)
pmu_set_power_domain(0 + i, false);
}
-struct smp_operations rockchip_smp_ops __initdata = {
+static struct smp_operations rockchip_smp_ops __initdata = {
.smp_prepare_cpus = rockchip_smp_prepare_cpus,
.smp_boot_secondary = rockchip_boot_secondary,
};
+CPU_METHOD_OF_DECLARE(rk3066_smp, "rockchip,rk3066-smp", &rockchip_smp_ops);