spi: spi-mxs: Remove check of spi mode bits
authorTrent Piepho <tpiepho@gmail.com>
Tue, 1 Oct 2013 20:15:33 +0000 (13:15 -0700)
committerMark Brown <broonie@linaro.org>
Fri, 18 Oct 2013 00:00:31 +0000 (01:00 +0100)
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>
drivers/spi/spi-mxs.c

index e9cbdb6b1309c916078554a1c80e9d1b281d61a6..23cc41273dd3edd161991f3c362eaf97e13a3f25 100644 (file)
@@ -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;
 }