projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38dbfb5
)
spi: bfin5xx: Remove duplicate code to check spi->mode
author
Axel Lin
<axel.lin@ingics.com>
Mon, 3 Feb 2014 02:51:30 +0000
(10:51 +0800)
committer
Mark Brown
<broonie@linaro.org>
Fri, 14 Feb 2014 20:18:07 +0000
(20:18 +0000)
This checking is already done in the implementation of spi_setup().
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-bfin5xx.c
patch
|
blob
|
history
diff --git
a/drivers/spi/spi-bfin5xx.c
b/drivers/spi/spi-bfin5xx.c
index
f0f195a
..
c6902d2
100644
(file)
--- a/
drivers/spi/spi-bfin5xx.c
+++ b/
drivers/spi/spi-bfin5xx.c
@@
-1030,10
+1030,6
@@
static int bfin_spi_setup(struct spi_device *spi)
}
/* translate common spi framework into our register */
- if (spi->mode & ~(SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST)) {
- dev_err(&spi->dev, "unsupported spi modes detected\n");
- goto error;
- }
if (spi->mode & SPI_CPOL)
chip->ctl_reg |= BIT_CTL_CPOL;
if (spi->mode & SPI_CPHA)