From: Anson Huang Date: Wed, 12 Feb 2020 11:57:37 +0000 (+0800) Subject: clk: imx8mp: Add missing of_node_put() X-Git-Tag: v5.7-rc1~84^2^5~2^2~20 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=680fbce528169eaadf621066a4925794e2addbd7;p=linux.git clk: imx8mp: Add missing of_node_put() After finishing using device node got from of_find_compatible_node(), of_node_put() needs to be called. Signed-off-by: Anson Huang Reviewed-by: Stephen Boyd Signed-off-by: Shawn Guo --- diff --git a/drivers/clk/imx/clk-imx8mp.c b/drivers/clk/imx/clk-imx8mp.c index ee83aa2162d9..a16af4fce044 100644 --- a/drivers/clk/imx/clk-imx8mp.c +++ b/drivers/clk/imx/clk-imx8mp.c @@ -434,6 +434,7 @@ static int imx8mp_clocks_probe(struct platform_device *pdev) np = of_find_compatible_node(NULL, NULL, "fsl,imx8mp-anatop"); anatop_base = of_iomap(np, 0); + of_node_put(np); if (WARN_ON(!anatop_base)) return -ENOMEM;