diff options
Diffstat (limited to 'drivers/spi/spi-atmel.c')
| -rw-r--r-- | drivers/spi/spi-atmel.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/spi/spi-atmel.c b/drivers/spi/spi-atmel.c index 656d137db25..80f5867c088 100644 --- a/drivers/spi/spi-atmel.c +++ b/drivers/spi/spi-atmel.c @@ -847,8 +847,8 @@ static int atmel_spi_transfer(struct spi_device *spi, struct spi_message *msg)  		}  		/* FIXME implement these protocol options!! */ -		if (xfer->speed_hz) { -			dev_dbg(&spi->dev, "no protocol options yet\n"); +		if (xfer->speed_hz < spi->max_speed_hz) { +			dev_dbg(&spi->dev, "can't change speed in transfer\n");  			return -ENOPROTOOPT;  		}  |