ARM: shmobile: rcar-gen2: Remove unneeded once handling
authorGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 31 Aug 2023 11:17:44 +0000 (13:17 +0200)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 25 Sep 2023 07:47:21 +0000 (09:47 +0200)
rcar_gen2_pm_init() is only called from the
smp_operations.smp_prepare_cpus() callback, which is called at most
once.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/116ef21e5f495432d913315bdc25fbc30edcf2e1.1693409184.git.geert+renesas@glider.be
arch/arm/mach-shmobile/pm-rcar-gen2.c

index 672081405a7ed7aaf579d66c236970457a589d1f..7447e5fd7ed41e99d38d689079d17e1018a7ffb3 100644 (file)
@@ -46,16 +46,12 @@ void __init rcar_gen2_pm_init(void)
 {
        void __iomem *p;
        u32 bar;
-       static int once;
        struct device_node *np;
        bool has_a7 = false;
        bool has_a15 = false;
        struct resource res;
        int error;
 
-       if (once++)
-               return;
-
        for_each_of_cpu_node(np) {
                if (of_device_is_compatible(np, "arm,cortex-a15"))
                        has_a15 = true;