From: Claudiu Beznea Date: Wed, 5 Aug 2020 08:36:50 +0000 (+0300) Subject: ARM: at91: pm: of_node_put() after its usage X-Git-Tag: v5.10-rc1~28^2~8^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e222f943519564978e082c152b4140a47e93392c;p=thirdparty%2Fkernel%2Flinux.git ARM: at91: pm: of_node_put() after its usage 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 Signed-off-by: Alexandre Belloni Link: https://lore.kernel.org/r/1596616610-15460-4-git-send-email-claudiu.beznea@microchip.com --- diff --git a/arch/arm/mach-at91/pm.c b/arch/arm/mach-at91/pm.c index e9091ff5b0f5d..d35d57451f17e 100644 --- a/arch/arm/mach-at91/pm.c +++ b/arch/arm/mach-at91/pm.c @@ -846,6 +846,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;