diff options
author | Axel Lin <axel.lin@ingics.com> | 2015-01-05 22:49:36 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-01-14 19:16:56 +0000 |
commit | b85bfc444c426f476e68000d5b7e64a3200c3892 (patch) | |
tree | 014c75c48192ce759be9748352c02b0c5e543445 /drivers/spi/spi-st-ssc4.c | |
parent | f5bac70f4fec1fdc7798f025edd5666c17bcf51f (diff) | |
download | op-kernel-dev-b85bfc444c426f476e68000d5b7e64a3200c3892.zip op-kernel-dev-b85bfc444c426f476e68000d5b7e64a3200c3892.tar.gz |
spi: st-ssc4: Remove duplicate code to test unsupported mode bits
spi_setup() will test unsupported mode bits before calling spi->master->setup.
Thus remove duplicate code to test unsupported mode bits in spi_st_setup().
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-st-ssc4.c')
-rw-r--r-- | drivers/spi/spi-st-ssc4.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/spi/spi-st-ssc4.c b/drivers/spi/spi-st-ssc4.c index 8f8770a..2faeaa7 100644 --- a/drivers/spi/spi-st-ssc4.c +++ b/drivers/spi/spi-st-ssc4.c @@ -217,12 +217,6 @@ static int spi_st_setup(struct spi_device *spi) int cs = spi->cs_gpio; int ret; - if (spi->mode & ~MODEBITS) { - dev_err(&spi->dev, "unsupported mode bits 0x%x\n", - spi->mode & ~MODEBITS); - return -EINVAL; - } - if (!hz) { dev_err(&spi->dev, "max_speed_hz unspecified\n"); return -EINVAL; |