8000 gpu: drm: sun4i_drv: add missing of_node_put after calling of_parse_p… · bsd-unix/linux@3b8e64f · GitHub
[go: up one dir, main page]

Skip to content

Commit 3b8e64f

Browse files
Peter Chenmripard
authored andcommitted
gpu: drm: sun4i_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. Cc: Maxime Ripard <maxime.ripard@free-electrons.com> Cc: Chen-Yu Tsai <wens@csie.org> Signed-off-by: Peter Chen <peter.chen@nxp.com> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
1 parent 2cd3683 commit 3b8e64f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/gpu/drm/sun4i/sun4i_drv.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,7 @@ static int sun4i_drv_probe(struct platform_device *pdev)
310310

311311
count += sun4i_drv_add_endpoints(&pdev->dev, &match,
312312
pipeline);
313+
of_node_put(pipeline);
313314

314315
DRM_DEBUG_DRIVER("Queued %d outputs on pipeline %d\n",
315316
count, i);

0 commit comments

Comments
 (0)
0