aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Niebuhr <bniebuhr@efjohnson.com>2010-08-20 05:23:47 -0400
committerSekhar Nori <nsekhar@ti.com>2010-11-18 08:08:28 -0500
commitfab89ea330cabdaf29d82151de6d8f2369cc4da9 (patch)
tree7e18a872221276f530636cfb40bc721e46951c80
parent53d454a170e86594af1d27be820e678a582af751 (diff)
spi: davinci: remove unnecessary disable of SPI
In the davinci_spi_bufs_dma() function, SPI is briefly disabled before enabling it immediately back again. Remove this unnecessary disable. 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 10b0a08d2625..1169e8e7462e 100644
--- a/drivers/spi/davinci_spi.c
+++ b/drivers/spi/davinci_spi.c
@@ -771,8 +771,6 @@ static int davinci_spi_bufs_dma(struct spi_device *spi, struct spi_transfer *t)
771 771
772 /* disable all interrupts for dma transfers */ 772 /* disable all interrupts for dma transfers */
773 clear_io_bits(davinci_spi->base + SPIINT, SPIINT_MASKALL); 773 clear_io_bits(davinci_spi->base + SPIINT, SPIINT_MASKALL);
774 /* Disable SPI to write configuration bits in SPIDAT */
775 clear_io_bits(davinci_spi->base + SPIGCR1, SPIGCR1_SPIENA_MASK);
776 /* Enable SPI */ 774 /* Enable SPI */
777 set_io_bits(davinci_spi->base + SPIGCR1, SPIGCR1_SPIENA_MASK); 775 set_io_bits(davinci_spi->base + SPIGCR1, SPIGCR1_SPIENA_MASK);
778 776