ARM: mvebu: Use __init for the PM initialization functions
authorGregory CLEMENT <gregory.clement@free-electrons.com>
Fri, 3 Jul 2015 11:55:50 +0000 (13:55 +0200)
committerGregory CLEMENT <gregory.clement@free-electrons.com>
Sat, 25 Jul 2015 15:16:57 +0000 (17:16 +0200)
mvebu_pm_init and mvebu_armada_pm_init are only called during boot, so
flag them with __init and save some memory.

Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Reviewed-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
arch/arm/mach-mvebu/pm-board.c
arch/arm/mach-mvebu/pm.c

index b8c26cb3a27fd794d38ce07d0180ab1127996094..3ab06e7252c3c5baf2b10e7669398bc3f69ba9dd 100644 (file)
@@ -76,7 +76,7 @@ static void mvebu_armada_pm_enter(void __iomem *sdram_reg, u32 srcmd)
                  [ackcmd] "r" (ackcmd), [gpio_ctrl] "r" (gpio_ctrl) : "r1");
 }
 
-static int mvebu_armada_pm_init(void)
+static int __init mvebu_armada_pm_init(void)
 {
        struct device_node *np;
        struct device_node *gpio_ctrl_np;
index 02fdf67a4898a121afb99e3305fbf7049d08e15d..ca94f07407f19d824eaf0154cb032a3368f7eaa5 100644 (file)
@@ -194,7 +194,7 @@ static const struct platform_suspend_ops mvebu_pm_ops = {
        .valid = suspend_valid_only_mem,
 };
 
-int mvebu_pm_init(void (*board_pm_enter)(void __iomem *sdram_reg, u32 srcmd))
+int __init mvebu_pm_init(void (*board_pm_enter)(void __iomem *sdram_reg, u32 srcmd))
 {
        struct device_node *np;
        struct resource res;