]> git.karo-electronics.de Git - linux-beck.git/commitdiff
spi: davinci: remove unnecessary disable of SPI
authorBrian Niebuhr <bniebuhr@efjohnson.com>
Fri, 20 Aug 2010 09:23:47 +0000 (14:53 +0530)
committerSekhar Nori <nsekhar@ti.com>
Thu, 18 Nov 2010 13:08:28 +0000 (18:38 +0530)
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>
drivers/spi/davinci_spi.c

index 10b0a08d262509066625cbc53f11894a2076b6e6..1169e8e7462e3d10a0e5da8df9c13c55f37c0185 100644 (file)
@@ -771,8 +771,6 @@ static int davinci_spi_bufs_dma(struct spi_device *spi, struct spi_transfer *t)
 
        /* disable all interrupts for dma transfers */
        clear_io_bits(davinci_spi->base + SPIINT, SPIINT_MASKALL);
-       /* Disable SPI to write configuration bits in SPIDAT */
-       clear_io_bits(davinci_spi->base + SPIGCR1, SPIGCR1_SPIENA_MASK);
        /* Enable SPI */
        set_io_bits(davinci_spi->base + SPIGCR1, SPIGCR1_SPIENA_MASK);