[<prev] [next>] [day] [month] [year] [list]
Message-ID: <1467616048-3407-1-git-send-email-peter.chen@nxp.com>
Date: Mon, 4 Jul 2016 15:07:28 +0800
From: Peter Chen <peter.chen@....com>
To: <abrodkin@...opsys.com>, <airlied@...ux.ie>
CC: <dri-devel@...ts.freedesktop.org>, <linux-kernel@...r.kernel.org>,
"Peter Chen" <peter.chen@....com>
Subject: [PATCH 1/1] gpu: drm: arcpgu_drv: add missing of_node_put after calling of_parse_phandle
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@....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
Powered by blists - more mailing lists