diff options
author | Axel Lin <axel.lin@ingics.com> | 2014-02-11 22:07:30 +0800 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-02-12 16:25:32 +0000 |
commit | 354312f16e49add1da78f0cfb2bcb633709d0071 (patch) | |
tree | 52191dc553cd118cfff145f61caf65a4107017f8 /drivers/spi/spi-omap-uwire.c | |
parent | 3c604de496d7568b3fddb9f2531630aa89908186 (diff) | |
download | talos-obmc-linux-354312f16e49add1da78f0cfb2bcb633709d0071.tar.gz talos-obmc-linux-354312f16e49add1da78f0cfb2bcb633709d0071.zip |
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-omap-uwire.c')
-rw-r--r-- | drivers/spi/spi-omap-uwire.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/spi/spi-omap-uwire.c b/drivers/spi/spi-omap-uwire.c index 9313fd3b413d..462ddd458217 100644 --- a/drivers/spi/spi-omap-uwire.c +++ b/drivers/spi/spi-omap-uwire.c @@ -332,12 +332,6 @@ static int uwire_setup_transfer(struct spi_device *spi, struct spi_transfer *t) uwire = spi_master_get_devdata(spi->master); - if (spi->chip_select > 3) { - pr_debug("%s: cs%d?\n", dev_name(&spi->dev), spi->chip_select); - status = -ENODEV; - goto done; - } - bits = spi->bits_per_word; if (t != NULL && t->bits_per_word) bits = t->bits_per_word; |