Re: [PATCH v5 12/17] spi: stm32-qspi: Simplify clock handling with devm_clk_get_enabled()

From: Mark Brown

Date: Mon Mar 23 2026 - 15:47:50 EST


On Thu, Mar 19, 2026 at 10:04:08AM +0800, Pei Xiao wrote:
> Replace devm_clk_get() followed by clk_prepare_enable() with
> devm_clk_get_enabled() for the clock. This removes the need for
> explicit clock enable and disable calls, as the managed API automatically
> handles clock disabling on device removal or probe failure.

More runtime PM.

Attachment: signature.asc
Description: PGP signature