summaryrefslogtreecommitdiffstats
path: root/drivers/clk
diff options
context:
space:
mode:
authorAnson Huang <Anson.Huang@nxp.com>2020-02-12 12:57:34 +0100
committerShawn Guo <shawnguo@kernel.org>2020-02-17 07:37:46 +0100
commitcb5ae504f2014a66c131920b8eb0ca6b0e6851c6 (patch)
tree3b378903fb345dcc9cd45d0fecc3cafdfc82a3b4 /drivers/clk
parentclk: imx6sl: Add missing of_node_put() (diff)
downloadlinux-cb5ae504f2014a66c131920b8eb0ca6b0e6851c6.tar.xz
linux-cb5ae504f2014a66c131920b8eb0ca6b0e6851c6.zip
clk: imx8mq: 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 <Anson.Huang@nxp.com> Reviewed-by: Stephen Boyd <sboyd@kernel.org> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Diffstat (limited to 'drivers/clk')
-rw-r--r--drivers/clk/imx/clk-imx8mq.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/clk/imx/clk-imx8mq.c b/drivers/clk/imx/clk-imx8mq.c
index 8b4b2fbe4a65..1f5ea1eaad65 100644
--- a/drivers/clk/imx/clk-imx8mq.c
+++ b/drivers/clk/imx/clk-imx8mq.c
@@ -305,6 +305,7 @@ static int imx8mq_clocks_probe(struct platform_device *pdev)
np = of_find_compatible_node(NULL, NULL, "fsl,imx8mq-anatop");
base = of_iomap(np, 0);
+ of_node_put(np);
if (WARN_ON(!base))
return -ENOMEM;