spi: Use reinit_completion at appropriate places
Calling init_completion() once is enough. For the rest of the iterations, call reinit_completion() instead. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
@@ -741,7 +741,7 @@ static int spi_imx_transfer(struct spi_device *spi,
|
||||
spi_imx->count = transfer->len;
|
||||
spi_imx->txfifo = 0;
|
||||
|
||||
init_completion(&spi_imx->xfer_done);
|
||||
reinit_completion(&spi_imx->xfer_done);
|
||||
|
||||
spi_imx_push(spi_imx);
|
||||
|
||||
|
Reference in New Issue
Block a user