]> 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)
commita8383992d5f4c5630083ff1a1623a0bcad60cb3a
tree082a263e9518af14944f3a7574adba024ee6d1ea
parentfbf0579570cc938ae58b11ab2775587f79c4ec74
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