diff options
Diffstat (limited to 'net/nfc/nci/spi.c')
-rw-r--r-- | net/nfc/nci/spi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/nfc/nci/spi.c b/net/nfc/nci/spi.c index f1d426f10cce..ec250e77763a 100644 --- a/net/nfc/nci/spi.c +++ b/net/nfc/nci/spi.c | |||
@@ -105,7 +105,7 @@ int nci_spi_send(struct nci_spi *nspi, | |||
105 | if (ret != 0 || nspi->acknowledge_mode == NCI_SPI_CRC_DISABLED) | 105 | if (ret != 0 || nspi->acknowledge_mode == NCI_SPI_CRC_DISABLED) |
106 | goto done; | 106 | goto done; |
107 | 107 | ||
108 | init_completion(&nspi->req_completion); | 108 | reinit_completion(&nspi->req_completion); |
109 | completion_rc = wait_for_completion_interruptible_timeout( | 109 | completion_rc = wait_for_completion_interruptible_timeout( |
110 | &nspi->req_completion, | 110 | &nspi->req_completion, |
111 | NCI_SPI_SEND_TIMEOUT); | 111 | NCI_SPI_SEND_TIMEOUT); |
@@ -145,6 +145,7 @@ struct nci_spi *nci_spi_allocate_spi(struct spi_device *spi, | |||
145 | 145 | ||
146 | nspi->spi = spi; | 146 | nspi->spi = spi; |
147 | nspi->ndev = ndev; | 147 | nspi->ndev = ndev; |
148 | init_completion(&nspi->req_completion); | ||
148 | 149 | ||
149 | return nspi; | 150 | return nspi; |
150 | } | 151 | } |