Skip to content

Commit e222f94

Browse files
claudiubezneaalexandrebelloni
authored andcommitted
ARM: at91: pm: of_node_put() after its usage
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
1 parent 39add36 commit e222f94

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • arch/arm/mach-at91

arch/arm/mach-at91/pm.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -846,6 +846,7 @@ static void __init at91_pm_init(void (*pm_idle)(void))
846846

847847
pmc_np = of_find_matching_node_and_match(NULL, atmel_pmc_ids, &of_id);
848848
soc_pm.data.pmc = of_iomap(pmc_np, 0);
849+
of_node_put(pmc_np);
849850
if (!soc_pm.data.pmc) {
850851
pr_err("AT91: PM not supported, PMC not found\n");
851852
return;

0 commit comments

Comments
 (0)