diff options
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/spi-bcm2835.c | 2 | ||||
-rw-r--r-- | drivers/spi/spi-clps711x.c | 2 | ||||
-rw-r--r-- | drivers/spi/spi-davinci.c | 2 | ||||
-rw-r--r-- | drivers/spi/spi-fsl-espi.c | 2 | ||||
-rw-r--r-- | drivers/spi/spi-fsl-spi.c | 2 | ||||
-rw-r--r-- | drivers/spi/spi-mpc512x-psc.c | 2 | ||||
-rw-r--r-- | drivers/spi/spi-mxs.c | 2 | ||||
-rw-r--r-- | drivers/spi/spi-s3c64xx.c | 2 | ||||
-rw-r--r-- | drivers/spi/spi-sh-msiof.c | 2 | ||||
-rw-r--r-- | drivers/spi/spi-sirf.c | 4 | ||||
-rw-r--r-- | drivers/spi/spi-tegra114.c | 6 | ||||
-rw-r--r-- | drivers/spi/spi-tegra20-sflash.c | 2 | ||||
-rw-r--r-- | drivers/spi/spi-tegra20-slink.c | 6 | ||||
-rw-r--r-- | drivers/spi/spi-xilinx.c | 2 | ||||
-rw-r--r-- | drivers/spi/spi.c | 2 |
15 files changed, 20 insertions, 20 deletions
diff --git a/drivers/spi/spi-bcm2835.c b/drivers/spi/spi-bcm2835.c index 4c332143a310..3ed666fe840a 100644 --- a/drivers/spi/spi-bcm2835.c +++ b/drivers/spi/spi-bcm2835.c | |||
@@ -217,7 +217,7 @@ static int bcm2835_spi_start_transfer(struct spi_device *spi, | |||
217 | cs |= spi->chip_select; | 217 | cs |= spi->chip_select; |
218 | } | 218 | } |
219 | 219 | ||
220 | INIT_COMPLETION(bs->done); | 220 | reinit_completion(&bs->done); |
221 | bs->tx_buf = tfr->tx_buf; | 221 | bs->tx_buf = tfr->tx_buf; |
222 | bs->rx_buf = tfr->rx_buf; | 222 | bs->rx_buf = tfr->rx_buf; |
223 | bs->len = tfr->len; | 223 | bs->len = tfr->len; |
diff --git a/drivers/spi/spi-clps711x.c b/drivers/spi/spi-clps711x.c index e2a5a426b2ef..6f03d7e6435d 100644 --- a/drivers/spi/spi-clps711x.c +++ b/drivers/spi/spi-clps711x.c | |||
@@ -105,7 +105,7 @@ static int spi_clps711x_transfer_one_message(struct spi_master *master, | |||
105 | 105 | ||
106 | gpio_set_value(cs, !!(msg->spi->mode & SPI_CS_HIGH)); | 106 | gpio_set_value(cs, !!(msg->spi->mode & SPI_CS_HIGH)); |
107 | 107 | ||
108 | INIT_COMPLETION(hw->done); | 108 | reinit_completion(&hw->done); |
109 | 109 | ||
110 | hw->count = 0; | 110 | hw->count = 0; |
111 | hw->len = xfer->len; | 111 | hw->len = xfer->len; |
diff --git a/drivers/spi/spi-davinci.c b/drivers/spi/spi-davinci.c index dd72445ba2ea..50b2d88c8190 100644 --- a/drivers/spi/spi-davinci.c +++ b/drivers/spi/spi-davinci.c | |||
@@ -554,7 +554,7 @@ static int davinci_spi_bufs(struct spi_device *spi, struct spi_transfer *t) | |||
554 | clear_io_bits(dspi->base + SPIGCR1, SPIGCR1_POWERDOWN_MASK); | 554 | clear_io_bits(dspi->base + SPIGCR1, SPIGCR1_POWERDOWN_MASK); |
555 | set_io_bits(dspi->base + SPIGCR1, SPIGCR1_SPIENA_MASK); | 555 | set_io_bits(dspi->base + SPIGCR1, SPIGCR1_SPIENA_MASK); |
556 | 556 | ||
557 | INIT_COMPLETION(dspi->done); | 557 | reinit_completion(&dspi->done); |
558 | 558 | ||
559 | if (spicfg->io_type == SPI_IO_TYPE_INTR) | 559 | if (spicfg->io_type == SPI_IO_TYPE_INTR) |
560 | set_io_bits(dspi->base + SPIINT, SPIINT_MASKINT); | 560 | set_io_bits(dspi->base + SPIINT, SPIINT_MASKINT); |
diff --git a/drivers/spi/spi-fsl-espi.c b/drivers/spi/spi-fsl-espi.c index 32200d4f8780..80d8f40f7e05 100644 --- a/drivers/spi/spi-fsl-espi.c +++ b/drivers/spi/spi-fsl-espi.c | |||
@@ -232,7 +232,7 @@ static int fsl_espi_bufs(struct spi_device *spi, struct spi_transfer *t) | |||
232 | mpc8xxx_spi->tx = t->tx_buf; | 232 | mpc8xxx_spi->tx = t->tx_buf; |
233 | mpc8xxx_spi->rx = t->rx_buf; | 233 | mpc8xxx_spi->rx = t->rx_buf; |
234 | 234 | ||
235 | INIT_COMPLETION(mpc8xxx_spi->done); | 235 | reinit_completion(&mpc8xxx_spi->done); |
236 | 236 | ||
237 | /* Set SPCOM[CS] and SPCOM[TRANLEN] field */ | 237 | /* Set SPCOM[CS] and SPCOM[TRANLEN] field */ |
238 | if ((t->len - 1) > SPCOM_TRANLEN_MAX) { | 238 | if ((t->len - 1) > SPCOM_TRANLEN_MAX) { |
diff --git a/drivers/spi/spi-fsl-spi.c b/drivers/spi/spi-fsl-spi.c index 2129fcd1c31b..119f7af94537 100644 --- a/drivers/spi/spi-fsl-spi.c +++ b/drivers/spi/spi-fsl-spi.c | |||
@@ -339,7 +339,7 @@ static int fsl_spi_bufs(struct spi_device *spi, struct spi_transfer *t, | |||
339 | mpc8xxx_spi->tx = t->tx_buf; | 339 | mpc8xxx_spi->tx = t->tx_buf; |
340 | mpc8xxx_spi->rx = t->rx_buf; | 340 | mpc8xxx_spi->rx = t->rx_buf; |
341 | 341 | ||
342 | INIT_COMPLETION(mpc8xxx_spi->done); | 342 | reinit_completion(&mpc8xxx_spi->done); |
343 | 343 | ||
344 | if (mpc8xxx_spi->flags & SPI_CPM_MODE) | 344 | if (mpc8xxx_spi->flags & SPI_CPM_MODE) |
345 | ret = fsl_spi_cpm_bufs(mpc8xxx_spi, t, is_dma_mapped); | 345 | ret = fsl_spi_cpm_bufs(mpc8xxx_spi, t, is_dma_mapped); |
diff --git a/drivers/spi/spi-mpc512x-psc.c b/drivers/spi/spi-mpc512x-psc.c index 58d5ee0e4443..9602bbd8d7ea 100644 --- a/drivers/spi/spi-mpc512x-psc.c +++ b/drivers/spi/spi-mpc512x-psc.c | |||
@@ -167,7 +167,7 @@ static int mpc512x_psc_spi_transfer_rxtx(struct spi_device *spi, | |||
167 | } | 167 | } |
168 | 168 | ||
169 | /* have the ISR trigger when the TX FIFO is empty */ | 169 | /* have the ISR trigger when the TX FIFO is empty */ |
170 | INIT_COMPLETION(mps->txisrdone); | 170 | reinit_completion(&mps->txisrdone); |
171 | out_be32(&fifo->txisr, MPC512x_PSC_FIFO_EMPTY); | 171 | out_be32(&fifo->txisr, MPC512x_PSC_FIFO_EMPTY); |
172 | out_be32(&fifo->tximr, MPC512x_PSC_FIFO_EMPTY); | 172 | out_be32(&fifo->tximr, MPC512x_PSC_FIFO_EMPTY); |
173 | wait_for_completion(&mps->txisrdone); | 173 | wait_for_completion(&mps->txisrdone); |
diff --git a/drivers/spi/spi-mxs.c b/drivers/spi/spi-mxs.c index de333059a9a7..73afb56c08cc 100644 --- a/drivers/spi/spi-mxs.c +++ b/drivers/spi/spi-mxs.c | |||
@@ -202,7 +202,7 @@ static int mxs_spi_txrx_dma(struct mxs_spi *spi, | |||
202 | if (!dma_xfer) | 202 | if (!dma_xfer) |
203 | return -ENOMEM; | 203 | return -ENOMEM; |
204 | 204 | ||
205 | INIT_COMPLETION(spi->c); | 205 | reinit_completion(&spi->c); |
206 | 206 | ||
207 | /* Chip select was already programmed into CTRL0 */ | 207 | /* Chip select was already programmed into CTRL0 */ |
208 | ctrl0 = readl(ssp->base + HW_SSP_CTRL0); | 208 | ctrl0 = readl(ssp->base + HW_SSP_CTRL0); |
diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c index 9e2020df9e0f..4c4b0a1219a7 100644 --- a/drivers/spi/spi-s3c64xx.c +++ b/drivers/spi/spi-s3c64xx.c | |||
@@ -890,7 +890,7 @@ static int s3c64xx_spi_transfer_one(struct spi_master *master, | |||
890 | unsigned long flags; | 890 | unsigned long flags; |
891 | int use_dma; | 891 | int use_dma; |
892 | 892 | ||
893 | INIT_COMPLETION(sdd->xfer_completion); | 893 | reinit_completion(&sdd->xfer_completion); |
894 | 894 | ||
895 | /* Only BPW and Speed may change across transfers */ | 895 | /* Only BPW and Speed may change across transfers */ |
896 | bpw = xfer->bits_per_word; | 896 | bpw = xfer->bits_per_word; |
diff --git a/drivers/spi/spi-sh-msiof.c b/drivers/spi/spi-sh-msiof.c index 2a95435a6a11..c74298cf70e2 100644 --- a/drivers/spi/spi-sh-msiof.c +++ b/drivers/spi/spi-sh-msiof.c | |||
@@ -465,7 +465,7 @@ static int sh_msiof_spi_txrx_once(struct sh_msiof_spi_priv *p, | |||
465 | ret = ret ? ret : sh_msiof_modify_ctr_wait(p, 0, CTR_TXE); | 465 | ret = ret ? ret : sh_msiof_modify_ctr_wait(p, 0, CTR_TXE); |
466 | 466 | ||
467 | /* start by setting frame bit */ | 467 | /* start by setting frame bit */ |
468 | INIT_COMPLETION(p->done); | 468 | reinit_completion(&p->done); |
469 | ret = ret ? ret : sh_msiof_modify_ctr_wait(p, 0, CTR_TFSE); | 469 | ret = ret ? ret : sh_msiof_modify_ctr_wait(p, 0, CTR_TFSE); |
470 | if (ret) { | 470 | if (ret) { |
471 | dev_err(&p->pdev->dev, "failed to start hardware\n"); | 471 | dev_err(&p->pdev->dev, "failed to start hardware\n"); |
diff --git a/drivers/spi/spi-sirf.c b/drivers/spi/spi-sirf.c index 592b4aff651f..ed5e501c4652 100644 --- a/drivers/spi/spi-sirf.c +++ b/drivers/spi/spi-sirf.c | |||
@@ -305,8 +305,8 @@ static int spi_sirfsoc_transfer(struct spi_device *spi, struct spi_transfer *t) | |||
305 | sspi->tx = t->tx_buf ? t->tx_buf : sspi->dummypage; | 305 | sspi->tx = t->tx_buf ? t->tx_buf : sspi->dummypage; |
306 | sspi->rx = t->rx_buf ? t->rx_buf : sspi->dummypage; | 306 | sspi->rx = t->rx_buf ? t->rx_buf : sspi->dummypage; |
307 | sspi->left_tx_word = sspi->left_rx_word = t->len / sspi->word_width; | 307 | sspi->left_tx_word = sspi->left_rx_word = t->len / sspi->word_width; |
308 | INIT_COMPLETION(sspi->rx_done); | 308 | reinit_completion(&sspi->rx_done); |
309 | INIT_COMPLETION(sspi->tx_done); | 309 | reinit_completion(&sspi->tx_done); |
310 | 310 | ||
311 | writel(SIRFSOC_SPI_INT_MASK_ALL, sspi->base + SIRFSOC_SPI_INT_STATUS); | 311 | writel(SIRFSOC_SPI_INT_MASK_ALL, sspi->base + SIRFSOC_SPI_INT_STATUS); |
312 | 312 | ||
diff --git a/drivers/spi/spi-tegra114.c b/drivers/spi/spi-tegra114.c index 9146bb3c2489..aaecfb3ebf58 100644 --- a/drivers/spi/spi-tegra114.c +++ b/drivers/spi/spi-tegra114.c | |||
@@ -451,7 +451,7 @@ static void tegra_spi_dma_complete(void *args) | |||
451 | 451 | ||
452 | static int tegra_spi_start_tx_dma(struct tegra_spi_data *tspi, int len) | 452 | static int tegra_spi_start_tx_dma(struct tegra_spi_data *tspi, int len) |
453 | { | 453 | { |
454 | INIT_COMPLETION(tspi->tx_dma_complete); | 454 | reinit_completion(&tspi->tx_dma_complete); |
455 | tspi->tx_dma_desc = dmaengine_prep_slave_single(tspi->tx_dma_chan, | 455 | tspi->tx_dma_desc = dmaengine_prep_slave_single(tspi->tx_dma_chan, |
456 | tspi->tx_dma_phys, len, DMA_MEM_TO_DEV, | 456 | tspi->tx_dma_phys, len, DMA_MEM_TO_DEV, |
457 | DMA_PREP_INTERRUPT | DMA_CTRL_ACK); | 457 | DMA_PREP_INTERRUPT | DMA_CTRL_ACK); |
@@ -470,7 +470,7 @@ static int tegra_spi_start_tx_dma(struct tegra_spi_data *tspi, int len) | |||
470 | 470 | ||
471 | static int tegra_spi_start_rx_dma(struct tegra_spi_data *tspi, int len) | 471 | static int tegra_spi_start_rx_dma(struct tegra_spi_data *tspi, int len) |
472 | { | 472 | { |
473 | INIT_COMPLETION(tspi->rx_dma_complete); | 473 | reinit_completion(&tspi->rx_dma_complete); |
474 | tspi->rx_dma_desc = dmaengine_prep_slave_single(tspi->rx_dma_chan, | 474 | tspi->rx_dma_desc = dmaengine_prep_slave_single(tspi->rx_dma_chan, |
475 | tspi->rx_dma_phys, len, DMA_DEV_TO_MEM, | 475 | tspi->rx_dma_phys, len, DMA_DEV_TO_MEM, |
476 | DMA_PREP_INTERRUPT | DMA_CTRL_ACK); | 476 | DMA_PREP_INTERRUPT | DMA_CTRL_ACK); |
@@ -844,7 +844,7 @@ static int tegra_spi_transfer_one_message(struct spi_master *master, | |||
844 | list_for_each_entry(xfer, &msg->transfers, transfer_list) { | 844 | list_for_each_entry(xfer, &msg->transfers, transfer_list) { |
845 | unsigned long cmd1; | 845 | unsigned long cmd1; |
846 | 846 | ||
847 | INIT_COMPLETION(tspi->xfer_completion); | 847 | reinit_completion(&tspi->xfer_completion); |
848 | 848 | ||
849 | cmd1 = tegra_spi_setup_transfer_one(spi, xfer, is_first_msg); | 849 | cmd1 = tegra_spi_setup_transfer_one(spi, xfer, is_first_msg); |
850 | 850 | ||
diff --git a/drivers/spi/spi-tegra20-sflash.c b/drivers/spi/spi-tegra20-sflash.c index 79be8ce6a9d1..4dc8e8129459 100644 --- a/drivers/spi/spi-tegra20-sflash.c +++ b/drivers/spi/spi-tegra20-sflash.c | |||
@@ -339,7 +339,7 @@ static int tegra_sflash_transfer_one_message(struct spi_master *master, | |||
339 | msg->actual_length = 0; | 339 | msg->actual_length = 0; |
340 | single_xfer = list_is_singular(&msg->transfers); | 340 | single_xfer = list_is_singular(&msg->transfers); |
341 | list_for_each_entry(xfer, &msg->transfers, transfer_list) { | 341 | list_for_each_entry(xfer, &msg->transfers, transfer_list) { |
342 | INIT_COMPLETION(tsd->xfer_completion); | 342 | reinit_completion(&tsd->xfer_completion); |
343 | ret = tegra_sflash_start_transfer_one(spi, xfer, | 343 | ret = tegra_sflash_start_transfer_one(spi, xfer, |
344 | is_first_msg, single_xfer); | 344 | is_first_msg, single_xfer); |
345 | if (ret < 0) { | 345 | if (ret < 0) { |
diff --git a/drivers/spi/spi-tegra20-slink.c b/drivers/spi/spi-tegra20-slink.c index af0a67886ae8..e66715ba37ed 100644 --- a/drivers/spi/spi-tegra20-slink.c +++ b/drivers/spi/spi-tegra20-slink.c | |||
@@ -462,7 +462,7 @@ static void tegra_slink_dma_complete(void *args) | |||
462 | 462 | ||
463 | static int tegra_slink_start_tx_dma(struct tegra_slink_data *tspi, int len) | 463 | static int tegra_slink_start_tx_dma(struct tegra_slink_data *tspi, int len) |
464 | { | 464 | { |
465 | INIT_COMPLETION(tspi->tx_dma_complete); | 465 | reinit_completion(&tspi->tx_dma_complete); |
466 | tspi->tx_dma_desc = dmaengine_prep_slave_single(tspi->tx_dma_chan, | 466 | tspi->tx_dma_desc = dmaengine_prep_slave_single(tspi->tx_dma_chan, |
467 | tspi->tx_dma_phys, len, DMA_MEM_TO_DEV, | 467 | tspi->tx_dma_phys, len, DMA_MEM_TO_DEV, |
468 | DMA_PREP_INTERRUPT | DMA_CTRL_ACK); | 468 | DMA_PREP_INTERRUPT | DMA_CTRL_ACK); |
@@ -481,7 +481,7 @@ static int tegra_slink_start_tx_dma(struct tegra_slink_data *tspi, int len) | |||
481 | 481 | ||
482 | static int tegra_slink_start_rx_dma(struct tegra_slink_data *tspi, int len) | 482 | static int tegra_slink_start_rx_dma(struct tegra_slink_data *tspi, int len) |
483 | { | 483 | { |
484 | INIT_COMPLETION(tspi->rx_dma_complete); | 484 | reinit_completion(&tspi->rx_dma_complete); |
485 | tspi->rx_dma_desc = dmaengine_prep_slave_single(tspi->rx_dma_chan, | 485 | tspi->rx_dma_desc = dmaengine_prep_slave_single(tspi->rx_dma_chan, |
486 | tspi->rx_dma_phys, len, DMA_DEV_TO_MEM, | 486 | tspi->rx_dma_phys, len, DMA_DEV_TO_MEM, |
487 | DMA_PREP_INTERRUPT | DMA_CTRL_ACK); | 487 | DMA_PREP_INTERRUPT | DMA_CTRL_ACK); |
@@ -836,7 +836,7 @@ static int tegra_slink_transfer_one(struct spi_master *master, | |||
836 | struct tegra_slink_data *tspi = spi_master_get_devdata(master); | 836 | struct tegra_slink_data *tspi = spi_master_get_devdata(master); |
837 | int ret; | 837 | int ret; |
838 | 838 | ||
839 | INIT_COMPLETION(tspi->xfer_completion); | 839 | reinit_completion(&tspi->xfer_completion); |
840 | ret = tegra_slink_start_transfer_one(spi, xfer); | 840 | ret = tegra_slink_start_transfer_one(spi, xfer); |
841 | if (ret < 0) { | 841 | if (ret < 0) { |
842 | dev_err(tspi->dev, | 842 | dev_err(tspi->dev, |
diff --git a/drivers/spi/spi-xilinx.c b/drivers/spi/spi-xilinx.c index ec3a83f52ea2..6d4ce4615163 100644 --- a/drivers/spi/spi-xilinx.c +++ b/drivers/spi/spi-xilinx.c | |||
@@ -258,7 +258,7 @@ static int xilinx_spi_txrx_bufs(struct spi_device *spi, struct spi_transfer *t) | |||
258 | xspi->tx_ptr = t->tx_buf; | 258 | xspi->tx_ptr = t->tx_buf; |
259 | xspi->rx_ptr = t->rx_buf; | 259 | xspi->rx_ptr = t->rx_buf; |
260 | xspi->remaining_bytes = t->len; | 260 | xspi->remaining_bytes = t->len; |
261 | INIT_COMPLETION(xspi->done); | 261 | reinit_completion(&xspi->done); |
262 | 262 | ||
263 | 263 | ||
264 | /* Enable the transmit empty interrupt, which we use to determine | 264 | /* Enable the transmit empty interrupt, which we use to determine |
diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index 927998aa5e71..8d85ddc46011 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c | |||
@@ -571,7 +571,7 @@ static int spi_transfer_one_message(struct spi_master *master, | |||
571 | list_for_each_entry(xfer, &msg->transfers, transfer_list) { | 571 | list_for_each_entry(xfer, &msg->transfers, transfer_list) { |
572 | trace_spi_transfer_start(msg, xfer); | 572 | trace_spi_transfer_start(msg, xfer); |
573 | 573 | ||
574 | INIT_COMPLETION(master->xfer_completion); | 574 | reinit_completion(&master->xfer_completion); |
575 | 575 | ||
576 | ret = master->transfer_one(master, msg->spi, xfer); | 576 | ret = master->transfer_one(master, msg->spi, xfer); |
577 | if (ret < 0) { | 577 | if (ret < 0) { |