]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: cs35l35: Disable regulators on driver removal
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Thu, 4 Apr 2019 16:27:20 +0000 (17:27 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 5 Apr 2019 02:23:13 +0000 (09:23 +0700)
commitddea23a6677bb7dca3127522dafe9182e6dea99a
tree082a263e9518af14944f3a7574adba024ee6d1ea
parent182344bb84adc5bd3d49f280ece4d4b31aeefa5b
ASoC: cs35l35: Disable regulators on driver removal

The chips main power supplies VA and VP are enabled during probe but
then never disabled, this will cause warnings from the regulator
framework on driver removal. Fix this by adding a remove callback and
disabling the supplies, whilst doing so follow best practice and put the
chip back into reset as well.

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs35l35.c