summaryrefslogtreecommitdiffstats
path: root/drivers/spi
diff options
context:
space:
mode:
authorTeresa Gámez <t.gamez@phytec.de>2013-06-19 09:09:43 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-06-21 08:05:49 +0200
commite3de0065c47679c6398961cd5be3df471e692a5e (patch)
tree4685b1bb6356bdd64a2b05b75840657ead2d0a36 /drivers/spi
parent693a9874fe50abd1542ac0162dfeeba8468e93b3 (diff)
downloadbarebox-e3de0065c47679c6398961cd5be3df471e692a5e.tar.gz
barebox-e3de0065c47679c6398961cd5be3df471e692a5e.tar.xz
omap3_spi: Remove CS check in driver
Board file or DT has to take care that the correct chip select and bus values are used. Signed-off-by: Teresa Gámez <t.gamez@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/spi')
-rw-r--r--drivers/spi/omap3_spi.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/spi/omap3_spi.c b/drivers/spi/omap3_spi.c
index e6581dfd32..02aacfff21 100644
--- a/drivers/spi/omap3_spi.c
+++ b/drivers/spi/omap3_spi.c
@@ -325,17 +325,6 @@ static int omap3_spi_transfer(struct spi_device *spi, struct spi_message *mesg)
static int omap3_spi_setup(struct spi_device *spi)
{
- struct spi_master *master = spi->master;
-
- if (((master->bus_num == 1) && (spi->chip_select > 3)) ||
- ((master->bus_num == 2) && (spi->chip_select > 1)) ||
- ((master->bus_num == 3) && (spi->chip_select > 1)) ||
- ((master->bus_num == 4) && (spi->chip_select > 0))) {
- printf("SPI error: unsupported chip select %i \
- on bus %i\n", spi->chip_select, master->bus_num);
- return -EINVAL;
- }
-
if (spi->max_speed_hz > OMAP3_MCSPI_MAX_FREQ) {
printf("SPI error: unsupported frequency %i Hz. \
Max frequency is 48 Mhz\n", spi->max_speed_hz);