ASoC: rsnd: don't call free_irq() on Parent SSI
[sfrench/cifs-2.6.git] / sound / soc / sh / rcar / ssi.c
index 135c5669f7963bd228c9a1187bc6f5dfd13bc04e..03867353d10cb701551bfba553078c043a71b231 100644 (file)
@@ -709,6 +709,11 @@ static int rsnd_ssi_dma_remove(struct rsnd_mod *mod,
                               struct rsnd_priv *priv)
 {
        struct rsnd_ssi *ssi = rsnd_mod_to_ssi(mod);
+       struct rsnd_mod *ssi_parent_mod = rsnd_io_to_mod_ssip(io);
+
+       /* Do nothing for SSI parent mod */
+       if (ssi_parent_mod == mod)
+               return 0;
 
        /* PIO will request IRQ again */
        free_irq(ssi->irq, mod);