Skip to content

Commit 26f2da0

Browse files
tmlindbebarino
authored andcommitted
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: 51f661e ("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>
1 parent 568035b commit 26f2da0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/clk/ti/clk.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ static struct device_node *ti_find_clock_provider(struct device_node *from,
135135
continue;
136136

137137
if (!strncmp(n, tmp, strlen(tmp))) {
138+
of_node_get(np);
138139
found = true;
139140
break;
140141
}

0 commit comments

Comments
 (0)