ASoC: codecs: Fix an error handling path in (rx|tx|va)_macro_probe()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 3 Apr 2022 06:58:27 +0000 (08:58 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 8 Apr 2022 14:43:55 +0000 (15:43 +0100)
commitddfd534528146660de75ee84d6db10f10e778f95
treea94f62db89c83ecb7e30d557a1e59dc15a2aa33f
parentaa70527d36d74db80a1c40e792f5320ab56e6eae
ASoC: codecs: Fix an error handling path in (rx|tx|va)_macro_probe()

After a successful lpass_macro_pds_init() call, lpass_macro_pds_exit() must
be called.

Add the missing call in the error handling path of the probe function and
use it.

Fixes: 9e3d83c52844 ("ASoC: codecs: Add power domains support in digital macro codecs")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/5b5a015a9b1dc8011c6a4053fa49da1f2531e47c.1648969065.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/lpass-rx-macro.c
sound/soc/codecs/lpass-tx-macro.c
sound/soc/codecs/lpass-va-macro.c