[PATCH -next] ata: pata_imx: Use helper function devm_clk_get_enabled()
Damien Le Moal
dlemoal at kernel.org
Wed Aug 16 15:52:06 PDT 2023
On 8/16/23 00:13, 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.
>
> Signed-off-by: Li Zetao <lizetao1 at huawei.com>
Applied to for-6.6. Thanks !
--
Damien Le Moal
Western Digital Research
More information about the linux-arm-kernel
mailing list