projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6a2d16
)
gpu: drm: arcpgu_drv: add missing of_node_put after calling of_parse_phandle
author
Peter Chen
<peter.chen@nxp.com>
Fri, 15 Jul 2016 03:17:05 +0000
(11:17 +0800)
committer
Sean Paul
<seanpaul@chromium.org>
Fri, 15 Jul 2016 12:47:01 +0000
(08:47 -0400)
of_node_put needs to be called when the device node which is got
from of_parse_phandle has finished using.
Cc: Alexey Brodkin <abrodkin@synopsys.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
drivers/gpu/drm/arc/arcpgu_drv.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/arc/arcpgu_drv.c
b/drivers/gpu/drm/arc/arcpgu_drv.c
index ccbdadb108dcdf531760c8848519cdeb61912dd7..0226ec0667dd5428eec40407c9001606ccf53ae6 100644
(file)
--- a/
drivers/gpu/drm/arc/arcpgu_drv.c
+++ b/
drivers/gpu/drm/arc/arcpgu_drv.c
@@
-127,6
+127,7
@@
static int arcpgu_load(struct drm_device *drm)
encoder_node = of_parse_phandle(drm->dev->of_node, "encoder-slave", 0);
if (encoder_node) {
ret = arcpgu_drm_hdmi_init(drm, encoder_node);
+ of_node_put(encoder_node);
if (ret < 0)
return ret;
} else {