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

clk: qoriq: Hold reference returned by of_get_parent()



In legacy_init_clockgen(), we need to hold the reference returned
by of_get_parent() and use it to call of_node_put() for refcount
balance.

Beside, in create_sysclk(), we need to call of_node_put() on 'sysclk'
also for refcount balance.

Fixes: 0dfc86b3 ("clk: qoriq: Move chip-specific knowledge into driver")
Signed-off-by: default avatarLiang He <windhl@126.com>
Link: https://lore.kernel.org/r/20220628143851.171299-1-windhl@126.com


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