Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 54457fa5 authored by Axel Lin's avatar Axel Lin Committed by Mark Brown
Browse files

spi: bfin5xx: Remove duplicate code to check spi->mode



This checking is already done in the implementation of spi_setup().

Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 38dbfb59
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -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)