summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhang Shurong <zhang_shurong@foxmail.com>2023-08-01 23:59:11 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-08-23 17:32:50 +0200
commit5de8e85b6734250c61017c6812a79e618922425b (patch)
tree579b453f9bf69887accf0aa4090d734b71dcf1b5
parentf163dc22e339174cd8fe26736289260b4e246216 (diff)
downloadlinux-5de8e85b6734250c61017c6812a79e618922425b.tar.gz
linux-5de8e85b6734250c61017c6812a79e618922425b.tar.bz2
linux-5de8e85b6734250c61017c6812a79e618922425b.zip
ASoC: rt5665: add missed regulator_bulk_disable
[ Upstream commit c163108e706909570f8aa9aa5bcf6806e2b4c98c ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
-rw-r--r--sound/soc/codecs/rt5665.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/codecs/rt5665.c b/sound/soc/codecs/rt5665.c
index 17afaef85c77..382bdbcf7b59 100644
--- a/sound/soc/codecs/rt5665.c
+++ b/sound/soc/codecs/rt5665.c
@@ -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