linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/1] gpu: drm: arcpgu_drv: add missing of_node_put after calling of_parse_phandle
@ 2016-07-04  7:07 Peter Chen
  0 siblings, 0 replies; only message in thread
From: Peter Chen @ 2016-07-04  7:07 UTC (permalink / raw)
  To: abrodkin, airlied; +Cc: dri-devel, linux-kernel, Peter Chen

of_node_put needs to be called when the device node which is got
from of_parse_phandle has finished using.

Signed-off-by: Peter Chen <peter.chen@nxp.com>
---
 drivers/gpu/drm/arc/arcpgu_drv.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/arc/arcpgu_drv.c b/drivers/gpu/drm/arc/arcpgu_drv.c
index 76e187a..b2c3c3b 100644
--- a/drivers/gpu/drm/arc/arcpgu_drv.c
+++ b/drivers/gpu/drm/arc/arcpgu_drv.c
@@ -155,6 +155,7 @@ static int arcpgu_load(struct drm_device *drm)
 	}
 
 	ret = arcpgu_drm_hdmi_init(drm, encoder_node);
+	of_node_put(encoder_node);
 	if (ret < 0)
 		return ret;
 
-- 
1.9.1

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-07-04  7:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-04  7:07 [PATCH 1/1] gpu: drm: arcpgu_drv: add missing of_node_put after calling of_parse_phandle Peter Chen

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).