[PATCH v2 01/17] spi: axiado: Use helper function devm_clk_get_enabled()
Mark Brown
broonie at kernel.org
Fri Mar 13 05:55:51 PDT 2026
On Fri, Mar 13, 2026 at 02:08:17PM +0800, Pei Xiao wrote:
> devm_clk_get() and clk_prepare_enable() can now be replaced by
> devm_clk_get_enabled() when driver enables the clocks. Moreover, it is no
> longer necessary to unprepare and disable the clocks explicitly.
> Simplify code.
> - xspi->pclk = devm_clk_get(&pdev->dev, "pclk");
> + xspi->pclk = devm_clk_get_enabled(&pdev->dev, "pclk");
> if (IS_ERR(xspi->pclk)) {
This doesn't update the remove function which while it doesn't free the
clock does disable it. Please check all the other patches for similar
issues too.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-rockchip/attachments/20260313/cfad5023/attachment.sig>
More information about the Linux-rockchip
mailing list