Commit ef9ed4b9c9de59eb3f2215b4773990159af92dc1

Authored by Jonas Gorski
Committed by Mark Brown
1 parent 4fbb82a76d

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>

Showing 1 changed file with 0 additions and 6 deletions Side-by-side Diff

drivers/spi/spi-bcm63xx.c
... ... @@ -158,12 +158,6 @@
158 158 if (!spi->bits_per_word)
159 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 161 dev_dbg(&spi->dev, "%s, mode %d, %u bits/w, %u nsec/bit\n",
168 162 __func__, spi->mode & MODEBITS, spi->bits_per_word, 0);
169 163