From 341fdf2602113a3fd8e05046e2b7a75b5c0f308e Mon Sep 17 00:00:00 2001 From: Stephen Boyd Date: Thu, 21 Feb 2019 15:27:55 -0800 Subject: [PATCH] clk: imx: imx8mm: Mark init function __init It calls another __init marked function and thus causes a section mismatch if we don't mark it this way. Fixes: ba5625c3e272 ("clk: imx: Add clock driver support for imx8mm") Signed-off-by: Stephen Boyd --- drivers/clk/imx/clk-imx8mm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/imx/clk-imx8mm.c b/drivers/clk/imx/clk-imx8mm.c index b7f3ac256856..1ef8438e3d6d 100644 --- a/drivers/clk/imx/clk-imx8mm.c +++ b/drivers/clk/imx/clk-imx8mm.c @@ -379,7 +379,7 @@ static struct clk ** const uart_clks[] __initconst = { NULL }; -static int imx8mm_clocks_init(struct device_node *ccm_node) +static int __init imx8mm_clocks_init(struct device_node *ccm_node) { struct device_node *np; void __iomem *base; -- 2.11.0