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

Florian Fainelli f.fainelli at gmail.com
Sat Dec 31 08:49:31 PST 2022



On 12/31/2022 12:10 AM, 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 at wanadoo.fr>

Acked-by: Florian Fainelli <f.fainelli at gmail.com>
-- 
Florian



More information about the linux-arm-kernel mailing list