From: Jonas Gorski Date: Mon, 11 Mar 2013 23:13:44 +0000 (+0100) Subject: spi/bcm63xx: remove spi chip select validity check X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=31e4eaaa54effd8544d1e8679e27d439bb6cb10c;p=linux-beck.git spi/bcm63xx: remove spi chip select validity check 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 Acked-by: Florian Fainelli Signed-off-by: Mark Brown --- diff --git a/drivers/spi/spi-bcm63xx.c b/drivers/spi/spi-bcm63xx.c index b9c9431286e4..9574e47e4ff4 100644 --- a/drivers/spi/spi-bcm63xx.c +++ b/drivers/spi/spi-bcm63xx.c @@ -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; }