Commit 26f2da0d authored by Tony Lindgren's avatar Tony Lindgren Committed by Stephen Boyd

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: 51f661ef ("clk: ti: Add ti_find_clock_provider() to use clock-output-names")
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
Link: https://lore.kernel.org/r/20220621091118.33930-1-tony@atomide.comSigned-off-by: default avatarStephen Boyd <sboyd@kernel.org>
parent 568035b0
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment