diff options
author | Peter Chen <[email protected]> | 2016-07-15 11:17:05 +0800 |
---|---|---|
committer | Sean Paul <[email protected]> | 2016-07-15 08:47:01 -0400 |
commit | 8e7446c36ffd43a19c8ca928899e835c527b615e (patch) | |
tree | 0d6374ab1fe67262ef45f09410cf3a0cab0383bf | |
parent | d6a2d16bec2551d3b6481100c3da6843758f9820 (diff) |
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.
Cc: Alexey Brodkin <[email protected]>
Signed-off-by: Peter Chen <[email protected]>
Signed-off-by: Sean Paul <[email protected]>
-rw-r--r-- | drivers/gpu/drm/arc/arcpgu_drv.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/arc/arcpgu_drv.c b/drivers/gpu/drm/arc/arcpgu_drv.c index ccbdadb108dc..0226ec0667dd 100644 --- a/drivers/gpu/drm/arc/arcpgu_drv.c +++ b/drivers/gpu/drm/arc/arcpgu_drv.c @@ -127,6 +127,7 @@ static int arcpgu_load(struct drm_device *drm) encoder_node = of_parse_phandle(drm->dev->of_node, "encoder-slave", 0); if (encoder_node) { ret = arcpgu_drm_hdmi_init(drm, encoder_node); + of_node_put(encoder_node); if (ret < 0) return ret; } else { |