ASoC: adau7118: don't disable regulators on device unbind
authorNuno Sá <nuno.sa@analog.com>
Fri, 24 Feb 2023 10:45:51 +0000 (11:45 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 11 Mar 2023 12:57:31 +0000 (13:57 +0100)
commit35b855381898fa773841e2d2debffaeed1a8bb50
tree7577090573a3ba83d1c325e2acd036accc31b93e
parent3e7d0968203d668af6036b9f9199c7b62c8a3581
ASoC: adau7118: don't disable regulators on device unbind

[ Upstream commit b5bfa7277ee7d944421e0ef193586c6e34d7492c ]

The regulators are supposed to be controlled through the
set_bias_level() component callback. Moreover, the regulators are not
enabled during probe and so, this would lead to a regulator unbalanced
use count.

Fixes: ca514c0f12b02 ("ASOC: Add ADAU7118 8 Channel PDM-to-I2S/TDM Converter driver")
Signed-off-by: Nuno Sá <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20230224104551.1139981-1-nuno.sa@analog.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/codecs/adau7118.c