summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/pl111/pl111_vexpress.c
diff options
context:
space:
mode:
authorYangtao Li <tiny.windzz@gmail.com>2018-11-21 16:17:23 +0300
committerEric Anholt <eric@anholt.net>2018-11-28 20:31:07 +0300
commit45fdfdb6475905704134afba3c0ef5f24c2b5921 (patch)
tree1f23ab7df3b825cf4736cc1193d7085c3db856d9 /drivers/gpu/drm/pl111/pl111_vexpress.c
parent08f73d668048ffa3ba6b1426b6ba0a89b16aefd7 (diff)
downloadlinux-45fdfdb6475905704134afba3c0ef5f24c2b5921.tar.xz
drm/pl111: add of_node_put()
of_find_node_by_path() acquires a reference to the node returned by it and that reference needs to be dropped by its caller. Signed-off-by: Yangtao Li <tiny.windzz@gmail.com> Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Eric Anholt <eric@anholt.net> Link: https://patchwork.freedesktop.org/patch/msgid/20181121131723.22431-1-tiny.windzz@gmail.com
Diffstat (limited to 'drivers/gpu/drm/pl111/pl111_vexpress.c')
-rw-r--r--drivers/gpu/drm/pl111/pl111_vexpress.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/pl111/pl111_vexpress.c b/drivers/gpu/drm/pl111/pl111_vexpress.c
index 5fa0441bb6df..38c938c9adda 100644
--- a/drivers/gpu/drm/pl111/pl111_vexpress.c
+++ b/drivers/gpu/drm/pl111/pl111_vexpress.c
@@ -55,6 +55,8 @@ int pl111_vexpress_clcd_init(struct device *dev,
}
}
+ of_node_put(root);
+
/*
* If there is a coretile HDLCD and it has a driver,
* do not mux the CLCD on the motherboard to the DVI.