]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: shmobile: r8a7791: only use smp_init when SMP is selected
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Fri, 12 Aug 2016 16:45:10 +0000 (18:45 +0200)
committerSimon Horman <horms+renesas@verge.net.au>
Wed, 24 Aug 2016 07:08:57 +0000 (09:08 +0200)
We use the helper function which populates the smp_init pointer only in
case of SMP.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/mach-shmobile/setup-r8a7791.c

index 110e8b588e563fcae0c20bccaa1bec95ddfb4aa8..26e2d181a1904da25f703a5b4d2e7e9e50a47d6d 100644 (file)
@@ -29,7 +29,7 @@ static const char *const r8a7791_boards_compat_dt[] __initconst = {
 };
 
 DT_MACHINE_START(R8A7791_DT, "Generic R8A7791 (Flattened Device Tree)")
-       .smp_init       = shmobile_smp_init_fallback_ops,
+       .smp_init       = smp_init_ops(shmobile_smp_init_fallback_ops),
        .smp            = smp_ops(r8a7791_smp_ops),
        .init_early     = shmobile_init_delay,
        .init_time      = rcar_gen2_timer_init,