Re: [PATCHv2] ASoC: xilinx: formatter_pcm: use more devm in probe

Mark Brown <[email protected]>
Newsgroups org.kernel.vger.linux-sound,org.infradead.lists.linux-arm-kernel,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
On Tue, Aug 11, 2026 at 11:50:13AM -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. As a result, move the
> clk struct member into probe, which is the only place it's used.

This doesn't apply against current code, please check and resend.
signature.asc (application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmp8pHUACgkQJNaLcl1U
h9B5VAf9EWJCXVNl8MzibMG8K2UgWDBQWdPGWmdONI6B2OjkH2eO+OhfjO2j9biO
j35r1nTL4zU3wRvt/NPu9+T3Sy0tpzhdxFSSilnvF0t87hofQfdjClWWcxTGnwrF
P5dXovRb970jFZQkk2mkcjMDLUf580jUf/yXjFZc8x7epjgzPrgKQrQ8Ny5lsdiU
+SgsIZcPn5kiLkm0qyA3i4xgd3PD8aYyklcXEtTdTqwDKiOfm3elO9hN4ta81aZS
1N+pJLnU8IS0mdlfT33RhUZUmD8g0ywb7/CdjBMIeiisJbfH2/p8SbEAy40b7SxO
Ppq9r4o7UYPD6s7vkRsvjIf5Mv/udQ==
=ZZT6
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.