Browse Source

spi: s3c64xx: 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 <jarkko.nikula@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Jarkko Nikula 10 years ago
parent
commit
88d4a7440e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/spi/spi-s3c64xx.c

+ 1 - 1
drivers/spi/spi-s3c64xx.c

@@ -683,7 +683,7 @@ static int s3c64xx_spi_transfer_one(struct spi_master *master,
 
 
 	/* Only BPW and Speed may change across transfers */
 	/* Only BPW and Speed may change across transfers */
 	bpw = xfer->bits_per_word;
 	bpw = xfer->bits_per_word;
-	speed = xfer->speed_hz ? : spi->max_speed_hz;
+	speed = xfer->speed_hz;
 
 
 	if (bpw != sdd->cur_bpw || speed != sdd->cur_speed) {
 	if (bpw != sdd->cur_bpw || speed != sdd->cur_speed) {
 		sdd->cur_bpw = bpw;
 		sdd->cur_bpw = bpw;