clk: using pm_runtime_resume_and_get instead of pm_runtime_get_sync
authorMinghao Chi <chi.minghao@zte.com.cn>
Mon, 18 Apr 2022 11:04:55 +0000 (11:04 +0000)
committerStephen Boyd <sboyd@kernel.org>
Sat, 23 Apr 2022 02:03:00 +0000 (19:03 -0700)
commit3196a605659dcf7ea2a4442edf704aa0edc6e559
treed77cdfcca02e8a9f39166a97ad9db783eb993d84
parentbab79506fd16dd36e3b9012ed0d882c15a3a0eb8
clk: using pm_runtime_resume_and_get instead of pm_runtime_get_sync

Using pm_runtime_resume_and_get is more appropriate
for simplifing code

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn>
Link: https://lore.kernel.org/r/20220418110455.2559264-1-chi.minghao@zte.com.cn
[sboyd@kernel.org: Drop local ret variable too]
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk.c