}
 
 int safexcel_invalidate_cache(struct crypto_async_request *async,
-                             struct safexcel_context *ctx,
                              struct safexcel_crypto_priv *priv,
                              dma_addr_t ctxr_dma, int ring,
                              struct safexcel_request *request)
 
                                  struct crypto_async_request *req,
                                  int result_sz);
 int safexcel_invalidate_cache(struct crypto_async_request *async,
-                             struct safexcel_context *ctx,
                              struct safexcel_crypto_priv *priv,
                              dma_addr_t ctxr_dma, int ring,
                              struct safexcel_request *request);
 
        struct safexcel_crypto_priv *priv = ctx->priv;
        int ret;
 
-       ret = safexcel_invalidate_cache(async, &ctx->base, priv,
+       ret = safexcel_invalidate_cache(async, priv,
                                        ctx->base.ctxr_dma, ring, request);
        if (unlikely(ret))
                return ret;
 
        struct safexcel_ahash_ctx *ctx = crypto_ahash_ctx(crypto_ahash_reqtfm(areq));
        int ret;
 
-       ret = safexcel_invalidate_cache(async, &ctx->base, ctx->priv,
+       ret = safexcel_invalidate_cache(async, ctx->priv,
                                        ctx->base.ctxr_dma, ring, request);
        if (unlikely(ret))
                return ret;