Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ASoC: stm32: sai: Add missing cleanup
The commit 0d6defc ("ASoC: stm32: sai: manage rebind issue") converts some function calls to their non-devm equivalents. The appropriate cleanup code was added to the remove function, but not to the probe function. Add a call to snd_dmaengine_pcm_unregister to compensate for the call to snd_dmaengine_pcm_register in case of subsequent failure. Fixes: commit 0d6defc ("ASoC: stm32: sai: manage rebind issue") Signed-off-by: Julia Lawall <[email protected]> Acked-by: Olivier Moysan <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
- Loading branch information