summaryrefslogtreecommitdiffstats
path: root/drivers/clk
diff options
context:
space:
mode:
authorAnson Huang <Anson.Huang@nxp.com>2020-02-12 19:57:36 +0800
committerShawn Guo <shawnguo@kernel.org>2020-02-17 14:37:51 +0800
commitd93171b54cb44e65c1ec5462c17704b51b8afc27 (patch)
tree22a0d2a8e146309634d4e932bbb96f121379765b /drivers/clk
parent5062d46e2698e720f866c06563419bff09dcacb4 (diff)
downloadlinux-d93171b54cb44e65c1ec5462c17704b51b8afc27.tar.gz
linux-d93171b54cb44e65c1ec5462c17704b51b8afc27.tar.bz2
linux-d93171b54cb44e65c1ec5462c17704b51b8afc27.zip
clk: imx8mn: 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-imx8mn.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/clk/imx/clk-imx8mn.c b/drivers/clk/imx/clk-imx8mn.c
index 6f4547fec368..67b826d7184b 100644
--- a/drivers/clk/imx/clk-imx8mn.c
+++ b/drivers/clk/imx/clk-imx8mn.c
@@ -317,6 +317,7 @@ static int imx8mn_clocks_probe(struct platform_device *pdev)
np = of_find_compatible_node(NULL, NULL, "fsl,imx8mn-anatop");
base = of_iomap(np, 0);
+ of_node_put(np);
if (WARN_ON(!base)) {
ret = -ENOMEM;
goto unregister_hws;