aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/spi/davinci_spi.c
diff options
context:
space:
mode:
authorBrian Niebuhr <bniebuhr@efjohnson.com>2010-08-19 06:11:41 -0400
committerSekhar Nori <nsekhar@ti.com>2010-11-18 08:08:27 -0500
commitb6c4eeac5bc6a6bf769d7f170c507a1b78fd120a (patch)
tree6354e03532c21c73052202296eec517718b60974 /drivers/spi/davinci_spi.c
parent7abbf23c5903e14b0cff1cdeab906eab164be767 (diff)
spi: davinci: remove unused members of davinci_spi_slave
Several members of struct davinci_spi_slave are unused in code. Remove such members. 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/spi/davinci_spi.c')
-rw-r--r--drivers/spi/davinci_spi.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/spi/davinci_spi.c b/drivers/spi/davinci_spi.c
index e94c63813e9f..31b9c2278dec 100644
--- a/drivers/spi/davinci_spi.c
+++ b/drivers/spi/davinci_spi.c
@@ -119,10 +119,7 @@
119#define SPIFMT0 0x50 119#define SPIFMT0 0x50
120 120
121struct davinci_spi_slave { 121struct davinci_spi_slave {
122 u32 cmd_to_write;
123 u32 clk_ctrl_to_write;
124 u32 bytes_per_word; 122 u32 bytes_per_word;
125 u8 active_cs;
126}; 123};
127 124
128/* We have 2 DMA channels per CS, one for RX and one for TX */ 125/* We have 2 DMA channels per CS, one for RX and one for TX */
@@ -495,8 +492,6 @@ static int davinci_spi_setup(struct spi_device *spi)
495 if (!spi->bits_per_word) 492 if (!spi->bits_per_word)
496 spi->bits_per_word = 8; 493 spi->bits_per_word = 8;
497 494
498 davinci_spi->slave[spi->chip_select].cmd_to_write = 0;
499
500 if (use_dma && davinci_spi->dma_channels) { 495 if (use_dma && davinci_spi->dma_channels) {
501 davinci_spi_dma = &davinci_spi->dma_channels[spi->chip_select]; 496 davinci_spi_dma = &davinci_spi->dma_channels[spi->chip_select];
502 497