Browse Source

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>
Peter Chen 9 years ago
parent
commit
3b8e64f6f8
1 changed files with 1 additions and 0 deletions
  1. 1 0
      drivers/gpu/drm/sun4i/sun4i_drv.c

+ 1 - 0
drivers/gpu/drm/sun4i/sun4i_drv.c

@@ -310,6 +310,7 @@ static int sun4i_drv_probe(struct platform_device *pdev)
 
 
 		count += sun4i_drv_add_endpoints(&pdev->dev, &match,
 		count += sun4i_drv_add_endpoints(&pdev->dev, &match,
 						pipeline);
 						pipeline);
+		of_node_put(pipeline);
 
 
 		DRM_DEBUG_DRIVER("Queued %d outputs on pipeline %d\n",
 		DRM_DEBUG_DRIVER("Queued %d outputs on pipeline %d\n",
 				 count, i);
 				 count, i);