mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 19:00:25 +00:00
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 <claudiu.beznea@microchip.com> Link: https://lkml.kernel.org/r/1588508289-10140-2-git-send-email-claudiu.beznea@microchip.com Signed-off-by: Stephen Boyd <sboyd@kernel.org>
This commit is contained in:
parent
f6363c437d
commit
e218325ff9
1 changed files with 1 additions and 0 deletions
|
@ -278,6 +278,7 @@ static int __init pmc_register_ops(void)
|
|||
return -ENODEV;
|
||||
|
||||
pmcreg = device_node_to_regmap(np);
|
||||
of_node_put(np);
|
||||
if (IS_ERR(pmcreg))
|
||||
return PTR_ERR(pmcreg);
|
||||
|
||||
|
|
Loading…
Reference in a new issue