aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Niebuhr <bniebuhr@efjohnson.com>2010-08-23 07:04:13 -0400
committerSekhar Nori <nsekhar@ti.com>2010-11-18 08:08:29 -0500
commit47f44671c0dc92e2b77ff3dd843f742d12510477 (patch)
tree051eae098e884d247572b425828d8b734baab685
parent134e32b979f3f3987e84dcd5cc42040e21252e53 (diff)
spi: davinci: remove unnecessary completion variable initialization
The completion variable 'done' is unnecessarly initialized by the function davinci_spi_bufs_dma() where as it is not used for DMA transfers at all. Remove the unnecessary initialization. Signed-off-by: Brian Niebuhr <bniebuhr@efjohnson.com> Tested-By: Michael Williamson <michael.williamson@criticallink.com> Signed-off-by: Sekhar Nori <nsekhar@ti.com>
-rw-r--r--drivers/spi/davinci_spi.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/spi/davinci_spi.c b/drivers/spi/davinci_spi.c
index a60a65c690de..54d06f409b65 100644
--- a/drivers/spi/davinci_spi.c
+++ b/drivers/spi/davinci_spi.c
@@ -750,8 +750,6 @@ static int davinci_spi_bufs_dma(struct spi_device *spi, struct spi_transfer *t)
750 750
751 data1_reg_val = ioread32(davinci_spi->base + SPIDAT1); 751 data1_reg_val = ioread32(davinci_spi->base + SPIDAT1);
752 752
753 INIT_COMPLETION(davinci_spi->done);
754
755 init_completion(&davinci_spi_dma->dma_rx_completion); 753 init_completion(&davinci_spi_dma->dma_rx_completion);
756 init_completion(&davinci_spi_dma->dma_tx_completion); 754 init_completion(&davinci_spi_dma->dma_tx_completion);
757 755