Commit 151ded73 authored by Gilad Ben-Yossef's avatar Gilad Ben-Yossef Committed by Herbert Xu

crypto: ccree - use proper callback completion api

Use proper hash callback completion API instead of open coding it.
Signed-off-by: default avatarGilad Ben-Yossef <gilad@benyossef.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent a108f931
...@@ -286,7 +286,7 @@ static void cc_update_complete(struct device *dev, void *cc_req, int err) ...@@ -286,7 +286,7 @@ static void cc_update_complete(struct device *dev, void *cc_req, int err)
cc_unmap_req(dev, state, ctx); cc_unmap_req(dev, state, ctx);
} }
req->base.complete(&req->base, err); ahash_request_complete(req, err);
} }
static void cc_digest_complete(struct device *dev, void *cc_req, int err) static void cc_digest_complete(struct device *dev, void *cc_req, int err)
...@@ -306,7 +306,7 @@ static void cc_digest_complete(struct device *dev, void *cc_req, int err) ...@@ -306,7 +306,7 @@ static void cc_digest_complete(struct device *dev, void *cc_req, int err)
cc_unmap_req(dev, state, ctx); cc_unmap_req(dev, state, ctx);
} }
req->base.complete(&req->base, err); ahash_request_complete(req, err);
} }
static void cc_hash_complete(struct device *dev, void *cc_req, int err) static void cc_hash_complete(struct device *dev, void *cc_req, int err)
...@@ -326,7 +326,7 @@ static void cc_hash_complete(struct device *dev, void *cc_req, int err) ...@@ -326,7 +326,7 @@ static void cc_hash_complete(struct device *dev, void *cc_req, int err)
cc_unmap_req(dev, state, ctx); cc_unmap_req(dev, state, ctx);
} }
req->base.complete(&req->base, err); ahash_request_complete(req, err);
} }
static int cc_fin_result(struct cc_hw_desc *desc, struct ahash_request *req, static int cc_fin_result(struct cc_hw_desc *desc, struct ahash_request *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