From: Yangtao Li Date: Wed, 21 Nov 2018 13:17:23 +0000 (-0500) Subject: drm/pl111: add of_node_put() X-Git-Tag: v5.15~303^2~28^2~6013 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=45fdfdb6475905704134afba3c0ef5f24c2b5921;p=platform%2Fkernel%2Flinux-starfive.git 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 Signed-off-by: Eric Anholt Reviewed-by: Eric Anholt Link: https://patchwork.freedesktop.org/patch/msgid/20181121131723.22431-1-tiny.windzz@gmail.com --- diff --git a/drivers/gpu/drm/pl111/pl111_vexpress.c b/drivers/gpu/drm/pl111/pl111_vexpress.c index 5fa0441..38c938c 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.