Commit 7d19abdc authored by Herbert Xu's avatar Herbert Xu

crypto: atmel - Use request_complete helpers

Use the request_complete helpers instead of calling the completion
function directly.
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent f27c94aa
...@@ -554,7 +554,7 @@ static inline int atmel_aes_complete(struct atmel_aes_dev *dd, int err) ...@@ -554,7 +554,7 @@ static inline int atmel_aes_complete(struct atmel_aes_dev *dd, int err)
} }
if (dd->is_async) if (dd->is_async)
dd->areq->complete(dd->areq, err); crypto_request_complete(dd->areq, err);
tasklet_schedule(&dd->queue_task); tasklet_schedule(&dd->queue_task);
...@@ -955,7 +955,7 @@ static int atmel_aes_handle_queue(struct atmel_aes_dev *dd, ...@@ -955,7 +955,7 @@ static int atmel_aes_handle_queue(struct atmel_aes_dev *dd,
return ret; return ret;
if (backlog) if (backlog)
backlog->complete(backlog, -EINPROGRESS); crypto_request_complete(backlog, -EINPROGRESS);
ctx = crypto_tfm_ctx(areq->tfm); ctx = crypto_tfm_ctx(areq->tfm);
......
...@@ -292,7 +292,7 @@ static inline int atmel_sha_complete(struct atmel_sha_dev *dd, int err) ...@@ -292,7 +292,7 @@ static inline int atmel_sha_complete(struct atmel_sha_dev *dd, int err)
clk_disable(dd->iclk); clk_disable(dd->iclk);
if ((dd->is_async || dd->force_complete) && req->base.complete) if ((dd->is_async || dd->force_complete) && req->base.complete)
req->base.complete(&req->base, err); ahash_request_complete(req, err);
/* handle new request */ /* handle new request */
tasklet_schedule(&dd->queue_task); tasklet_schedule(&dd->queue_task);
...@@ -1080,7 +1080,7 @@ static int atmel_sha_handle_queue(struct atmel_sha_dev *dd, ...@@ -1080,7 +1080,7 @@ static int atmel_sha_handle_queue(struct atmel_sha_dev *dd,
return ret; return ret;
if (backlog) if (backlog)
backlog->complete(backlog, -EINPROGRESS); crypto_request_complete(backlog, -EINPROGRESS);
ctx = crypto_tfm_ctx(async_req->tfm); ctx = crypto_tfm_ctx(async_req->tfm);
......
...@@ -590,7 +590,7 @@ static void atmel_tdes_finish_req(struct atmel_tdes_dev *dd, int err) ...@@ -590,7 +590,7 @@ static void atmel_tdes_finish_req(struct atmel_tdes_dev *dd, int err)
if (!err && (rctx->mode & TDES_FLAGS_OPMODE_MASK) != TDES_FLAGS_ECB) if (!err && (rctx->mode & TDES_FLAGS_OPMODE_MASK) != TDES_FLAGS_ECB)
atmel_tdes_set_iv_as_last_ciphertext_block(dd); atmel_tdes_set_iv_as_last_ciphertext_block(dd);
req->base.complete(&req->base, err); skcipher_request_complete(req, err);
} }
static int atmel_tdes_handle_queue(struct atmel_tdes_dev *dd, static int atmel_tdes_handle_queue(struct atmel_tdes_dev *dd,
...@@ -619,7 +619,7 @@ static int atmel_tdes_handle_queue(struct atmel_tdes_dev *dd, ...@@ -619,7 +619,7 @@ static int atmel_tdes_handle_queue(struct atmel_tdes_dev *dd,
return ret; return ret;
if (backlog) if (backlog)
backlog->complete(backlog, -EINPROGRESS); crypto_request_complete(backlog, -EINPROGRESS);
req = skcipher_request_cast(async_req); req = skcipher_request_cast(async_req);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment