summaryrefslogtreecommitdiffstats
path: root/drivers/clk
diff options
context:
space:
mode:
authorAnson Huang2019-06-19 09:12:39 +0200
committerShawn Guo2019-06-24 03:43:29 +0200
commite5190586a92d43f26994f200cc3554c6dea4ceaa (patch)
tree8c11c2e6f680e8eb87d3cfa9839c309efc1d88d9 /drivers/clk
parentclk: imx6q: fix section mismatch warning (diff)
downloadkernel-qcow2-linux-e5190586a92d43f26994f200cc3554c6dea4ceaa.tar.gz
kernel-qcow2-linux-e5190586a92d43f26994f200cc3554c6dea4ceaa.tar.xz
kernel-qcow2-linux-e5190586a92d43f26994f200cc3554c6dea4ceaa.zip
clk: imx: Remove __init for imx_register_uart_clocks() API
Some of i.MX SoCs' clock driver use platform driver model, and they need to call imx_register_uart_clocks() API, so imx_register_uart_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>
Diffstat (limited to 'drivers/clk')
-rw-r--r--drivers/clk/imx/clk.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/clk/imx/clk.c b/drivers/clk/imx/clk.c
index f24118911875..76457b2bd7f0 100644
--- a/drivers/clk/imx/clk.c
+++ b/drivers/clk/imx/clk.c
@@ -123,8 +123,8 @@ void imx_cscmr1_fixup(u32 *val)
return;
}
-static int imx_keep_uart_clocks __initdata;
-static struct clk ** const *imx_uart_clocks __initdata;
+static int imx_keep_uart_clocks;
+static struct clk ** const *imx_uart_clocks;
static int __init imx_keep_uart_clocks_param(char *str)
{
@@ -137,7 +137,7 @@ __setup_param("earlycon", imx_keep_uart_earlycon,
__setup_param("earlyprintk", imx_keep_uart_earlyprintk,
imx_keep_uart_clocks_param, 0);
-void __init imx_register_uart_clocks(struct clk ** const clks[])
+void imx_register_uart_clocks(struct clk ** const clks[])
{
if (imx_keep_uart_clocks) {
int i;