]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: wcd9335: Disable irq on slave ports in the remove function
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Mon, 16 Aug 2021 05:25:28 +0000 (07:25 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 26 Aug 2021 16:42:06 +0000 (17:42 +0100)
commit9cad5d228c2d2a975675b7ae9524fcd359d199ca
treee0b0ac63b43dff6b48b2f57884646b518b833e69
parent5376d7a6b4d47f6117dbb4c4674c5f426404edd5
ASoC: wcd9335: Disable irq on slave ports in the remove function

The probe calls 'wcd9335_setup_irqs()' to enable interrupts on all slave
ports.
This must be undone in the remove function.

Add a 'wcd9335_teardown_irqs()' function that undoes 'wcd9335_setup_irqs()'
function, and call it from the remove function.

Fixes: 8b27f352f489 ("ASoC: wcd9335: add support to wcd9335 codec")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Message-Id: <8f761244d79bd4c098af8a482be9121d3a486d1b.1629091028.git.christophe.jaillet@wanadoo.fr>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wcd9335.c