diff options
author | Brian Niebuhr <bniebuhr@efjohnson.com> | 2010-08-23 16:34:13 +0530 |
---|---|---|
committer | Sekhar Nori <nsekhar@ti.com> | 2010-11-18 18:38:29 +0530 |
commit | 47f44671c0dc92e2b77ff3dd843f742d12510477 (patch) | |
tree | 051eae098e884d247572b425828d8b734baab685 /drivers | |
parent | 134e32b979f3f3987e84dcd5cc42040e21252e53 (diff) | |
download | linux-47f44671c0dc92e2b77ff3dd843f742d12510477.tar.gz linux-47f44671c0dc92e2b77ff3dd843f742d12510477.tar.bz2 linux-47f44671c0dc92e2b77ff3dd843f742d12510477.zip |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/spi/davinci_spi.c | 2 |
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) data1_reg_val = ioread32(davinci_spi->base + SPIDAT1); - INIT_COMPLETION(davinci_spi->done); - init_completion(&davinci_spi_dma->dma_rx_completion); init_completion(&davinci_spi_dma->dma_tx_completion); |