diff options
author | Axel Lin <axel.lin@ingics.com> | 2014-02-09 04:06:04 +0100 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-02-10 13:32:16 +0100 |
commit | aa0fe82629f19efba5c870bc9be089a4f8056a75 (patch) | |
tree | d0d0ea5fb465f35f8fe335914dfbeb23d53c1cb8 /drivers/spi/spi-bcm63xx.c | |
parent | Linus 3.14-rc1 (diff) | |
download | linux-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-bcm63xx.c')
-rw-r--r-- | drivers/spi/spi-bcm63xx.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/spi/spi-bcm63xx.c b/drivers/spi/spi-bcm63xx.c index 77286aef2adf..161c7910a818 100644 --- a/drivers/spi/spi-bcm63xx.c +++ b/drivers/spi/spi-bcm63xx.c @@ -169,7 +169,7 @@ static int bcm63xx_txrx_bufs(struct spi_device *spi, struct spi_transfer *first, transfer_list); } - init_completion(&bs->done); + reinit_completion(&bs->done); /* Fill in the Message control register */ msg_ctl = (len << SPI_BYTE_CNT_SHIFT); @@ -353,6 +353,7 @@ static int bcm63xx_spi_probe(struct platform_device *pdev) } bs = spi_master_get_devdata(master); + init_completion(&bs->done); platform_set_drvdata(pdev, master); bs->pdev = pdev; |