Re: [PATCH] ASoC: xilinx: formatter_pcm: use devm_clk_get_enabled and simplify probe
From: Mark Brown
Date: Thu Aug 06 2026 - 19:51:13 EST
On Thu, Aug 06, 2026 at 04:38:12PM -0700, 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.
>
> Simplify the probe error paths by returning directly instead of
> jumping to clk_err, and use devm_snd_soc_register_component() return
> value directly.
>
> Assisted-by: opencode:deepseek-v4-flash-free
> ---
> sound/soc/xilinx/xlnx_formatter_pcm.c | 47 ++++++++-------------------
You've not provided a Signed-off-by for this so I can't do anything with
it, please see Documentation/process/submitting-patches.rst for details
on what this is and why it's important.
Attachment:
signature.asc
Description: PGP signature