@@ -38,5 +38,4 @@ static const char * const berlin_dt_compat[] = {
DT_MACHINE_START(BERLIN_DT, "Marvell Berlin")
.dt_compat = berlin_dt_compat,
.init_machine = berlin_init_machine,
- .smp = smp_ops(berlin_smp_ops),
MACHINE_END
@@ -13,6 +13,4 @@
extern void berlin_secondary_startup(void);
-extern struct smp_operations berlin_smp_ops;
-
#endif
@@ -132,8 +132,9 @@ static void __init berlin_smp_prepare_cpus(unsigned int max_cpus)
iounmap(gpr_base);
}
-struct smp_operations berlin_smp_ops __initdata = {
+static struct smp_operations berlin_smp_ops __initdata = {
.smp_prepare_cpus = berlin_smp_prepare_cpus,
.smp_secondary_init = berlin_secondary_init,
.smp_boot_secondary = berlin_boot_secondary,
};
+CPU_METHOD_OF_DECLARE(berlin_smp, "marvell,88de31-smp", &berlin_smp_ops);
Get rid of the smp ops in the machine descriptor and select the cpu enable method in the device tree. Signed-off-by: Antoine Ténart <antoine.tenart@free-electrons.com> --- arch/arm/mach-berlin/berlin.c | 1 - arch/arm/mach-berlin/common.h | 2 -- arch/arm/mach-berlin/platsmp.c | 3 ++- 3 files changed, 2 insertions(+), 4 deletions(-)