MA-17597 clk: imx8mp: remove __init in imx_clk_init_on
authorJindong Yue <jindong.yue@nxp.com>
Mon, 12 Apr 2021 09:10:25 +0000 (17:10 +0800)
committerJindong Yue <jindong.yue@nxp.com>
Fri, 16 Apr 2021 08:11:49 +0000 (16:11 +0800)
Fix below section mismatch build warnings:
  The function imx8mp_clocks_probe() references
  the function __init imx_clk_init_on().
  This is often because imx8mp_clocks_probe lacks a __init
  annotation or the annotation of imx_clk_init_on is wrong.

  FATAL: modpost: Section mismatches detected.
  Set CONFIG_SECTION_MISMATCH_WARN_ONLY=y to allow them.

Reviewed-by: Jacky Bai <ping.bai@nxp.com>
Signed-off-by: Jindong Yue <jindong.yue@nxp.com>
drivers/clk/imx/clk-imx8mp.c

index 42349a2..7e50b6f 100644 (file)
@@ -695,7 +695,7 @@ static const char * const imx8mp_dram_core_sels[] = {"dram_pll_out", "dram_alt_r
 static struct clk_hw **hws;
 static struct clk_hw_onecell_data *clk_hw_data;
 
-static int __init imx_clk_init_on(struct device_node *np,
+static int imx_clk_init_on(struct device_node *np,
                                  struct clk_hw * const clks[])
 {
        u32 *array;