crypto: ux500: use dmaengine_submit API
authorFabio Baltieri <fabio.baltieri@linaro.org>
Tue, 25 Jun 2013 08:54:49 +0000 (10:54 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 25 Jun 2013 12:51:34 +0000 (14:51 +0200)
Use dmaengine_submit instead of calling desc->tx_submit 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>
drivers/crypto/ux500/cryp/cryp_core.c
drivers/crypto/ux500/hash/hash_core.c

index 19a3a60706fc1c9fbf1e2cf5799d0d6e661f3c1f..0257f6b326426cf25b912972c422e508ab533ae1 100644 (file)
@@ -594,7 +594,7 @@ static int cryp_set_dma_transfer(struct cryp_ctx *ctx,
                return -EFAULT;
        }
 
-       cookie = desc->tx_submit(desc);
+       cookie = dmaengine_submit(desc);
        dma_async_issue_pending(channel);
 
        return 0;
index ba2ed2110664f2ca8e5b8973643af95c880fb675..95490f14ddb8be23702ca85d9e5150546994bbde 100644 (file)
@@ -192,7 +192,7 @@ static int hash_set_dma_transfer(struct hash_ctx *ctx, struct scatterlist *sg,
        desc->callback = hash_dma_callback;
        desc->callback_param = ctx;
 
-       cookie = desc->tx_submit(desc);
+       cookie = dmaengine_submit(desc);
        dma_async_issue_pending(channel);
 
        return 0;