Commit 91e6455b authored by Liang He's avatar Liang He Committed by Stephen Boyd
Browse files

clk: sprd: 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: f95e8c79

 ("clk: sprd: support to get regmap from parent node")
Signed-off-by: default avatarLiang He <windhl@126.com>
Link: https://lore.kernel.org/r/20220704004729.272481-1-windhl@126.com


Reviewed-by: default avatarOrson Zhai <orsonzhai@gmail.com>
Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
parent 37c381b8
Supports Markdown
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