Skip to content

Commit

Permalink
ARM: at91: pm: of_node_put() after its usage
Browse files Browse the repository at this point in the history
[ Upstream commit e222f94 ]

Put node after it has been used.

Fixes: 13f1601 ("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>
  • Loading branch information
claudiubeznea authored and gregkh committed Oct 29, 2020
1 parent ba11877 commit ea25940
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/arm/mach-at91/pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ea25940

Please sign in to comment.