diff options
author | Anson Huang <Anson.Huang@nxp.com> | 2019-06-10 13:39:22 +0800 |
---|---|---|
committer | Shawn Guo <shawnguo@kernel.org> | 2019-06-18 14:52:08 +0800 |
commit | 1aa6af5f1813c8619736c6e38607bf562c0d5cff (patch) | |
tree | 6f379cb0f61309387f9ad65c99a0cfe9fc11a8d6 /drivers/clk/imx | |
parent | 883cd3c9626fe6ba543138ddc8dbbc5ef8e15996 (diff) | |
download | linux-1aa6af5f1813c8619736c6e38607bf562c0d5cff.tar.bz2 |
clk: imx8mq: Use devm_platform_ioremap_resource() instead of of_iomap()
i.MX8MQ clock driver uses platform driver model, better to use
devm_platform_ioremap_resource() instead of of_iomap() to get
IO base.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Diffstat (limited to 'drivers/clk/imx')
-rw-r--r-- | drivers/clk/imx/clk-imx8mq.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/clk/imx/clk-imx8mq.c b/drivers/clk/imx/clk-imx8mq.c index db450d9404c4..5fbc2a71755f 100644 --- a/drivers/clk/imx/clk-imx8mq.c +++ b/drivers/clk/imx/clk-imx8mq.c @@ -360,9 +360,9 @@ static int imx8mq_clocks_probe(struct platform_device *pdev) clks[IMX8MQ_SYS2_PLL_1000M] = imx_clk_fixed_factor("sys2_pll_1000m", "sys2_pll_out", 1, 1); np = dev->of_node; - base = of_iomap(np, 0); - if (WARN_ON(!base)) - return -ENOMEM; + base = devm_platform_ioremap_resource(pdev, 0); + if (WARN_ON(IS_ERR(base))) + return PTR_ERR(base); /* CORE */ clks[IMX8MQ_CLK_A53_SRC] = imx_clk_mux2("arm_a53_src", base + 0x8000, 24, 3, imx8mq_a53_sels, ARRAY_SIZE(imx8mq_a53_sels)); |