linux_dsm_epyc7002/sound/soc/mediatek/common
Christophe JAILLET d4d3cd4c76 ASoC: mediatek: mtk-btcvsd: Fix an error handling path in 'mtk_btcvsd_snd_probe()'
[ Upstream commit b6052c3c7a78f5e2b9756c92ef77c0b56435f107 ]

If an error occurs after a successful 'of_iomap()' call, it must be undone
by a corresponding 'iounmap()' call, as already done in the remove
function.

While at it, remove the useless initialization of 'ret' at the beginning of
the function.

Fixes: 4bd8597dc3 ("ASoC: mediatek: add btcvsd driver")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/0c2ba562c3364e61bfbd5b3013a99dfa0d9045d7.1622989685.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-07-14 16:56:43 +02:00
..
Makefile ASoC: Add missing newline at end of file 2019-06-17 16:18:13 +01:00
mtk-afe-fe-dai.c ASoC: mediatek: use asoc_substream_to_rtd() 2020-07-23 19:07:32 +01:00
mtk-afe-fe-dai.h ASoC: mediatek: move .suspend/.resume to component 2020-01-21 17:03:54 +00:00
mtk-afe-platform-driver.c ASoC: mediatek: use asoc_substream_to_rtd() 2020-07-23 19:07:32 +01:00
mtk-afe-platform-driver.h ASoC: mediatek: Use managed buffer allocation 2019-12-12 15:41:13 +00:00
mtk-base-afe.h ASoC: mediatek: common: add some helpers to control mtk_memif 2019-12-09 18:33:25 +00:00
mtk-btcvsd.c ASoC: mediatek: mtk-btcvsd: Fix an error handling path in 'mtk_btcvsd_snd_probe()' 2021-07-14 16:56:43 +02:00