diff options
author | Mark Brown <broonie@linaro.org> | 2014-01-23 08:13:30 -0500 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-01-23 08:13:30 -0500 |
commit | 341e6df6c887b1101970908d33c110fb32688d8c (patch) | |
tree | e65dbc47be9e6aaacc8db860aeab1581fe2f4f1e /drivers/spi/spi-rspi.c | |
parent | 8aeab58e560da02772d6018eb4d6923514476a04 (diff) | |
parent | df900e678308d7fa1290681bfc336716b084b3c5 (diff) |
Merge commit 'spi/fix/rcar' into spi-linus
Diffstat (limited to 'drivers/spi/spi-rspi.c')
-rw-r--r-- | drivers/spi/spi-rspi.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/spi/spi-rspi.c b/drivers/spi/spi-rspi.c index d1e89bb352d8..28987d9fcfe5 100644 --- a/drivers/spi/spi-rspi.c +++ b/drivers/spi/spi-rspi.c | |||
@@ -548,7 +548,7 @@ static void rspi_receive_init(const struct rspi_data *rspi) | |||
548 | rspi_read16(rspi, RSPI_SPDR); /* dummy read */ | 548 | rspi_read16(rspi, RSPI_SPDR); /* dummy read */ |
549 | if (spsr & SPSR_OVRF) | 549 | if (spsr & SPSR_OVRF) |
550 | rspi_write8(rspi, rspi_read8(rspi, RSPI_SPSR) & ~SPSR_OVRF, | 550 | rspi_write8(rspi, rspi_read8(rspi, RSPI_SPSR) & ~SPSR_OVRF, |
551 | RSPI_SPCR); | 551 | RSPI_SPSR); |
552 | } | 552 | } |
553 | 553 | ||
554 | static int rspi_receive_pio(struct rspi_data *rspi, struct spi_message *mesg, | 554 | static int rspi_receive_pio(struct rspi_data *rspi, struct spi_message *mesg, |
@@ -984,8 +984,9 @@ static int rspi_probe(struct platform_device *pdev) | |||
984 | INIT_WORK(&rspi->ws, rspi_work); | 984 | INIT_WORK(&rspi->ws, rspi_work); |
985 | init_waitqueue_head(&rspi->wait); | 985 | init_waitqueue_head(&rspi->wait); |
986 | 986 | ||
987 | master->num_chipselect = rspi_pd->num_chipselect; | 987 | if (rspi_pd && rspi_pd->num_chipselect) |
988 | if (!master->num_chipselect) | 988 | master->num_chipselect = rspi_pd->num_chipselect; |
989 | else | ||
989 | master->num_chipselect = 2; /* default */ | 990 | master->num_chipselect = 2; /* default */ |
990 | 991 | ||
991 | master->bus_num = pdev->id; | 992 | master->bus_num = pdev->id; |