ASoC: rt5665: add missed regulator_bulk_disable
authorZhang Shurong <zhang_shurong@foxmail.com>
Tue, 1 Aug 2023 15:59:11 +0000 (23:59 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 7 Aug 2023 13:32:14 +0000 (14:32 +0100)
The driver forgets to call regulator_bulk_disable()

Add the missed call to fix it.

Fixes: 33ada14a26c8 ("ASoC: add rt5665 codec driver")
Signed-off-by: Zhang Shurong <zhang_shurong@foxmail.com>
Link: https://lore.kernel.org/r/tencent_A560D01E3E0A00A85A12F137E4B5205B3508@qq.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5665.c

index 83c367af91dad4697dbc0ff3499a26dd739f8220..525713c33d71622953f66233cb6af533085bac72 100644 (file)
@@ -4472,6 +4472,8 @@ static void rt5665_remove(struct snd_soc_component *component)
        struct rt5665_priv *rt5665 = snd_soc_component_get_drvdata(component);
 
        regmap_write(rt5665->regmap, RT5665_RESET, 0);
+
+       regulator_bulk_disable(ARRAY_SIZE(rt5665->supplies), rt5665->supplies);
 }
 
 #ifdef CONFIG_PM