From: Trent Piepho Date: Tue, 1 Oct 2013 20:15:33 +0000 (-0700) Subject: spi: spi-mxs: Remove check of spi mode bits X-Git-Tag: v3.13-rc1~123^2~13^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d426eadb1ef166b472b09a223c30d3104fde2586;p=profile%2Fivi%2Fkernel-x86-ivi.git 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 Cc: Marek Vasut Cc: Fabio Estevam Cc: Shawn Guo Signed-off-by: Mark Brown --- diff --git a/drivers/spi/spi-mxs.c b/drivers/spi/spi-mxs.c index e9cbdb6..23cc412 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; }