Skip to contentSkip to conversation

gpu: drm: arcpgu_drv: add missing of_node_put after calling of_parse_phandle

PATCH New Peter Chen 1 participant 1 message Jul 4, 2016

Subsystems (2)
lore
Share & tools
lore

Peter Chen

author
#0 lore raw

PATCH 1/1 gpu: drm: arcpgu_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.

---
 drivers/gpu/drm/arc/arcpgu_drv.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/arc/arcpgu_drv.c +1 -0
index 76e187a..b2c3c3b 100644
@@ -155,6 +155,7 @@ static int arcpgu_load(struct drm_device *drm)
 	}
 
 	ret = arcpgu_drm_hdmi_init(drm, encoder_node);
+	of_node_put(encoder_node);
 	if (ret < 0)
 		return ret;
 
Signature · 1 line
1.9.1