From ec8d42ae705500e066123e48a7d2122c04f8a6b7 Mon Sep 17 00:00:00 2001 From: Jindong Yue Date: Mon, 12 Apr 2021 17:10:25 +0800 Subject: [PATCH] MA-17597 clk: imx8mp: remove __init in imx_clk_init_on 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 Signed-off-by: Jindong Yue --- drivers/clk/imx/clk-imx8mp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/imx/clk-imx8mp.c b/drivers/clk/imx/clk-imx8mp.c index 42349a23cb76..7e50b6f485ad 100644 --- a/drivers/clk/imx/clk-imx8mp.c +++ b/drivers/clk/imx/clk-imx8mp.c @@ -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; -- 2.17.1