projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce1d4d2
)
ASoC: fsl: mpc8610_hpcd: Add missing of_node_put()
author
Liao Pingfang
<liao.pingfang@zte.com.cn>
Tue, 7 Jul 2020 11:47:47 +0000
(19:47 +0800)
committer
Mark Brown
<broonie@kernel.org>
Tue, 7 Jul 2020 12:31:05 +0000
(13:31 +0100)
After finishing using device node got from of_find_compatible_node(),
of_node_put() needs to be called.
Signed-off-by: Liao Pingfang <liao.pingfang@zte.com.cn>
Link:
https://lore.kernel.org/r/1594122467-11615-1-git-send-email-wang.yi59@zte.com.cn
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/mpc8610_hpcd.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/fsl/mpc8610_hpcd.c
b/sound/soc/fsl/mpc8610_hpcd.c
index f7bd90051ce70b35f06b2b66cb95b6d53fd0d08f..b3090fea4290e68862fad9485cf86d7b507505d3 100644
(file)
--- a/
sound/soc/fsl/mpc8610_hpcd.c
+++ b/
sound/soc/fsl/mpc8610_hpcd.c
@@
-426,9
+426,11
@@
static int __init mpc8610_hpcd_init(void)
guts_np = of_find_compatible_node(NULL, NULL, "fsl,mpc8610-guts");
if (of_address_to_resource(guts_np, 0, &res)) {
pr_err("mpc8610-hpcd: missing/invalid global utilities node\n");
+ of_node_put(guts_np);
return -EINVAL;
}
guts_phys = res.start;
+ of_node_put(guts_np);
return platform_driver_register(&mpc8610_hpcd_driver);
}