diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2014-08-19 11:48:06 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-08-19 12:40:11 -0400 |
commit | 5d0ecb0e7dd53e61e034bac8508d7601b04e679d (patch) | |
tree | a11d8469ed66c2766cae425688152b3222438d8f /sound | |
parent | 6c7d1dfca999f58c65ed7b10c2f0945dd92db103 (diff) |
ASoC: sh: Don't opencode DMAengine API calls
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>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/sh/siu_pcm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/sh/siu_pcm.c b/sound/soc/sh/siu_pcm.c index 488f9becb44f..32eb6da2d2bd 100644 --- a/sound/soc/sh/siu_pcm.c +++ b/sound/soc/sh/siu_pcm.c | |||
@@ -139,7 +139,7 @@ static int siu_pcm_wr_set(struct siu_port *port_info, | |||
139 | 139 | ||
140 | desc->callback = siu_dma_tx_complete; | 140 | desc->callback = siu_dma_tx_complete; |
141 | desc->callback_param = siu_stream; | 141 | desc->callback_param = siu_stream; |
142 | cookie = desc->tx_submit(desc); | 142 | cookie = dmaengine_submit(desc); |
143 | if (cookie < 0) { | 143 | if (cookie < 0) { |
144 | dev_err(dev, "Failed to submit a dma transfer\n"); | 144 | dev_err(dev, "Failed to submit a dma transfer\n"); |
145 | return cookie; | 145 | return cookie; |
@@ -189,7 +189,7 @@ static int siu_pcm_rd_set(struct siu_port *port_info, | |||
189 | 189 | ||
190 | desc->callback = siu_dma_tx_complete; | 190 | desc->callback = siu_dma_tx_complete; |
191 | desc->callback_param = siu_stream; | 191 | desc->callback_param = siu_stream; |
192 | cookie = desc->tx_submit(desc); | 192 | cookie = dmaengine_submit(desc); |
193 | if (cookie < 0) { | 193 | if (cookie < 0) { |
194 | dev_err(dev, "Failed to submit dma descriptor\n"); | 194 | dev_err(dev, "Failed to submit dma descriptor\n"); |
195 | return cookie; | 195 | return cookie; |