[PATCH -next] ata: pata_imx: Use helper function devm_clk_get_enabled()

Sergey Shtylyov s.shtylyov at omp.ru
Wed Aug 16 08:36:59 PDT 2023


Hello!

On 8/15/23 6:13 PM, Li Zetao wrote:

> After the commit 7ef9651e9792 ("clk: Provide new devm_clk helpers for
> prepared and enabled clocks"), it can replace the pair of functions,
> devm_clk_get() and clk_prepare_enable() with a single helper function
> devm_clk_get_enabled(). Moreover, the driver will keeps a clock prepared
> (or enabled) during the whole lifetime of the driver, it is unnecessary to
> unprepare or disable clock explicitly when remove driver or in the error
> handling path.

  At last! :-)

> Signed-off-by: Li Zetao <lizetao1 at huawei.com>

Reviewed-by: Sergey Shtylyov <s.shtylyov at omp.ru>

[...]

MBR, Sergey



More information about the linux-arm-kernel mailing list