diff options
author | Claudiu Beznea <claudiu.beznea@microchip.com> | 2020-05-03 15:18:09 +0300 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2020-05-26 20:22:02 -0700 |
commit | e218325ff9c31de191d4a617f8fddd3cf78b5550 (patch) | |
tree | 03836bc3000f514eab91b459971a5707e8c0fdd3 /drivers/clk/at91 | |
parent | f6363c437dc6e287259c05849286bf0faefb0fdd (diff) |
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>
Diffstat (limited to 'drivers/clk/at91')
-rw-r--r-- | drivers/clk/at91/pmc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/clk/at91/pmc.c b/drivers/clk/at91/pmc.c index bf0570e66fc1..e164069c81bd 100644 --- a/drivers/clk/at91/pmc.c +++ b/drivers/clk/at91/pmc.c @@ -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); |