Commit 1d3f15a8 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Sylwester Nawrocki

clk: samsung: exynos5250: Move sleep init function to init section

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: default avatarKrzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: default avatarSylwester Nawrocki <s.nawrocki@samsung.com>
parent ebd217e1
...@@ -190,7 +190,7 @@ static struct syscore_ops exynos5250_clk_syscore_ops = { ...@@ -190,7 +190,7 @@ static struct syscore_ops exynos5250_clk_syscore_ops = {
.resume = exynos5250_clk_resume, .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, exynos5250_save = samsung_clk_alloc_reg_dump(exynos5250_clk_regs,
ARRAY_SIZE(exynos5250_clk_regs)); ARRAY_SIZE(exynos5250_clk_regs));
...@@ -203,7 +203,7 @@ static void exynos5250_clk_sleep_init(void) ...@@ -203,7 +203,7 @@ static void exynos5250_clk_sleep_init(void)
register_syscore_ops(&exynos5250_clk_syscore_ops); register_syscore_ops(&exynos5250_clk_syscore_ops);
} }
#else #else
static void exynos5250_clk_sleep_init(void) {} static void __init exynos5250_clk_sleep_init(void) {}
#endif #endif
/* list of all parent clock list */ /* list of all parent clock list */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment