[PATCH] ASoC: xilinx: formatter_pcm: use devm_clk_get_enabled and simplify probe
Mark Brown
broonie at kernel.org
Thu Aug 6 16:43:56 PDT 2026
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.
-------------- 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-arm-kernel/attachments/20260807/43645c0f/attachment.sig>
More information about the linux-arm-kernel
mailing list