projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.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
|
blame
|
history
diff --git
a/drivers/spi/spi-bfin5xx.c
b/drivers/spi/spi-bfin5xx.c
index f0f195af75d4d67815e6d550d54c5cf990d6813f..c6902d2087d2dc0390a4765da757e9f842545cc8 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)