提交 e1b0f0df 编写于 作者: M Mark Brown

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

Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
上级 d1c3ed66
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册