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)
commit213691c7e873206742b39751895d15b41a02b3d1
treef5f0693e75cc46f8f25ddc311c9077f18c043d90
parent880c15b1e66345cdd1bbd8fc4c9c2119c6eb2da3
ASoC: rsnd: call free_irq() both DMA/PIO mode

commit 701172dca15b ("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: 701172dca15b ("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