Skip to content
Commit 42997330 authored by Liang He's avatar Liang He Committed by Stephen Boyd
Browse files

clk: st: Hold reference returned by of_get_parent()



We should hold the reference returned by of_get_parent() and use it
to call of_node_put() for refcount balance.

Fixes: 3efe64ef ("clk: st: clkgen-fsyn: search reg within node or parent")
Fixes: 810251b0 ("clk: st: clkgen-mux: search reg within node or parent")

Signed-off-by: default avatarLiang He <windhl@126.com>
Link: https://lore.kernel.org/r/20220628142416.169808-1-windhl@126.com


Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
parent 02bd544f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment