[PATCH -next v3 11/12] mtd: spi-nor: nxp-spifi: Use helper function devm_clk_get_enabled()
Miquel Raynal
miquel.raynal at bootlin.com
Mon Aug 21 00:54:17 PDT 2023
Hi again,
miquel.raynal at bootlin.com wrote on Mon, 21 Aug 2023 09:38:25 +0200:
> Hi Tudor,
>
> lizetao1 at huawei.com wrote on Mon, 21 Aug 2023 11:17:36 +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 enables (and possibly
> > prepares) the clocks for the whole lifetime of the device. Moreover, it is
> > no longer necessary to unprepare and disable the clocks explicitly, so drop
> > the label "dis_clks" and "dis_clk_reg".
>
> This patch seems very simple, do you mind if I apply it directly into
> mtd/next for the next PR?
I see you already took that one, perfect ;-) Sorry for the noise.
Thanks,
Miquèl
More information about the linux-mtd
mailing list