From: Jarkko Nikula Date: Tue, 15 Sep 2015 13:26:15 +0000 (+0300) Subject: spi: octeon: Use transfer speed unconditionally X-Git-Tag: firefly_0821_release~176^2~790^2~2^6 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=8cf3af32902d14f6a0fbc4ad9a3025d9e7d4701b;p=firefly-linux-kernel-4.4.55.git spi: octeon: Use transfer speed unconditionally SPI core validates the transfer speed and defaults to spi->max_speed_hz in case the transfer speed is not set. Signed-off-by: Jarkko Nikula Signed-off-by: Mark Brown --- diff --git a/drivers/spi/spi-octeon.c b/drivers/spi/spi-octeon.c index e99d6a93d394..07e4ce8273df 100644 --- a/drivers/spi/spi-octeon.c +++ b/drivers/spi/spi-octeon.c @@ -65,7 +65,7 @@ static int octeon_spi_do_transfer(struct octeon_spi *p, cpha = mode & SPI_CPHA; cpol = mode & SPI_CPOL; - speed_hz = xfer->speed_hz ? : spi->max_speed_hz; + speed_hz = xfer->speed_hz; clkdiv = octeon_get_io_clock_rate() / (2 * speed_hz);