mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-23 20:53:53 +08:00
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>
This commit is contained in:
parent
38dbfb59d1
commit
54457fa5ba
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user