]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: stm32: sai: Add missing cleanup
authorJulia Lawall <Julia.Lawall@inria.fr>
Sun, 5 Apr 2020 15:03:48 +0000 (17:03 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Apr 2020 08:50:25 +0000 (10:50 +0200)
commitd227abd64a542b330395e336765101d561d22a8f
tree1417f536e32fb002c5cbd6ba726b617553d82bad
parent65e5afd0e25dbce7111b2a1ae732fefc329a467f
ASoC: stm32: sai: Add missing cleanup

[ Upstream commit 649cf97043c21508c3195741c1ecffc03453ab70 ]

The commit 68caebec3418 ("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 68caebec3418 ("ASoC: stm32: sai: manage rebind issue")
Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
Acked-by: Olivier Moysan <olivier.moysan@st.com>
Link: https://lore.kernel.org/r/1586099028-5104-1-git-send-email-Julia.Lawall@inria.fr
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/stm/stm32_sai_sub.c