clk: imx: imx8mm: Mark init function __init
authorStephen Boyd <sboyd@kernel.org>
Thu, 21 Feb 2019 23:27:55 +0000 (15:27 -0800)
committerStephen Boyd <sboyd@kernel.org>
Thu, 21 Feb 2019 23:29:10 +0000 (15:29 -0800)
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 <sboyd@kernel.org>
drivers/clk/imx/clk-imx8mm.c

index b7f3ac2..1ef8438 100644 (file)
@@ -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;