[PATCH -next] mtd: rawnand: denali: Use the devm_clk_get_enabled() helper function
Miquel Raynal
miquel.raynal at bootlin.com
Fri Sep 6 08:04:18 PDT 2024
On Mon, 2024-08-26 at 08:04:08 UTC, Jinjie Ruan 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.
>
> Signed-off-by: Jinjie Ruan <ruanjinjie at huawei.com>
Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks.
Miquel
More information about the linux-mtd
mailing list