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:
5d950ef
)
gpu: drm: sti_vtg: add missing of_node_put after calling of_parse_phandle
author
Peter Chen
<peter.chen@nxp.com>
Tue, 5 Jul 2016 02:04:52 +0000
(10:04 +0800)
committer
Daniel Vetter
<daniel.vetter@ffwll.ch>
Tue, 12 Jul 2016 13:44:24 +0000
(15:44 +0200)
of_node_put needs to be called when the device node which is got
from of_parse_phandle has finished using.
Cc: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Cc: Vincent Abriou <vincent.abriou@st.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Acked-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link:
http://patchwork.freedesktop.org/patch/msgid/1467684294-20111-6-git-send-email-peter.chen@nxp.com
drivers/gpu/drm/sti/sti_vtg.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/sti/sti_vtg.c
b/drivers/gpu/drm/sti/sti_vtg.c
index 6bf4ce466d20fc194e968098bf76cca1efa77d84..0100c7c668b7e167bc2fef0b7806541d69da9c58 100644
(file)
--- a/
drivers/gpu/drm/sti/sti_vtg.c
+++ b/
drivers/gpu/drm/sti/sti_vtg.c
@@
-432,6
+432,7
@@
static int vtg_probe(struct platform_device *pdev)
np = of_parse_phandle(pdev->dev.of_node, "st,slave", 0);
if (np) {
vtg->slave = of_vtg_find(np);
+ of_node_put(np);
if (!vtg->slave)
return -EPROBE_DEFER;