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>
This commit is contained in:
Anson Huang 2020-02-12 19:57:34 +08:00 committed by Shawn Guo
parent 8b1a3c0ba9
commit cb5ae504f2
1 changed files with 1 additions and 0 deletions

View File

@ -305,6 +305,7 @@ static int imx8mq_clocks_probe(struct platform_device *pdev)
np = of_find_compatible_node(NULL, NULL, "fsl,imx8mq-anatop"); np = of_find_compatible_node(NULL, NULL, "fsl,imx8mq-anatop");
base = of_iomap(np, 0); base = of_iomap(np, 0);
of_node_put(np);
if (WARN_ON(!base)) if (WARN_ON(!base))
return -ENOMEM; return -ENOMEM;