diff options
author | Mark Brown | 2012-12-20 18:27:31 +0000 |
---|---|---|
committer | Mark Brown | 2013-01-08 10:56:29 +0000 |
commit | e1b0f0df6a08329ce2f123240a5218c3e5c43b74 (patch) | |
tree | 7bbdf9e059e5c957fab558e68d92c34bf6d4bba5 /drivers/spi | |
parent | d1c3ed669a2d452cacfb48c2d171a1f364dae2ed (diff) |
spi/s3c64xx: Complain if we fail to set a transfer speed
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/spi-s3c64xx.c | 2 |
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; } |