diff options
author | Fabio Baltieri <fabio.baltieri@linaro.org> | 2013-06-25 04:54:47 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-06-25 08:51:26 -0400 |
commit | 97453dfbbb5c26211998ed2639a45750ea5cc543 (patch) | |
tree | 25950e9d3679447caeb3447ea8341ee96d480dd4 /drivers/crypto/ux500/hash | |
parent | fe14ed43ee7d1aec9778388a7a07ab7bfb499736 (diff) |
crypto: ux500: use dmaengine_device_control API
Use dmaengine_device_control inline function instead of going through the
structures manually.
Signed-off-by: Fabio Baltieri <fabio.baltieri@linaro.org>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/crypto/ux500/hash')
-rw-r--r-- | drivers/crypto/ux500/hash/hash_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/ux500/hash/hash_core.c b/drivers/crypto/ux500/hash/hash_core.c index cffe26ea716f..58d6fcfe2d0f 100644 --- a/drivers/crypto/ux500/hash/hash_core.c +++ b/drivers/crypto/ux500/hash/hash_core.c | |||
@@ -203,7 +203,7 @@ static void hash_dma_done(struct hash_ctx *ctx) | |||
203 | struct dma_chan *chan; | 203 | struct dma_chan *chan; |
204 | 204 | ||
205 | chan = ctx->device->dma.chan_mem2hash; | 205 | chan = ctx->device->dma.chan_mem2hash; |
206 | chan->device->device_control(chan, DMA_TERMINATE_ALL, 0); | 206 | dmaengine_device_control(chan, DMA_TERMINATE_ALL, 0); |
207 | dma_unmap_sg(chan->device->dev, ctx->device->dma.sg, | 207 | dma_unmap_sg(chan->device->dev, ctx->device->dma.sg, |
208 | ctx->device->dma.sg_len, DMA_TO_DEVICE); | 208 | ctx->device->dma.sg_len, DMA_TO_DEVICE); |
209 | 209 | ||