summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2015-01-05 14:49:36 (GMT)
committerMark Brown <broonie@kernel.org>2015-01-14 19:16:56 (GMT)
commitb85bfc444c426f476e68000d5b7e64a3200c3892 (patch)
tree014c75c48192ce759be9748352c02b0c5e543445 /drivers
parentf5bac70f4fec1fdc7798f025edd5666c17bcf51f (diff)
downloadlinux-b85bfc444c426f476e68000d5b7e64a3200c3892.tar.xz
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')
-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 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;