[PATCH 1/5] usb: aspeed_udc: Use devm_clk_get_enabled() helpers
Andrew Jeffery
andrew at codeconstruct.com.au
Wed Aug 21 18:40:11 PDT 2024
On Wed, 2024-08-21 at 20:10 +0800, Lei Liu 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 calls to clk_disable_unprepare().
>
> Signed-off-by: Lei Liu <liulei.rjpt at vivo.com>
Acked-by: Andrew Jeffery <andrew at codeconstruct.com.au>
More information about the linux-riscv
mailing list