(subset) [PATCH -next v2 00/12] mtd: Use devm_clk_get_*() helper function to simplify the drivers.
Tudor Ambarus
tudor.ambarus at linaro.org
Fri Aug 18 03:28:15 PDT 2023
On Fri, 18 Aug 2023 15:46:30 +0800, Li Zetao wrote:
> Commit 7ef9651e9792 ("clk: Provide new devm_clk helpers for prepared
> and enabled clocks") provides a new helper function for prepared and
> enabled clocks when a driver keeps a clock prepared (or enabled) during
> the whole lifetime of the driver. So where drivers get clocks and enable
> them immediately, it can be combined into a single function
> devm_clk_get_*(). Moreover, the unprepare and disable function
> has been registered to devm_clk_state, and before devm_clk_state is
> released, the clocks will be unprepareed and disable, so it is unnecessary
> to unprepare and disable clock explicitly when remove drivers or in the
> error handling path.
>
> [...]
Applied to git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git,
spi-nor/next branch. Thanks!
[11/12] mtd: spi-nor: nxp-spifi: Use helper function devm_clk_get_enabled()
https://git.kernel.org/mtd/c/69d50d0461a1
Cheers,
--
Tudor Ambarus <tudor.ambarus at linaro.org>
More information about the Linux-mediatek
mailing list