summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2012-12-20 18:27:31 +0000
committerMark Brown <broonie@opensource.wolfsonmicro.com>2013-01-08 10:56:29 +0000
commite1b0f0df6a08329ce2f123240a5218c3e5c43b74 (patch)
tree7bbdf9e059e5c957fab558e68d92c34bf6d4bba5
parentd1c3ed669a2d452cacfb48c2d171a1f364dae2ed (diff)
downloadlinux-e1b0f0df6a08329ce2f123240a5218c3e5c43b74.tar.bz2
spi/s3c64xx: Complain if we fail to set a transfer speed
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
-rw-r--r--drivers/spi/spi-s3c64xx.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c
index ad93231a8038..6495352bcc19 100644
--- a/drivers/spi/spi-s3c64xx.c
+++ b/drivers/spi/spi-s3c64xx.c
@@ -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;
}