Skip to content

Commit e218325

Browse files
claudiubezneabebarino
authored andcommitted
clk: at91: pmc: decrement node's refcount
of_find_matching_node() increment node's refcount. Call of_node_put() to decrement it after it was used. Signed-off-by: Claudiu Beznea <[email protected]> Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
1 parent f6363c4 commit e218325

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/clk/at91/pmc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,7 @@ static int __init pmc_register_ops(void)
278278
return -ENODEV;
279279

280280
pmcreg = device_node_to_regmap(np);
281+
of_node_put(np);
281282
if (IS_ERR(pmcreg))
282283
return PTR_ERR(pmcreg);
283284

0 commit comments

Comments
 (0)