linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/5] clk: imx6sl: Add missing of_node_put()
@ 2020-02-12 11:57 Anson Huang
  2020-02-12 11:57 ` [PATCH 2/5] clk: imx8mq: " Anson Huang
                   ` (5 more replies)
  0 siblings, 6 replies; 11+ messages in thread
From: Anson Huang @ 2020-02-12 11:57 UTC (permalink / raw)
  To: mturquette, sboyd, shawnguo, s.hauer, kernel, festevam, allison,
	gregkh, tglx, abel.vesa, leonard.crestez, peng.fan, ping.bai,
	linux-clk, linux-arm-kernel, linux-kernel
  Cc: Linux-imx

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>
---
 drivers/clk/imx/clk-imx6sl.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/clk/imx/clk-imx6sl.c b/drivers/clk/imx/clk-imx6sl.c
index 4bd44d8..0f647d1 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));
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2020-02-17  6:38 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-12 11:57 [PATCH 1/5] clk: imx6sl: Add missing of_node_put() Anson Huang
2020-02-12 11:57 ` [PATCH 2/5] clk: imx8mq: " Anson Huang
2020-02-12 20:56   ` Stephen Boyd
2020-02-12 11:57 ` [PATCH 3/5] clk: imx8mm: " Anson Huang
2020-02-12 20:56   ` Stephen Boyd
2020-02-12 11:57 ` [PATCH 4/5] clk: imx8mn: " Anson Huang
2020-02-12 20:57   ` Stephen Boyd
2020-02-12 11:57 ` [PATCH 5/5] clk: imx8mp: " Anson Huang
2020-02-12 20:57   ` Stephen Boyd
2020-02-12 20:56 ` [PATCH 1/5] clk: imx6sl: " Stephen Boyd
2020-02-17  6:38 ` Shawn Guo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).