ARM: socfpga: use CPU_METHOD_OF_DECLARE for socfpga_cyclone5
[deliverable/linux.git] / arch / arm / mach-socfpga / platsmp.c
index 7886eaeb6723f258bf4549a55da5e5f15e2a63e9..b84c1a12d3aef76bd45ff6d2784a0be82690e1b4 100644 (file)
@@ -83,10 +83,12 @@ static void socfpga_cpu_die(unsigned int cpu)
                cpu_do_idle();
 }
 
-struct smp_operations socfpga_smp_ops __initdata = {
+static struct smp_operations socfpga_smp_ops __initdata = {
        .smp_prepare_cpus       = socfpga_smp_prepare_cpus,
        .smp_boot_secondary     = socfpga_boot_secondary,
 #ifdef CONFIG_HOTPLUG_CPU
        .cpu_die                = socfpga_cpu_die,
 #endif
 };
+
+CPU_METHOD_OF_DECLARE(socfpga_smp, "altr,socfpga-smp", &socfpga_smp_ops);
This page took 0.02611 seconds and 5 git commands to generate.