Skip to contentSkip to conversation

clk: imx6sl: Add missing of_node_put()

PATCH Applied Anson Huang 3 participants 11 messages Feb 12, 2020 – Feb 17, 2020

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/5 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.

---
 drivers/clk/imx/clk-imx6sl.c | 1 +
 1 file changed, 1 insertion(+)
drivers/clk/imx/clk-imx6sl.c +1 -0
index 4bd44d8..0f647d1 100644
@@ -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));
Signature · 1 line
2.7.4
#1 lore raw

PATCH 2/5 clk: imx8mq: Add missing of_node_put()

After finishing using device node got from of_find_compatible_node(), of_node_put() needs to be called.

---
 drivers/clk/imx/clk-imx8mq.c | 1 +
 1 file changed, 1 insertion(+)
drivers/clk/imx/clk-imx8mq.c +1 -0
index 8c82e7a..831ce71 100644
@@ -305,6 +305,7 @@ static int imx8mq_clocks_probe(struct platform_device *pdev)
 
 	np = of_find_compatible_node(NULL, NULL, "fsl,imx8mq-anatop");
 	base = of_iomap(np, 0);
+	of_node_put(np);
 	if (WARN_ON(!base))
 		return -ENOMEM;
 
Signature · 1 line
2.7.4
#3 lore raw

PATCH 3/5 clk: imx8mm: Add missing of_node_put()

In reply to Anson Huang

After finishing using device node got from of_find_compatible_node(), of_node_put() needs to be called.

---
 drivers/clk/imx/clk-imx8mm.c | 1 +
 1 file changed, 1 insertion(+)
drivers/clk/imx/clk-imx8mm.c +1 -0
index 3d19e87..e09c13a 100644
@@ -322,6 +322,7 @@ static int imx8mm_clocks_probe(struct platform_device *pdev)
 
 	np = of_find_compatible_node(NULL, NULL, "fsl,imx8mm-anatop");
 	base = of_iomap(np, 0);
+	of_node_put(np);
 	if (WARN_ON(!base))
 		return -ENOMEM;
 
Signature · 1 line
2.7.4
#5 lore raw

PATCH 4/5 clk: imx8mn: Add missing of_node_put()

In reply to Anson Huang

After finishing using device node got from of_find_compatible_node(), of_node_put() needs to be called.

---
 drivers/clk/imx/clk-imx8mn.c | 1 +
 1 file changed, 1 insertion(+)
drivers/clk/imx/clk-imx8mn.c +1 -0
index ad20487..9130203 100644
@@ -317,6 +317,7 @@ static int imx8mn_clocks_probe(struct platform_device *pdev)
 
 	np = of_find_compatible_node(NULL, NULL, "fsl,imx8mn-anatop");
 	base = of_iomap(np, 0);
+	of_node_put(np);
 	if (WARN_ON(!base)) {
 		ret = -ENOMEM;
 		goto unregister_hws;
Signature · 1 line
2.7.4
#7 lore raw

PATCH 5/5 clk: imx8mp: Add missing of_node_put()

In reply to Anson Huang

After finishing using device node got from of_find_compatible_node(), of_node_put() needs to be called.

---
 drivers/clk/imx/clk-imx8mp.c | 1 +
 1 file changed, 1 insertion(+)
drivers/clk/imx/clk-imx8mp.c +1 -0
index f6c120c..b6462c0 100644
@@ -434,6 +434,7 @@ static int imx8mp_clocks_probe(struct platform_device *pdev)
 
 	np = of_find_compatible_node(NULL, NULL, "fsl,imx8mp-anatop");
 	anatop_base = of_iomap(np, 0);
+	of_node_put(np);
 	if (WARN_ON(!anatop_base))
 		return -ENOMEM;
 
Signature · 1 line
2.7.4