ASoC: wm5102: Free compressed IRQ in CODEC remove
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Fri, 15 Apr 2016 12:11:57 +0000 (13:11 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 15 Apr 2016 17:01:02 +0000 (18:01 +0100)
We request one of the DSP IRQs during CODEC probe, as such we should
free it during CODEC remove, this patch does so.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm5102.c

index 59fd3e8bf89929a4329f88c69d2f03e2102da1c4..1bae17ee88175ed2556cebe4bf3f554bf721acab 100644 (file)
@@ -1955,11 +1955,14 @@ err_adsp2_codec_probe:
 static int wm5102_codec_remove(struct snd_soc_codec *codec)
 {
        struct wm5102_priv *priv = snd_soc_codec_get_drvdata(codec);
+       struct arizona *arizona = priv->core.arizona;
 
        wm_adsp2_codec_remove(&priv->core.adsp[0], codec);
 
        priv->core.arizona->dapm = NULL;
 
+       arizona_free_irq(arizona, ARIZONA_IRQ_DSP_IRQ1, priv);
+
        arizona_free_spk(codec);
 
        return 0;