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

Mark Brown <[email protected]>
Newsgroups org.infradead.lists.linux-arm-kernel,org.kernel.vger.linux-kernel,org.kernel.vger.linux-sound
Message-ID <[email protected]>
On Sat, Aug 22, 2026 at 10:00: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. 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/qJNaLcl1Uh9AFAmqMLdcACgkQJNaLcl1U
h9DxTQf+INtzJgyDvqgqcnc4gNY8dx1hZe21T8KpXzsJojjOXwkDwQGQulFOAJgL
zAECBEeLfPd4N6aFurXZkKHxEe1BpwJisUnq7/9fmQybVM+OemOQNOhs5x14YXzp
uoqs9VUsYKYE0JMLDskxrWs1Z5zwCYWUt9Tm1n3U7uOmIHQtZsZWOGU9wvVYeOIv
tsi0suIQPyulXa/JBpciNv3TW10mL+E8w1FfZxu+hSSxHab9ZAm8sF4RiiUc6ulb
awFeBY/aju3oKS/YhB4jvYB3txuVuapfZ5xFbjgb1By69qYGd+K2qqOB5JjaL+5c
d48RB4uNYBlp2EMGcLjWy5vorczVzg==
=bl82
-----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.