summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-bfin5xx.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2014-02-03 10:51:30 +0800
committerMark Brown <broonie@linaro.org>2014-02-14 20:18:07 +0000
commit54457fa5bae5e84e2b63d52a7b2d520e7a60f8b8 (patch)
treea0e9d1b0a70cf333612c65cafef7d3e5d3606d02 /drivers/spi/spi-bfin5xx.c
parent38dbfb59d1175ef458d006556061adeaa8751b72 (diff)
spi: bfin5xx: Remove duplicate code to check spi->mode
This checking is already done in the implementation of spi_setup(). Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/spi/spi-bfin5xx.c')
-rw-r--r--drivers/spi/spi-bfin5xx.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/spi/spi-bfin5xx.c b/drivers/spi/spi-bfin5xx.c
index f0f195af75d..c6902d2087d 100644
--- a/drivers/spi/spi-bfin5xx.c
+++ b/drivers/spi/spi-bfin5xx.c
@@ -1030,10 +1030,6 @@ static int bfin_spi_setup(struct spi_device *spi)
}
/* translate common spi framework into our register */
- if (spi->mode & ~(SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST)) {
- dev_err(&spi->dev, "unsupported spi modes detected\n");
- goto error;
- }
if (spi->mode & SPI_CPOL)
chip->ctl_reg |= BIT_CTL_CPOL;
if (spi->mode & SPI_CPHA)