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

Commit e1b0f0df authored by Mark Brown's avatar Mark Brown
Browse files

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

parent d1c3ed66
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;
		}