]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit - sound/soc/codecs/cs35l35.c
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)
commit47c4cc08cb5b34e93ab337b924c5ede77ca3c936
tree082a263e9518af14944f3a7574adba024ee6d1ea
parent86a7b6ffd90095d81d9fa0d8b48955b7c83b2e2f
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