diff options
author | Axel Lin <axel.lin@ingics.com> | 2014-02-11 15:07:30 +0100 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-02-12 17:25:32 +0100 |
commit | 354312f16e49add1da78f0cfb2bcb633709d0071 (patch) | |
tree | 52191dc553cd118cfff145f61caf65a4107017f8 /drivers/spi/spi-mpc52xx.c | |
parent | spi: tegra20-slink: Convert to use master->max_speed_hz (diff) | |
download | linux-354312f16e49add1da78f0cfb2bcb633709d0071.tar.xz 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-mpc52xx.c')
-rw-r--r-- | drivers/spi/spi-mpc52xx.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/spi/spi-mpc52xx.c b/drivers/spi/spi-mpc52xx.c index 7c675fe83101..e3d29a56d70a 100644 --- a/drivers/spi/spi-mpc52xx.c +++ b/drivers/spi/spi-mpc52xx.c @@ -365,9 +365,6 @@ static int mpc52xx_spi_setup(struct spi_device *spi) if (spi->mode & ~(SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST)) return -EINVAL; - if (spi->chip_select >= spi->master->num_chipselect) - return -EINVAL; - return 0; } |