ARM: rockchip: Mark pm-init functions __init
authorDouglas Anderson <dianders@chromium.org>
Thu, 11 Apr 2019 23:21:54 +0000 (16:21 -0700)
committerHeiko Stuebner <heiko@sntech.de>
Fri, 12 Apr 2019 11:12:54 +0000 (13:12 +0200)
The functions rk3288_config_bootdata() and rk3288_suspend_init() are
only called in the context of rockchip_suspend_init() which is already
marked __init.  We can mark them __init too.

Signed-off-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm/mach-rockchip/pm.c

index 0592534e0b88c47c203686faafc8ba5650cd7d54..065b09e6f1eb73660eca3cd077700073d291b475 100644 (file)
@@ -59,7 +59,7 @@ static inline u32 rk3288_l2_config(void)
        return l2ctlr;
 }
 
-static void rk3288_config_bootdata(void)
+static void __init rk3288_config_bootdata(void)
 {
        rkpm_bootdata_cpusp = rk3288_bootram_phy + (SZ_4K - 8);
        rkpm_bootdata_cpu_code = __pa_symbol(cpu_resume);
@@ -230,7 +230,7 @@ static void rk3288_suspend_finish(void)
                pr_err("%s: Suspend finish failed\n", __func__);
 }
 
-static int rk3288_suspend_init(struct device_node *np)
+static int __init rk3288_suspend_init(struct device_node *np)
 {
        struct device_node *sram_np;
        struct resource res;