diff options
author | Tony Lindgren <tony@atomide.com> | 2022-06-21 11:11:18 +0200 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2022-08-19 23:21:55 +0200 |
commit | 26f2da0d2f823dc7180b0505d46318f64d1e0a7a (patch) | |
tree | 26d3cfd19827182a04ce316d428b9a8faa2b3401 /drivers/clk/ti | |
parent | Linux 6.0-rc1 (diff) | |
download | linux-26f2da0d2f823dc7180b0505d46318f64d1e0a7a.tar.xz linux-26f2da0d2f823dc7180b0505d46318f64d1e0a7a.zip |
clk: ti: Fix missing of_node_get() ti_find_clock_provider()
For ti_find_clock_provider() we want to return the np with refcount
incremented. However we are missing of_node_get() for the
clock-output-names case that causes refcount warnings.
Fixes: 51f661ef9a10 ("clk: ti: Add ti_find_clock_provider() to use clock-output-names")
Signed-off-by: Tony Lindgren <tony@atomide.com>
Link: https://lore.kernel.org/r/20220621091118.33930-1-tony@atomide.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/ti')
-rw-r--r-- | drivers/clk/ti/clk.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/clk/ti/clk.c b/drivers/clk/ti/clk.c index ef2a445c63a3..373e9438b57a 100644 --- a/drivers/clk/ti/clk.c +++ b/drivers/clk/ti/clk.c @@ -135,6 +135,7 @@ static struct device_node *ti_find_clock_provider(struct device_node *from, continue; if (!strncmp(n, tmp, strlen(tmp))) { + of_node_get(np); found = true; break; } |