[PATCH] watchdog: meson_gxbb: Use devm_clk_get_enabled() helper

Martin Blumenstingl martin.blumenstingl at googlemail.com
Tue Jan 3 13:26:57 PST 2023


On Sat, Dec 31, 2022 at 1:34 PM Christophe JAILLET
<christophe.jaillet at wanadoo.fr> wrote:
>
> The devm_clk_get_enabled() helper:
>    - calls devm_clk_get()
>    - calls clk_prepare_enable() and registers what is needed in order to
>      call clk_disable_unprepare() when needed, as a managed resource.
>
> This simplifies the code and avoids the need of a dedicated function used
> with devm_add_action_or_reset().
>
> Signed-off-by: Christophe JAILLET <christophe.jaillet at wanadoo.fr>
Thank you for this patch! It's:
Reviewed-by: Martin Blumenstingl <martin.blumenstingl at googlemail.com>



More information about the linux-arm-kernel mailing list