ASoC: rt5645: Fix the error handling of rt5645_i2c_probe()
authorZheyu Ma <zheyuma97@gmail.com>
Tue, 10 May 2022 15:32:48 +0000 (23:32 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 11 May 2022 16:40:14 +0000 (17:40 +0100)
commit7883c193d7ae1ccc20ee4c06d2a1fea40074e454
treec2a0a2ee2925d868fe942ec67568a96eb8e37fd4
parentcf7250e95d309ae518918613fb904a4565ffc85d
ASoC: rt5645: Fix the error handling of rt5645_i2c_probe()

After enabling the regulator, The driver should disable the regulator
when failing at probing.

Signed-off-by: Zheyu Ma <zheyuma97@gmail.com>
Link: https://lore.kernel.org/r/20220510153251.1741210-4-zheyuma97@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5645.c