projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b1a3c0
)
clk: imx8mq: Add missing of_node_put()
author
Anson Huang
<Anson.Huang@nxp.com>
Wed, 12 Feb 2020 11:57:34 +0000
(19:57 +0800)
committer
Shawn Guo
<shawnguo@kernel.org>
Mon, 17 Feb 2020 06:37:46 +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-imx8mq.c
patch
|
blob
|
history
diff --git
a/drivers/clk/imx/clk-imx8mq.c
b/drivers/clk/imx/clk-imx8mq.c
index 8b4b2fbe4a656fc0b1af82c947a444a1d7652352..1f5ea1eaad650fe6f3b69c72cdf0bb002a2218b1 100644
(file)
--- 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;