]> git.baikalelectronics.ru Git - kernel.git/commitdiff
clk: imx: Remove __init for imx_obtain_fixed_clk_hw() API
authorPeng Fan <peng.fan@nxp.com>
Thu, 12 Dec 2019 02:59:10 +0000 (02:59 +0000)
committerShawn Guo <shawnguo@kernel.org>
Mon, 23 Dec 2019 03:50:54 +0000 (11:50 +0800)
Some of i.MX SoCs' clock driver will use platform driver model,
and they need to call imx_obtain_fixed_clk_hw() API, so
imx_obtain_fixed_clk_hw() API should NOT be in .init section.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
drivers/clk/imx/clk.c

index d0ce29f2c417bbdf421bc01e67ae85b2975341eb..87ab8db3d282746861e88e7ff52de8e1e9112474 100644 (file)
@@ -102,8 +102,8 @@ struct clk_hw * __init imx_obtain_fixed_clock_hw(
        return __clk_get_hw(clk);
 }
 
-struct clk_hw * __init imx_obtain_fixed_clk_hw(struct device_node *np,
-                                              const char *name)
+struct clk_hw * imx_obtain_fixed_clk_hw(struct device_node *np,
+                                       const char *name)
 {
        struct clk *clk;