drm/pl111: add of_node_put()
authorYangtao Li <tiny.windzz@gmail.com>
Wed, 21 Nov 2018 13:17:23 +0000 (08:17 -0500)
committerEric Anholt <eric@anholt.net>
Wed, 28 Nov 2018 17:31:07 +0000 (09:31 -0800)
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
drivers/gpu/drm/pl111/pl111_vexpress.c

index 5fa0441bb6df8fea7fd54433a7f7b68cfa28d3be..38c938c9addaf72f86853feb307d2cd62938dd1d 100644 (file)
@@ -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.