All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] gpu: do not double put device node in zx_drm_probe
@ 2018-08-17  2:24 ` zhong jiang
  0 siblings, 0 replies; 17+ messages in thread
From: zhong jiang @ 2018-08-17  2:24 UTC (permalink / raw)
  To: shawnguo, airlied; +Cc: dri-devel, linux-kernel

for_each_available_child_of_node will get and put the node properly,
the following of_node_put will lead to the double put. So just
remove it.

Signed-off-by: zhong jiang <zhongjiang@huawei.com>
---
 drivers/gpu/drm/zte/zx_drm_drv.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/gpu/drm/zte/zx_drm_drv.c b/drivers/gpu/drm/zte/zx_drm_drv.c
index 6f4205e8..d7b9870 100644
--- a/drivers/gpu/drm/zte/zx_drm_drv.c
+++ b/drivers/gpu/drm/zte/zx_drm_drv.c
@@ -161,10 +161,8 @@ static int zx_drm_probe(struct platform_device *pdev)
 	if (ret)
 		return ret;
 
-	for_each_available_child_of_node(parent, child) {
+	for_each_available_child_of_node(parent, child)
 		component_match_add(dev, &match, compare_of, child);
-		of_node_put(child);
-	}
 
 	return component_master_add_with_match(dev, &zx_drm_master_ops, match);
 }
-- 
1.7.12.4

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

end of thread, other threads:[~2018-09-19 21:32 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-17  2:24 [PATCH] gpu: do not double put device node in zx_drm_probe zhong jiang
2018-08-17  2:24 ` zhong jiang
2018-08-23 11:41 ` zhong jiang
2018-08-23 11:41   ` zhong jiang
2018-08-27  7:18 ` Shawn Guo
2018-09-18 15:19   ` Daniel Vetter
2018-09-18 15:19     ` Daniel Vetter
2018-09-19 21:32     ` Shawn Guo
2018-09-06 14:51 ` zhong jiang
2018-09-06 14:51   ` zhong jiang
2018-09-18 14:59 ` zhong jiang
2018-09-18 14:59   ` zhong jiang
2018-09-18 15:02   ` Greg KH
2018-09-18 15:02     ` Greg KH
2018-09-18 15:18     ` zhong jiang
2018-09-18 15:18       ` zhong jiang
2018-09-18 15:20     ` Daniel Vetter

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.