提交 8a2ff426 编写于 作者: K Kuninori Morimoto 提交者: Mark Brown

ASoC: rsnd: remove un-needed parameter from rsnd_dma_quit()

priv is not used on rsnd_dma_quit()
Signed-off-by: NKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 9c706ab2
...@@ -358,7 +358,7 @@ int rsnd_dma_init(struct rsnd_priv *priv, struct rsnd_dma *dma, int id) ...@@ -358,7 +358,7 @@ int rsnd_dma_init(struct rsnd_priv *priv, struct rsnd_dma *dma, int id)
return 0; return 0;
rsnd_dma_init_err: rsnd_dma_init_err:
rsnd_dma_quit(priv, dma); rsnd_dma_quit(dma);
rsnd_dma_channel_err: rsnd_dma_channel_err:
/* /*
...@@ -370,8 +370,7 @@ int rsnd_dma_init(struct rsnd_priv *priv, struct rsnd_dma *dma, int id) ...@@ -370,8 +370,7 @@ int rsnd_dma_init(struct rsnd_priv *priv, struct rsnd_dma *dma, int id)
return -EAGAIN; return -EAGAIN;
} }
void rsnd_dma_quit(struct rsnd_priv *priv, void rsnd_dma_quit(struct rsnd_dma *dma)
struct rsnd_dma *dma)
{ {
if (dma->chan) if (dma->chan)
dma_release_channel(dma->chan); dma_release_channel(dma->chan);
......
...@@ -179,8 +179,7 @@ struct rsnd_dma { ...@@ -179,8 +179,7 @@ struct rsnd_dma {
void rsnd_dma_start(struct rsnd_dma *dma); void rsnd_dma_start(struct rsnd_dma *dma);
void rsnd_dma_stop(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); int rsnd_dma_init(struct rsnd_priv *priv, struct rsnd_dma *dma, int id);
void rsnd_dma_quit(struct rsnd_priv *priv, void rsnd_dma_quit(struct rsnd_dma *dma);
struct rsnd_dma *dma);
/* /*
......
...@@ -730,7 +730,7 @@ static int rsnd_src_probe_gen2(struct rsnd_mod *mod, ...@@ -730,7 +730,7 @@ static int rsnd_src_probe_gen2(struct rsnd_mod *mod,
static int rsnd_src_remove_gen2(struct rsnd_mod *mod, static int rsnd_src_remove_gen2(struct rsnd_mod *mod,
struct rsnd_priv *priv) struct rsnd_priv *priv)
{ {
rsnd_dma_quit(priv, rsnd_mod_to_dma(mod)); rsnd_dma_quit(rsnd_mod_to_dma(mod));
return 0; return 0;
} }
......
...@@ -499,7 +499,7 @@ static int rsnd_ssi_dma_remove(struct rsnd_mod *mod, ...@@ -499,7 +499,7 @@ static int rsnd_ssi_dma_remove(struct rsnd_mod *mod,
struct device *dev = rsnd_priv_to_dev(priv); struct device *dev = rsnd_priv_to_dev(priv);
int irq = ssi->info->irq; 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 */ /* PIO will request IRQ again */
devm_free_irq(dev, irq, ssi); devm_free_irq(dev, irq, ssi);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册