summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-imx.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2014-02-09 11:06:04 +0800
committerMark Brown <broonie@linaro.org>2014-02-10 12:32:16 +0000
commitaa0fe82629f19efba5c870bc9be089a4f8056a75 (patch)
treed0d0ea5fb465f35f8fe335914dfbeb23d53c1cb8 /drivers/spi/spi-imx.c
parent38dbfb59d1175ef458d006556061adeaa8751b72 (diff)
downloadop-kernel-dev-aa0fe82629f19efba5c870bc9be089a4f8056a75.zip
op-kernel-dev-aa0fe82629f19efba5c870bc9be089a4f8056a75.tar.gz
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>
Diffstat (limited to 'drivers/spi/spi-imx.c')
-rw-r--r--drivers/spi/spi-imx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-imx.c b/drivers/spi/spi-imx.c
index a5474ef..6bb0b69 100644
--- a/drivers/spi/spi-imx.c
+++ b/drivers/spi/spi-imx.c
@@ -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);
OpenPOWER on IntegriCloud