projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb5ae50
)
clk: imx8mm: Add missing of_node_put()
author
Anson Huang
<Anson.Huang@nxp.com>
Wed, 12 Feb 2020 11:57:35 +0000
(19:57 +0800)
committer
Shawn Guo
<shawnguo@kernel.org>
Mon, 17 Feb 2020 06:37:49 +0000
(14:37 +0800)
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>
drivers/clk/imx/clk-imx8mm.c
patch
|
blob
|
history
diff --git
a/drivers/clk/imx/clk-imx8mm.c
b/drivers/clk/imx/clk-imx8mm.c
index 0cba5d4bd51edc160d0ec066d57fec8523108e60..2f2c240a86e291a9912a21949b6f45ccacad9020 100644
(file)
--- a/
drivers/clk/imx/clk-imx8mm.c
+++ b/
drivers/clk/imx/clk-imx8mm.c
@@
-324,6
+324,7
@@
static int imx8mm_clocks_probe(struct platform_device *pdev)
np = of_find_compatible_node(NULL, NULL, "fsl,imx8mm-anatop");
base = of_iomap(np, 0);
+ of_node_put(np);
if (WARN_ON(!base))
return -ENOMEM;