[PATCH -next v2 03/12] mtd: rawnand: fsmc: Use helper function devm_clk_get_enabled()

Miquel Raynal miquel.raynal at bootlin.com
Fri Aug 18 01:11:10 PDT 2023


Hi Li,

lizetao1 at huawei.com wrote on Fri, 18 Aug 2023 15:46:33 +0800:

> Since commit 7ef9651e9792 ("clk: Provide new devm_clk helpers for prepared
> and enabled clocks"), devm_clk_get() and clk_prepare_enable() can now be
> replaced by devm_clk_get_enabled() when driver enable (and possibly
> prepare) the clocks for the whole lifetime of the device. Moreover, it is
> no longer necessary to unprepare and disable the clock explicitly. The
> label "disable_clk" no longer makes sense, rename it to "disable_fsmc".

Yep, please keep this last sentence here, it is useful.

> Reviewed-by: Miquel Raynal <miquel.raynal at bootlin.com>
> Signed-off-by: Li Zetao <lizetao1 at huawei.com>
> ---

Thanks,
Miquèl



More information about the linux-mtd mailing list