]> git.karo-electronics.de Git - linux-beck.git/commitdiff
clk: samsung: exynos5250: Move sleep init function to init section
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Wed, 11 May 2016 12:02:13 +0000 (14:02 +0200)
committerSylwester Nawrocki <s.nawrocki@samsung.com>
Thu, 2 Jun 2016 09:18:12 +0000 (11:18 +0200)
The exynos5250_clk_sleep_init() function can be moved to init section
because it is referenced only from other init-level calls.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
drivers/clk/samsung/clk-exynos5250.c

index a6ebc068689f68554d160fd086bfa20a9640de63..27a227d6620c7b32bedf04bf16f2f2a7f71ce49b 100644 (file)
@@ -190,7 +190,7 @@ static struct syscore_ops exynos5250_clk_syscore_ops = {
        .resume = exynos5250_clk_resume,
 };
 
-static void exynos5250_clk_sleep_init(void)
+static void __init exynos5250_clk_sleep_init(void)
 {
        exynos5250_save = samsung_clk_alloc_reg_dump(exynos5250_clk_regs,
                                        ARRAY_SIZE(exynos5250_clk_regs));
@@ -203,7 +203,7 @@ static void exynos5250_clk_sleep_init(void)
        register_syscore_ops(&exynos5250_clk_syscore_ops);
 }
 #else
-static void exynos5250_clk_sleep_init(void) {}
+static void __init exynos5250_clk_sleep_init(void) {}
 #endif
 
 /* list of all parent clock list */