diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-12-20 13:27:31 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-01-08 05:56:29 -0500 |
commit | e1b0f0df6a08329ce2f123240a5218c3e5c43b74 (patch) | |
tree | 7bbdf9e059e5c957fab558e68d92c34bf6d4bba5 /drivers/spi/spi-s3c64xx.c | |
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/spi-s3c64xx.c')
-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) | |||
957 | if (spi->max_speed_hz >= speed) { | 957 | if (spi->max_speed_hz >= speed) { |
958 | spi->max_speed_hz = speed; | 958 | spi->max_speed_hz = speed; |
959 | } else { | 959 | } else { |
960 | dev_err(&spi->dev, "Can't set %dHz transfer speed\n", | ||
961 | spi->max_speed_hz); | ||
960 | err = -EINVAL; | 962 | err = -EINVAL; |
961 | goto setup_exit; | 963 | goto setup_exit; |
962 | } | 964 | } |