Re: [PATCHv2] ASoC: xilinx: formatter_pcm: use more devm in probe
Vincenzo Frascino <[email protected]>
| Newsgroups | gmane.linux.sound,gmane.linux.ports.arm.kernel,gmane.linux.kernel |
|---|---|
| Message-ID | <[email protected]> |
On 11/08/2026 19: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. > > Simplify the probe error paths by returning directly instead of > jumping to clk_err, and use devm_snd_soc_register_component() return > value directly. Also remove error message from ioremap as it throws one > itself. Same with devm_request_irq(). > > Assisted-by: opencode:deepseek-v4-flash-free > Signed-off-by: Rosen Penev <[email protected]> Reviewed-by: Vincenzo Frascino <[email protected]> [...]