Commit 414b2fb4 authored by Huan Yang's avatar Huan Yang Committed by Daniel Lezcano
Browse files

clocksource/drivers/ingenic: 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/20240820094603.103598-1-link@vivo.com


Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
parent e86c8186
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment