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

clk: berlin: Add of_node_put() for of_get_parent()



In berlin2_clock_setup() and berlin2q_clock_setup(), we need to
call of_node_put() for the reference returned by of_get_parent()
which has increased the refcount. We should call *_put() in fail
path or when it is not used anymore.

Fixes: 26b3b6b9 ("clk: berlin: prepare simple-mfd conversion")
Signed-off-by: default avatarLiang He <windhl@126.com>
Link: https://lore.kernel.org/r/20220708084900.311684-1-windhl@126.com


Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
parent b3ff02c5
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