Re: [PATCH] watchdog: apple: Use devm_clk_get_enabled() helper

From: Sven Peter
Date: Tue Jan 03 2023 - 06:39:11 EST




On Sat, Dec 31, 2022, at 08:57, Christophe JAILLET 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@xxxxxxxxxx>

Reviewed-by: Sven Peter <sven@xxxxxxxxxxxxx>


Thanks,


Sven