[PATCH 4/5] pinctrl: k210: Use devm_clk_get_enabled() helpers
Linus Walleij
linus.walleij at linaro.org
Mon Sep 2 01:26:45 PDT 2024
On Thu, Aug 29, 2024 at 8:49 AM Wang Jianzheng <wangjianzheng at vivo.com> wrote:
> 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: Wang Jianzheng <wangjianzheng at vivo.com>
Patch applied!
Yours,
Linus Walleij
More information about the linux-riscv
mailing list