1
0
Fork 0

spi/s3c64xx: Complain if we fail to set a transfer speed

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
hifive-unleashed-5.1
Mark Brown 2012-12-20 18:27:31 +00:00
parent d1c3ed669a
commit e1b0f0df6a
1 changed files with 2 additions and 0 deletions

View File

@ -957,6 +957,8 @@ static int s3c64xx_spi_setup(struct spi_device *spi)
if (spi->max_speed_hz >= speed) {
spi->max_speed_hz = speed;
} else {
dev_err(&spi->dev, "Can't set %dHz transfer speed\n",
spi->max_speed_hz);
err = -EINVAL;
goto setup_exit;
}