summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-imx.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2014-02-09 04:06:04 +0100
committerMark Brown <broonie@linaro.org>2014-02-10 13:32:16 +0100
commitaa0fe82629f19efba5c870bc9be089a4f8056a75 (patch)
treed0d0ea5fb465f35f8fe335914dfbeb23d53c1cb8 /drivers/spi/spi-imx.c
parentLinus 3.14-rc1 (diff)
downloadlinux-aa0fe82629f19efba5c870bc9be089a4f8056a75.tar.xz
linux-aa0fe82629f19efba5c870bc9be089a4f8056a75.zip
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 a5474ef9d2a0..6bb0b693c98c 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);