summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Niebuhr <bniebuhr@efjohnson.com>2010-08-16 10:28:53 +0530
committerSekhar Nori <nsekhar@ti.com>2010-11-18 18:38:25 +0530
commit472880c73da124b6cb5cbc31a36754aa62935afe (patch)
treec48f605df1ddf9947d4b647b9641210e240ccab1
parent7fe0092b1f55f58a749d68ace3a3597e8a2a9163 (diff)
downloadblackbird-op-linux-472880c73da124b6cb5cbc31a36754aa62935afe.tar.gz
blackbird-op-linux-472880c73da124b6cb5cbc31a36754aa62935afe.zip
spi: davinci: remove 'wait_enable' platform data member
The SPI_READY bit of struct spi_device:mode serves the purpose of letting the SPI master know if the slave can signal if it is ready for transfer or not. The 'wait_enable' platform data was duplicating this functionality. Use the framework provided method of indicating this capability. 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--arch/arm/mach-davinci/include/mach/spi.h1
-rw-r--r--drivers/spi/davinci_spi.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm/mach-davinci/include/mach/spi.h b/arch/arm/mach-davinci/include/mach/spi.h
index 734d1fb99614..fe699140269c 100644
--- a/arch/arm/mach-davinci/include/mach/spi.h
+++ b/arch/arm/mach-davinci/include/mach/spi.h
@@ -32,7 +32,6 @@ struct davinci_spi_platform_data {
u8 wdelay;
u8 odd_parity;
u8 parity_enable;
- u8 wait_enable;
u8 timer_disable;
u8 clk_internal;
u8 intr_level;
diff --git a/drivers/spi/davinci_spi.c b/drivers/spi/davinci_spi.c
index 17269ad54a99..54808577c121 100644
--- a/drivers/spi/davinci_spi.c
+++ b/drivers/spi/davinci_spi.c
@@ -522,7 +522,7 @@ static int davinci_spi_setup(struct spi_device *spi)
SPIFMT_PARITYENA_MASK,
spi->chip_select);
- if (davinci_spi->pdata->wait_enable)
+ if (spi->mode & SPI_READY)
set_fmt_bits(davinci_spi->base,
SPIFMT_WAITENA_MASK,
spi->chip_select);
OpenPOWER on IntegriCloud