aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/spi/davinci_spi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/spi/davinci_spi.c')
-rw-r--r--drivers/spi/davinci_spi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/spi/davinci_spi.c b/drivers/spi/davinci_spi.c
index 76decda0c8da..d6b6a4958088 100644
--- a/drivers/spi/davinci_spi.c
+++ b/drivers/spi/davinci_spi.c
@@ -245,8 +245,6 @@ static void davinci_spi_chipselect(struct spi_device *spi, int value)
245 * line for the controller 245 * line for the controller
246 */ 246 */
247 if (value == BITBANG_CS_INACTIVE) { 247 if (value == BITBANG_CS_INACTIVE) {
248 set_io_bits(davinci_spi->base + SPIDEF, CS_DEFAULT);
249
250 data1_reg_val |= CS_DEFAULT << SPIDAT1_CSNR_SHIFT; 248 data1_reg_val |= CS_DEFAULT << SPIDAT1_CSNR_SHIFT;
251 iowrite32(data1_reg_val, davinci_spi->base + SPIDAT1); 249 iowrite32(data1_reg_val, davinci_spi->base + SPIDAT1);
252 250
@@ -1132,6 +1130,8 @@ static int davinci_spi_probe(struct platform_device *pdev)
1132 clear_io_bits(davinci_spi->base + SPIGCR1, 1130 clear_io_bits(davinci_spi->base + SPIGCR1,
1133 SPIGCR1_CLKMOD_MASK); 1131 SPIGCR1_CLKMOD_MASK);
1134 1132
1133 iowrite32(CS_DEFAULT, davinci_spi->base + SPIDEF);
1134
1135 /* master mode default */ 1135 /* master mode default */
1136 set_io_bits(davinci_spi->base + SPIGCR1, SPIGCR1_MASTER_MASK); 1136 set_io_bits(davinci_spi->base + SPIGCR1, SPIGCR1_MASTER_MASK);
1137 1137