diff options
author | Anson Huang <Anson.Huang@nxp.com> | 2020-02-12 12:57:33 +0100 |
---|---|---|
committer | Shawn Guo <shawnguo@kernel.org> | 2020-02-17 07:37:21 +0100 |
commit | 8b1a3c0ba9b1cec6dc91904604130a435d90c53c (patch) | |
tree | 8657af1f775eef090a59b88a2784981ecdc4fd29 /drivers/clk/imx | |
parent | clk: imx7ulp: Include clk-provider.h instead of clk.h (diff) | |
download | linux-8b1a3c0ba9b1cec6dc91904604130a435d90c53c.tar.xz linux-8b1a3c0ba9b1cec6dc91904604130a435d90c53c.zip |
clk: imx6sl: Add missing of_node_put()
After finishing using device node got from of_find_compatible_node(),
of_node_put() needs to be called.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Diffstat (limited to 'drivers/clk/imx')
-rw-r--r-- | drivers/clk/imx/clk-imx6sl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/clk/imx/clk-imx6sl.c b/drivers/clk/imx/clk-imx6sl.c index 4bd44d89eaaa..0f647d148abf 100644 --- a/drivers/clk/imx/clk-imx6sl.c +++ b/drivers/clk/imx/clk-imx6sl.c @@ -208,6 +208,7 @@ static void __init imx6sl_clocks_init(struct device_node *ccm_node) np = of_find_compatible_node(NULL, NULL, "fsl,imx6sl-anatop"); base = of_iomap(np, 0); WARN_ON(!base); + of_node_put(np); anatop_base = base; hws[IMX6SL_PLL1_BYPASS_SRC] = imx_clk_hw_mux("pll1_bypass_src", base + 0x00, 14, 1, pll_bypass_src_sels, ARRAY_SIZE(pll_bypass_src_sels)); |