summaryrefslogtreecommitdiffstats
path: root/drivers/clk/imx
diff options
context:
space:
mode:
authorAnson Huang <Anson.Huang@nxp.com>2020-02-12 12:57:37 +0100
committerShawn Guo <shawnguo@kernel.org>2020-02-17 07:37:54 +0100
commit680fbce528169eaadf621066a4925794e2addbd7 (patch)
treefd073d279600be1afa1a2fddf8c7dc9c6b31b7e1 /drivers/clk/imx
parentclk: imx8mn: Add missing of_node_put() (diff)
downloadlinux-680fbce528169eaadf621066a4925794e2addbd7.tar.xz
linux-680fbce528169eaadf621066a4925794e2addbd7.zip
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 <Anson.Huang@nxp.com> Reviewed-by: Stephen Boyd <sboyd@kernel.org> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Diffstat (limited to 'drivers/clk/imx')
-rw-r--r--drivers/clk/imx/clk-imx8mp.c1
1 files changed, 1 insertions, 0 deletions
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;