diff options
author | Jonas Gorski <jogo@openwrt.org> | 2013-03-11 19:13:39 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-03-12 15:14:38 -0400 |
commit | ef9ed4b9c9de59eb3f2215b4773990159af92dc1 (patch) | |
tree | 9cd3c52227534dc25dd2143f07f8864a71d92439 | |
parent | 4fbb82a76db3ef0ec8f5d2e01e288b7821eff687 (diff) |
spi/bcm63xx: remove duplicated mode bits check
The spi subsystem already checks the mode bits before calling setup.
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
Acked-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
-rw-r--r-- | drivers/spi/spi-bcm63xx.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/spi/spi-bcm63xx.c b/drivers/spi/spi-bcm63xx.c index ef9b89fc2f32..79ad8bce7032 100644 --- a/drivers/spi/spi-bcm63xx.c +++ b/drivers/spi/spi-bcm63xx.c | |||
@@ -158,12 +158,6 @@ static int bcm63xx_spi_setup(struct spi_device *spi) | |||
158 | if (!spi->bits_per_word) | 158 | if (!spi->bits_per_word) |
159 | spi->bits_per_word = 8; | 159 | spi->bits_per_word = 8; |
160 | 160 | ||
161 | if (spi->mode & ~MODEBITS) { | ||
162 | dev_err(&spi->dev, "%s, unsupported mode bits %x\n", | ||
163 | __func__, spi->mode & ~MODEBITS); | ||
164 | return -EINVAL; | ||
165 | } | ||
166 | |||
167 | dev_dbg(&spi->dev, "%s, mode %d, %u bits/w, %u nsec/bit\n", | 161 | dev_dbg(&spi->dev, "%s, mode %d, %u bits/w, %u nsec/bit\n", |
168 | __func__, spi->mode & MODEBITS, spi->bits_per_word, 0); | 162 | __func__, spi->mode & MODEBITS, spi->bits_per_word, 0); |
169 | 163 | ||