diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2014-05-26 00:16:28 -0400 |
---|---|---|
committer | Mike Turquette <mturquette@linaro.org> | 2014-05-28 03:56:45 -0400 |
commit | 8f213af2c0309659f2011650a7a7ef3587db9de2 (patch) | |
tree | 178e90ab2814cc5153a563e7a819d3227951608e | |
parent | 4c8f8062515a3e809cc48c2d378f51bf0346d587 (diff) |
clk/exynos4: Fix compilation warning
Fixes the following warning:
WARNING: drivers/built-in.o(.text.unlikely+0x2c50): Section mismatch in reference from the function exynos4_clk_sleep_init() to the (unknown reference) .init.data:(unknown)
The function exynos4_clk_sleep_init() references
the (unknown reference) __initdata (unknown).
This is often because exynos4_clk_sleep_init lacks a __initdata
annotation or the annotation of (unknown) is wrong.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
-rw-r--r-- | drivers/clk/samsung/clk-exynos4.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/clk/samsung/clk-exynos4.c b/drivers/clk/samsung/clk-exynos4.c index b4f967210175..99980da672a8 100644 --- a/drivers/clk/samsung/clk-exynos4.c +++ b/drivers/clk/samsung/clk-exynos4.c | |||
@@ -324,7 +324,7 @@ static struct syscore_ops exynos4_clk_syscore_ops = { | |||
324 | .resume = exynos4_clk_resume, | 324 | .resume = exynos4_clk_resume, |
325 | }; | 325 | }; |
326 | 326 | ||
327 | static void exynos4_clk_sleep_init(void) | 327 | static void __init exynos4_clk_sleep_init(void) |
328 | { | 328 | { |
329 | exynos4_save_common = samsung_clk_alloc_reg_dump(exynos4_clk_regs, | 329 | exynos4_save_common = samsung_clk_alloc_reg_dump(exynos4_clk_regs, |
330 | ARRAY_SIZE(exynos4_clk_regs)); | 330 | ARRAY_SIZE(exynos4_clk_regs)); |
@@ -359,7 +359,7 @@ err_warn: | |||
359 | __func__); | 359 | __func__); |
360 | } | 360 | } |
361 | #else | 361 | #else |
362 | static void exynos4_clk_sleep_init(void) {} | 362 | static void __init exynos4_clk_sleep_init(void) {} |
363 | #endif | 363 | #endif |
364 | 364 | ||
365 | /* list of all parent clock list */ | 365 | /* list of all parent clock list */ |