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

Mark Brown broonie at kernel.org
Wed Aug 12 03:16:17 PDT 2026


On Wed, Aug 12, 2026 at 07:58:23AM +0200, Michal Simek wrote:
> 
> 
> On 8/11/26 20: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.

Please delete unneeded context from mails when replying.  Doing this
makes it much easier to find your reply in the message, helping ensure
it won't be missed by people scrolling through the irrelevant quoted
material.
-------------- 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/20260812/f21e7382/attachment.sig>


More information about the linux-arm-kernel mailing list