summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authoramd <amd@sosxen2.amd.com>2017-09-05 17:08:14 -0500
committerHerbert Xu <herbert@gondor.apana.org.au>2017-10-07 12:10:30 +0800
commitc07f7c29d1c6a7c62b66299d50acd6ffd171f612 (patch)
tree618dce7307aec8be2e372d08ffdb38ba999d7b2f /drivers
parent01c4c097bcdbf3c3ea288d22f00f469ac139b7bc (diff)
crypto:ccp - invoke the DMA callback in a standard way
Use the provided mechanism in dmaengine.h to invoke the completion callback. Signed-off-by: Gary R Hook <gary.hook@amd.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/crypto/ccp/ccp-dmaengine.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/crypto/ccp/ccp-dmaengine.c b/drivers/crypto/ccp/ccp-dmaengine.c
index 64f4b571202a..8b9da58459df 100644
--- a/drivers/crypto/ccp/ccp-dmaengine.c
+++ b/drivers/crypto/ccp/ccp-dmaengine.c
@@ -231,9 +231,7 @@ static struct ccp_dma_desc *ccp_handle_active_desc(struct ccp_dma_chan *chan,
spin_unlock_irqrestore(&chan->lock, flags);
if (tx_desc) {
- if (tx_desc->callback &&
- (tx_desc->flags & DMA_PREP_INTERRUPT))
- tx_desc->callback(tx_desc->callback_param);
+ dmaengine_desc_get_callback_invoke(tx_desc, NULL);
dma_run_dependencies(tx_desc);
}