projects
/
wrapfs-5.8.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba11877
)
ARM: at91: pm: of_node_put() after its usage
author
Claudiu Beznea
<claudiu.beznea@microchip.com>
Wed, 5 Aug 2020 08:36:50 +0000
(11:36 +0300)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Thu, 29 Oct 2020 09:08:11 +0000
(10:08 +0100)
[ Upstream commit
e222f943519564978e082c152b4140a47e93392c
]
Put node after it has been used.
Fixes: 13f16017d3e3f ("ARM: at91: pm: Tie the USB clock mask to the pmc")
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link:
https://lore.kernel.org/r/1596616610-15460-4-git-send-email-claudiu.beznea@microchip.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/arm/mach-at91/pm.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-at91/pm.c
b/arch/arm/mach-at91/pm.c
index 2aab043441e8fb1afd16276e2e1f25e7fecfc2cb..eae8aaaadc3bfa1c39cb6c4d6ffb10a864ac535e 100644
(file)
--- a/
arch/arm/mach-at91/pm.c
+++ b/
arch/arm/mach-at91/pm.c
@@
-800,6
+800,7
@@
static void __init at91_pm_init(void (*pm_idle)(void))
pmc_np = of_find_matching_node_and_match(NULL, atmel_pmc_ids, &of_id);
soc_pm.data.pmc = of_iomap(pmc_np, 0);
+ of_node_put(pmc_np);
if (!soc_pm.data.pmc) {
pr_err("AT91: PM not supported, PMC not found\n");
return;