Skip to content

Commit

Permalink
spi: bfin5xx: Remove duplicate code to check spi->mode
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Axel Lin authored and Mark Brown committed Feb 14, 2014
1 parent 38dbfb5 commit 54457fa
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/spi/spi-bfin5xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 54457fa

Please sign in to comment.