OSDN Git Service

ASoC: cs42l42: Disable regulators if probe fails
authorLucas Tanure <tanureal@opensource.cirrus.com>
Sat, 6 Mar 2021 18:55:45 +0000 (18:55 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 10 Mar 2021 13:14:23 +0000 (13:14 +0000)
commit1abca8e1c77bd9c5f5c0bed21c5b075b6852a178
tree10b2322855d5780b05d4aa9304edfc89fd1bb7dc
parent2b869e0ea598263e0fd60872430899fa0660b2fa
ASoC: cs42l42: Disable regulators if probe fails

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

Signed-off-by: Lucas Tanure <tanureal@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20210306185553.62053-8-tanureal@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs42l42.c