diff options
author | Brian Niebuhr <bniebuhr@efjohnson.com> | 2010-08-16 00:58:53 -0400 |
---|---|---|
committer | Sekhar Nori <nsekhar@ti.com> | 2010-11-18 08:08:25 -0500 |
commit | 472880c73da124b6cb5cbc31a36754aa62935afe (patch) | |
tree | c48f605df1ddf9947d4b647b9641210e240ccab1 /drivers/spi/davinci_spi.c | |
parent | 7fe0092b1f55f58a749d68ace3a3597e8a2a9163 (diff) |
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>
Diffstat (limited to 'drivers/spi/davinci_spi.c')
-rw-r--r-- | drivers/spi/davinci_spi.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
522 | SPIFMT_PARITYENA_MASK, | 522 | SPIFMT_PARITYENA_MASK, |
523 | spi->chip_select); | 523 | spi->chip_select); |
524 | 524 | ||
525 | if (davinci_spi->pdata->wait_enable) | 525 | if (spi->mode & SPI_READY) |
526 | set_fmt_bits(davinci_spi->base, | 526 | set_fmt_bits(davinci_spi->base, |
527 | SPIFMT_WAITENA_MASK, | 527 | SPIFMT_WAITENA_MASK, |
528 | spi->chip_select); | 528 | spi->chip_select); |