Commit cd4b2b9b authored by Maxime Ripard's avatar Maxime Ripard

ARM: sun6i: Use CPU_METHOD_OF_DECLARE

CPU_METHOD_OF_DECLARE allows to bind the smp_ops to a set of cpus through the
enable-method property, instead of relying on the machine to define it. Switch
to it to get closer to an empty machine.
Signed-off-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
parent 840cf825
...@@ -122,3 +122,4 @@ struct smp_operations sun6i_smp_ops __initdata = { ...@@ -122,3 +122,4 @@ struct smp_operations sun6i_smp_ops __initdata = {
.smp_prepare_cpus = sun6i_smp_prepare_cpus, .smp_prepare_cpus = sun6i_smp_prepare_cpus,
.smp_boot_secondary = sun6i_smp_boot_secondary, .smp_boot_secondary = sun6i_smp_boot_secondary,
}; };
CPU_METHOD_OF_DECLARE(sun6i_smp, "allwinner,sun6i-a31", &sun6i_smp_ops);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment