Răsfoiți Sursa

crypto: mxs-dcp - fix type of ret for wait_for_completion_timeout

return type of wait_for_completion_timeout is unsigned long not int, this
patch changes the type of ret from int to unsigned long.

Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Nicholas Mc Guire 10 ani în urmă
părinte
comite
dd0fff8db6
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      drivers/crypto/mxs-dcp.c

+ 1 - 1
drivers/crypto/mxs-dcp.c

@@ -153,7 +153,7 @@ static int mxs_dcp_start_dma(struct dcp_async_ctx *actx)
 	struct dcp *sdcp = global_sdcp;
 	struct dcp *sdcp = global_sdcp;
 	const int chan = actx->chan;
 	const int chan = actx->chan;
 	uint32_t stat;
 	uint32_t stat;
-	int ret;
+	unsigned long ret;
 	struct dcp_dma_desc *desc = &sdcp->coh->desc[actx->chan];
 	struct dcp_dma_desc *desc = &sdcp->coh->desc[actx->chan];
 
 
 	dma_addr_t desc_phys = dma_map_single(sdcp->dev, desc, sizeof(*desc),
 	dma_addr_t desc_phys = dma_map_single(sdcp->dev, desc, sizeof(*desc),