diff options
author | Axel Lin <axel.lin@ingics.com> | 2014-02-11 09:07:30 -0500 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-02-12 11:25:32 -0500 |
commit | 354312f16e49add1da78f0cfb2bcb633709d0071 (patch) | |
tree | 52191dc553cd118cfff145f61caf65a4107017f8 /drivers/spi/spi-falcon.c | |
parent | 3c604de496d7568b3fddb9f2531630aa89908186 (diff) |
spi: Remove duplicate code to check chip_select
In spi_add_device(), we have the code to validate spi->chip_select.
So remove the duplicate code in various drivers.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/spi/spi-falcon.c')
-rw-r--r-- | drivers/spi/spi-falcon.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/spi/spi-falcon.c b/drivers/spi/spi-falcon.c index dd5bd468e962..0ae7f45e24a5 100644 --- a/drivers/spi/spi-falcon.c +++ b/drivers/spi/spi-falcon.c | |||
@@ -312,9 +312,6 @@ static int falcon_sflash_setup(struct spi_device *spi) | |||
312 | unsigned int i; | 312 | unsigned int i; |
313 | unsigned long flags; | 313 | unsigned long flags; |
314 | 314 | ||
315 | if (spi->chip_select > 0) | ||
316 | return -ENODEV; | ||
317 | |||
318 | spin_lock_irqsave(&ebu_lock, flags); | 315 | spin_lock_irqsave(&ebu_lock, flags); |
319 | 316 | ||
320 | if (spi->max_speed_hz >= CLOCK_100M) { | 317 | if (spi->max_speed_hz >= CLOCK_100M) { |