aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Chen <peter.chen@nxp.com>2016-07-04 22:04:53 -0400
committerMaxime Ripard <maxime.ripard@free-electrons.com>2016-07-05 03:20:29 -0400
commit3b8e64f6f8e2d437b15572f445b1932a45f9be6a (patch)
tree319b7292a4d86c53a9df29a59be9c5fd569b6344
parent2cd368300aa5bcec40c079ee5096287847506504 (diff)
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>
-rw-r--r--drivers/gpu/drm/sun4i/sun4i_drv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/sun4i/sun4i_drv.c b/drivers/gpu/drm/sun4i/sun4i_drv.c
index cbe4a25a748c..937394cbc241 100644
--- a/drivers/gpu/drm/sun4i/sun4i_drv.c
+++ b/drivers/gpu/drm/sun4i/sun4i_drv.c
@@ -310,6 +310,7 @@ static int sun4i_drv_probe(struct platform_device *pdev)
310 310
311 count += sun4i_drv_add_endpoints(&pdev->dev, &match, 311 count += sun4i_drv_add_endpoints(&pdev->dev, &match,
312 pipeline); 312 pipeline);
313 of_node_put(pipeline);
313 314
314 DRM_DEBUG_DRIVER("Queued %d outputs on pipeline %d\n", 315 DRM_DEBUG_DRIVER("Queued %d outputs on pipeline %d\n",
315 count, i); 316 count, i);