[PATCH 1/5] usb: aspeed_udc: Use devm_clk_get_enabled() helpers
Andrew Jeffery
andrew at codeconstruct.com.au
Thu Aug 22 11:40:11 AEST 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-aspeed
mailing list