[PATCHv2] ASoC: xilinx: formatter_pcm: use more devm in probe
Vincenzo Frascino
vincenzo.frascino at arm.com
Tue Aug 11 23:13:32 PDT 2026
On 11/08/2026 19:50, Rosen Penev wrote:
> Use devm_clk_get_enabled() to let the clock be enabled automatically
> and cleaned up on unbind, dropping the manual clk_prepare_enable() and
> clk_disable_unprepare() calls in probe and remove. As a result, move the
> clk struct member into probe, which is the only place it's used.
>
> Simplify the probe error paths by returning directly instead of
> jumping to clk_err, and use devm_snd_soc_register_component() return
> value directly. Also remove error message from ioremap as it throws one
> itself. Same with devm_request_irq().
>
> Assisted-by: opencode:deepseek-v4-flash-free
> Signed-off-by: Rosen Penev <rosenp at gmail.com>
Reviewed-by: Vincenzo Frascino <vincenzo.frascino at arm.com>
[...]
More information about the linux-arm-kernel
mailing list