]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
ASoC: rt5665: add missed regulator_bulk_disable
authorZhang Shurong <zhang_shurong@foxmail.com>
Tue, 1 Aug 2023 15:59:11 +0000 (23:59 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Aug 2023 14:35:13 +0000 (16:35 +0200)
commit c163108e706909570f8aa9aa5bcf6806e2b4c98c upstream.

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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/codecs/rt5665.c

index f05d362c4e23b859ccc823502751a91d9417c023..d96fa61a4bd7c3af1f64e5872de95ecc764495db 100644 (file)
@@ -4957,6 +4957,8 @@ static void rt5665_i2c_shutdown(struct i2c_client *client)
        struct rt5665_priv *rt5665 = i2c_get_clientdata(client);
 
        regmap_write(rt5665->regmap, RT5665_RESET, 0);
+
+       regulator_bulk_disable(ARRAY_SIZE(rt5665->supplies), rt5665->supplies);
 }
 
 #ifdef CONFIG_OF