Skip to content

Commit

Permalink
ASoC: sh: Don't opencode DMAengine API calls
Browse files Browse the repository at this point in the history
Use the proper wrapper functions instead of directly calling the DMAengine
callback functions.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
  • Loading branch information
Lars-Peter Clausen authored and Mark Brown committed Aug 19, 2014
1 parent 6c7d1df commit 5d0ecb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sound/soc/sh/siu_pcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ static int siu_pcm_wr_set(struct siu_port *port_info,

desc->callback = siu_dma_tx_complete;
desc->callback_param = siu_stream;
cookie = desc->tx_submit(desc);
cookie = dmaengine_submit(desc);
if (cookie < 0) {
dev_err(dev, "Failed to submit a dma transfer\n");
return cookie;
Expand Down Expand Up @@ -189,7 +189,7 @@ static int siu_pcm_rd_set(struct siu_port *port_info,

desc->callback = siu_dma_tx_complete;
desc->callback_param = siu_stream;
cookie = desc->tx_submit(desc);
cookie = dmaengine_submit(desc);
if (cookie < 0) {
dev_err(dev, "Failed to submit dma descriptor\n");
return cookie;
Expand Down

0 comments on commit 5d0ecb0

Please sign in to comment.