Commit f7e41b65 authored by Huan Yang's avatar Huan Yang Committed by Stephen Boyd
Browse files

clk: lmk04832: Use devm_clk_get_enabled() helpers



The devm_clk_get_enabled() helpers:
    - call devm_clk_get()
    - call clk_prepare_enable() and register what is needed in order to
     call clk_disable_unprepare() when needed, as a managed resource.

This simplifies the code and avoids the calls to clk_disable_unprepare().

Signed-off-by: default avatarHuan Yang <link@vivo.com>
Link: https://lore.kernel.org/r/20240820102119.130298-1-link@vivo.com


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