From 54457fa5bae5e84e2b63d52a7b2d520e7a60f8b8 Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Mon, 3 Feb 2014 10:51:30 +0800 Subject: 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 Signed-off-by: Mark Brown --- drivers/spi/spi-bfin5xx.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'drivers/spi/spi-bfin5xx.c') diff --git a/drivers/spi/spi-bfin5xx.c b/drivers/spi/spi-bfin5xx.c index f0f195af75d4..c6902d2087d2 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) -- cgit v1.2.3