aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/spi
diff options
context:
space:
mode:
authorJonas Gorski <jogo@openwrt.org>2013-03-11 19:13:44 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2013-03-12 15:14:46 -0400
commit31e4eaaa54effd8544d1e8679e27d439bb6cb10c (patch)
treef5d8a14bc5f27586f0a509880488124d328853b3 /drivers/spi
parent58d8bebea57b519cb606a59dc1263556e8746119 (diff)
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 <jogo@openwrt.org> Acked-by: Florian Fainelli <florian@openwrt.org> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/spi')
-rw-r--r--drivers/spi/spi-bcm63xx.c6
1 files changed, 0 insertions, 6 deletions
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,
102 return -EINVAL; 102 return -EINVAL;
103 } 103 }
104 104
105 if (spi->chip_select > spi->master->num_chipselect) {
106 dev_err(&spi->dev, "%s, unsupported slave %d\n",
107 __func__, spi->chip_select);
108 return -EINVAL;
109 }
110
111 return 0; 105 return 0;
112} 106}
113 107