Commit f34ecdbd authored by David Lechner's avatar David Lechner Committed by Mark Brown

spi: spi-davinci: Don't error when SPI_CS_WORD and cs_gpio

This remove the check and subsequent return of error for the case when
a SPI device requires SPI_CS_WORD and is also configured to use a GPIO
for the CS line.

Commit a134cc414e86 ("spi: always use software fallback for SPI_CS_WORD
when using cs_gio") handles this case now, so this check is no longer
necessary.
Signed-off-by: default avatarDavid Lechner <david@lechnology.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 71388b21
......@@ -441,9 +441,6 @@ static int davinci_spi_setup(struct spi_device *spi)
if (internal_cs) {
set_io_bits(dspi->base + SPIPC0, 1 << spi->chip_select);
} else if (spi->mode & SPI_CS_WORD) {
dev_err(&spi->dev, "SPI_CS_WORD can't be use with GPIO CS\n");
return -EINVAL;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment