summaryrefslogtreecommitdiff
path: root/drivers/spi/spi-mxs.c
diff options
context:
space:
mode:
authorTrent Piepho <tpiepho@gmail.com>2013-10-02 00:15:33 +0400
committerMark Brown <broonie@linaro.org>2013-10-18 04:00:31 +0400
commitd426eadb1ef166b472b09a223c30d3104fde2586 (patch)
tree190cb69d1cb17a1b605de9d9f4ef4f7298d455a4 /drivers/spi/spi-mxs.c
parent9c97e3421fa0aeec131689008181f8ee1dac5e99 (diff)
downloadlinux-d426eadb1ef166b472b09a223c30d3104fde2586.tar.xz
spi: spi-mxs: Remove check of spi mode bits
The spi core already checks for a slave setting mode bits that we didn't list as supported when the master was registered. There is no need to do it again in the master driver. Signed-off-by: Trent Piepho <tpiepho@gmail.com> Cc: Marek Vasut <marex@denx.de> Cc: Fabio Estevam <fabio.estevam@freescale.com> Cc: Shawn Guo <shawn.guo@linaro.org> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/spi/spi-mxs.c')
-rw-r--r--drivers/spi/spi-mxs.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/spi/spi-mxs.c b/drivers/spi/spi-mxs.c
index e9cbdb6b1309..23cc41273dd3 100644
--- a/drivers/spi/spi-mxs.c
+++ b/drivers/spi/spi-mxs.c
@@ -106,9 +106,6 @@ static int mxs_spi_setup(struct spi_device *dev)
if (!dev->bits_per_word)
dev->bits_per_word = 8;
- if (dev->mode & ~(SPI_CPOL | SPI_CPHA))
- return -EINVAL;
-
return 0;
}