]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: rsnd: call free_irq() both DMA/PIO mode
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Thu, 10 Aug 2017 00:07:00 +0000 (00:07 +0000)
committerMark Brown <broonie@kernel.org>
Thu, 10 Aug 2017 15:06:56 +0000 (16:06 +0100)
commitea8da792f0eaff5e9f743c720270bf0294f4d340
treef5f0693e75cc46f8f25ddc311c9077f18c043d90
parent9c46f86a47c17a728a9eaa46de67e3466b24a838
ASoC: rsnd: call free_irq() both DMA/PIO mode

commit 549c87012182 ("ASoC: rsnd: don't use devm_request_irq() for SSI")
exchanged devm_request_irq() to request_irq() for SSI, because SSI will
fallback into PIO mode if DMA doesn't work.
But, because of it, PIO mode needed to call free_irq() when removing,
not only DMA mode.
This patch call free_irq() both PIO/DMA. Otherwise, rsnd IRQ handler
will be increased if user tried many unbind/bind.

Fixes: 549c87012182 ("ASoC: rsnd: don't use devm_request_irq() for SSI")
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sh/rcar/ssi.c