spi/bcm63xx: remove spi chip select validity check
authorJonas Gorski <jogo@openwrt.org>
Mon, 11 Mar 2013 23:13:44 +0000 (00:13 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 12 Mar 2013 19:14:46 +0000 (19:14 +0000)
The check would belong in bcm63xx_spi_setup if the spi subsystem
weren't already doing the check for us, so just drop it.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
Acked-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/spi/spi-bcm63xx.c

index b9c9431286e4bfbe0c9ee1de73917e2777035f30..9574e47e4ff47ec04b95df2e0510ede8012364d1 100644 (file)
@@ -102,12 +102,6 @@ static int bcm63xx_spi_check_transfer(struct spi_device *spi,
                return -EINVAL;
        }
 
-       if (spi->chip_select > spi->master->num_chipselect) {
-               dev_err(&spi->dev, "%s, unsupported slave %d\n",
-                       __func__, spi->chip_select);
-               return -EINVAL;
-       }
-
        return 0;
 }