[PATCH v5 04/17] spi: img-spfi: Simplify clock handling with devm_clk_get_enabled()
Mark Brown
broonie at kernel.org
Mon Mar 23 12:40:39 PDT 2026
On Thu, Mar 19, 2026 at 10:04:00AM +0800, Pei Xiao wrote:
> Replace devm_clk_get() followed by clk_prepare_enable() with
> devm_clk_get_enabled() for both "sys" and "spfi" clocks. This reduces
> boilerplate code and error handling, as the managed API automatically
> disables the clocks when the device is removed or if probe fails.
This is another driver using runtime PM for the clocks.
-------------- 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-mediatek/attachments/20260323/b303db37/attachment.sig>
More information about the Linux-mediatek
mailing list