Re: [PATCH v5 07/17] spi: orion: Simplify clock handling with devm_clk_get_enabled()
From: Mark Brown
Date: Mon Mar 23 2026 - 16:04:26 EST
On Thu, Mar 19, 2026 at 10:04:03AM +0800, Pei Xiao wrote:
> Replace devm_clk_get() followed by clk_prepare_enable() with
> devm_clk_get_enabled() for the "axi" clock. This reduces
> boilerplate code and error handling, as the managed API automatically
> disables the clock when the device is removed or if probe fails.
Another runtime PM clock managment one.
Attachment:
signature.asc
Description: PGP signature