ASoC: stm32: spdifrx: fix regmap status check
authorOlivier Moysan <olivier.moysan@st.com>
Wed, 18 Mar 2020 14:41:23 +0000 (15:41 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 2 May 2020 06:49:01 +0000 (08:49 +0200)
commit4e7fb753e80305dd3efa9f31072f17b8c8612713
treec590b19653fbc90bfc8f2f2e6ce399c23d99af02
parent4104faaeeda0e23a169c50e43f309ff7435087b1
ASoC: stm32: spdifrx: fix regmap status check

commit a168dae5ea14283e8992d5282237bb0d6a3e1c06 upstream.

Release resources when exiting on error.

Fixes: 1a5c0b28fc56 ("ASoC: stm32: spdifrx: manage identification registers")

Signed-off-by: Olivier Moysan <olivier.moysan@st.com>
Link: https://lore.kernel.org/r/20200318144125.9163-2-olivier.moysan@st.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/stm/stm32_spdifrx.c