summaryrefslogtreecommitdiffstats
path: root/drivers/spi
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2015-01-05 22:49:36 +0800
committerMark Brown <broonie@kernel.org>2015-01-14 19:16:56 +0000
commitb85bfc444c426f476e68000d5b7e64a3200c3892 (patch)
tree014c75c48192ce759be9748352c02b0c5e543445 /drivers/spi
parentf5bac70f4fec1fdc7798f025edd5666c17bcf51f (diff)
downloadlinux-stable-b85bfc444c426f476e68000d5b7e64a3200c3892.tar.gz
linux-stable-b85bfc444c426f476e68000d5b7e64a3200c3892.tar.bz2
linux-stable-b85bfc444c426f476e68000d5b7e64a3200c3892.zip
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')
-rw-r--r--drivers/spi/spi-st-ssc4.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/spi/spi-st-ssc4.c b/drivers/spi/spi-st-ssc4.c
index 8f8770a97ba7..2faeaa7b57a8 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;