Commit 7bf3778a authored by Lucas Tanure's avatar Lucas Tanure Committed by Zheng Zengkai
Browse files

ASoC: cs42l42: Disable regulators if probe fails

stable inclusion
from stable-5.10.80
commit ef9d007a91f556e9b5b46477dfa27cc91d5baca9
bugzilla: 185821 https://gitee.com/openeuler/kernel/issues/I4L7CG

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=ef9d007a91f556e9b5b46477dfa27cc91d5baca9



--------------------------------

[ Upstream commit 1abca8e1 ]

In case of cs42l42_i2c_probe() fail, the regulators were left enabled.

Signed-off-by: default avatarLucas Tanure <tanureal@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20210306185553.62053-8-tanureal@opensource.cirrus.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarChen Jun <chenjun102@huawei.com>
Reviewed-by: default avatarWeilong Chen <chenweilong@huawei.com>
Acked-by: default avatarWeilong Chen <chenweilong@huawei.com>

Signed-off-by: default avatarChen Jun <chenjun102@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent 9f3c5467
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment