Skip to content
Commit f4689454 authored by Julia Lawall's avatar Julia Lawall Committed by Paul Gortmaker
Browse files

ASoC: stm32: sai: Add missing cleanup



commit 7506baee upstream.

The commit 0d6defc7 ("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 0d6defc7 ("ASoC: stm32: sai: manage rebind issue")
Signed-off-by: default avatarJulia Lawall <Julia.Lawall@inria.fr>

Acked-by: default avatarOlivier Moysan <olivier.moysan@st.com>
Link: https://lore.kernel.org/r/1586099028-5104-1-git-send-email-Julia.Lawall@inria.fr


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
Signed-off-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
parent 80d2bb1e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment