]> git.baikalelectronics.ru Git - kernel.git/commit
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:55:30 +0000 (13:55 +0100)
commit5b167774b2d7ea4dd5014f69bc60806a547efa32
tree3326f9af56ecd722e7db1ee642a0c30eb8a21541
parent07cff0b92b767a577f141f98e026171f73ce1dfa
ASoC: adau7118: don't disable regulators on device unbind

[ Upstream commit 3bbde314064002e39cc54662c96593cde2187125 ]

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: 1d9a84e4aa4dc ("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