ASoC: rsnd: remove un-needed parameter from rsnd_dma_quit()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Fri, 20 Feb 2015 10:24:06 +0000 (10:24 +0000)
committerMark Brown <broonie@kernel.org>
Sat, 7 Mar 2015 15:04:29 +0000 (15:04 +0000)
priv is not used on rsnd_dma_quit()

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sh/rcar/core.c
sound/soc/sh/rcar/rsnd.h
sound/soc/sh/rcar/src.c
sound/soc/sh/rcar/ssi.c

index 1da94bf730d2b743d00e0037495061524670ae64..7db686d0cbd8053215e9cd801ac0800679fc4920 100644 (file)
@@ -358,7 +358,7 @@ int rsnd_dma_init(struct rsnd_priv *priv, struct rsnd_dma *dma, int id)
        return 0;
 
 rsnd_dma_init_err:
-       rsnd_dma_quit(priv, dma);
+       rsnd_dma_quit(dma);
 rsnd_dma_channel_err:
 
        /*
@@ -370,8 +370,7 @@ rsnd_dma_channel_err:
        return -EAGAIN;
 }
 
-void  rsnd_dma_quit(struct rsnd_priv *priv,
-                   struct rsnd_dma *dma)
+void  rsnd_dma_quit(struct rsnd_dma *dma)
 {
        if (dma->chan)
                dma_release_channel(dma->chan);
index cb12861a1f3c6bfb18edea996cb1dd1061c6e8b3..6ee97e7f9948987a8fae56a8992c395f1e31bbcb 100644 (file)
@@ -179,8 +179,7 @@ struct rsnd_dma {
 void rsnd_dma_start(struct rsnd_dma *dma);
 void rsnd_dma_stop(struct rsnd_dma *dma);
 int rsnd_dma_init(struct rsnd_priv *priv, struct rsnd_dma *dma, int id);
-void  rsnd_dma_quit(struct rsnd_priv *priv,
-                   struct rsnd_dma *dma);
+void  rsnd_dma_quit(struct rsnd_dma *dma);
 
 
 /*
index f12c8b3aa475f66abddca44b232c83dd9466ef93..e2792056ce24e0e28f67cc125f4b7b8e6d464d68 100644 (file)
@@ -730,7 +730,7 @@ rsnd_src_probe_gen2_fail:
 static int rsnd_src_remove_gen2(struct rsnd_mod *mod,
                                struct rsnd_priv *priv)
 {
-       rsnd_dma_quit(priv, rsnd_mod_to_dma(mod));
+       rsnd_dma_quit(rsnd_mod_to_dma(mod));
 
        return 0;
 }
index fcc77ea369b9ff2d1fd625ab7373b2b8834fcced..a0d902ad5985eacb66fc834b1e79f8bf3dac631a 100644 (file)
@@ -499,7 +499,7 @@ static int rsnd_ssi_dma_remove(struct rsnd_mod *mod,
        struct device *dev = rsnd_priv_to_dev(priv);
        int irq = ssi->info->irq;
 
-       rsnd_dma_quit(priv, rsnd_mod_to_dma(mod));
+       rsnd_dma_quit(rsnd_mod_to_dma(mod));
 
        /* PIO will request IRQ again */
        devm_free_irq(dev, irq, ssi);