clk: imx: Remove __init for imx_check_clocks() API
authorAnson Huang <Anson.Huang@nxp.com>
Mon, 10 Jun 2019 05:36:33 +0000 (13:36 +0800)
committerShawn Guo <shawnguo@kernel.org>
Tue, 18 Jun 2019 06:50:47 +0000 (14:50 +0800)
Some of i.MX SoCs' clock driver use platform driver model,
and they need to call imx_check_clocks() API, so
imx_check_clocks() API should NOT be in .init section.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
drivers/clk/imx/clk.c

index 0ecb67a9494a624e7ecb6164083d404532fb9a53..f24118911875c0becb23df05f99f2194c98d4b6f 100644 (file)
@@ -23,7 +23,7 @@ void __init imx_mmdc_mask_handshake(void __iomem *ccm_base,
        writel_relaxed(reg, ccm_base + CCM_CCDR);
 }
 
-void __init imx_check_clocks(struct clk *clks[], unsigned int count)
+void imx_check_clocks(struct clk *clks[], unsigned int count)
 {
        unsigned i;