Skip to content

Commit

Permalink
clk/exynos4: Fix compilation warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sachin Kamat authored and Mike Turquette committed May 28, 2014
1 parent 4c8f806 commit 8f213af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/clk/samsung/clk-exynos4.c
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ static struct syscore_ops exynos4_clk_syscore_ops = {
.resume = exynos4_clk_resume,
};

static void exynos4_clk_sleep_init(void)
static void __init exynos4_clk_sleep_init(void)
{
exynos4_save_common = samsung_clk_alloc_reg_dump(exynos4_clk_regs,
ARRAY_SIZE(exynos4_clk_regs));
Expand Down Expand Up @@ -359,7 +359,7 @@ static void exynos4_clk_sleep_init(void)
__func__);
}
#else
static void exynos4_clk_sleep_init(void) {}
static void __init exynos4_clk_sleep_init(void) {}
#endif

/* list of all parent clock list */
Expand Down

0 comments on commit 8f213af

Please sign in to comment.