diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2011-03-12 03:25:53 -0500 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2011-03-12 03:25:53 -0500 |
commit | 9c3c8afccb6a163fd2be739f511e863eab668702 (patch) | |
tree | e587a5377ada98fed8cfa6c8ee63125361f2818a /drivers/spi/spi_sh_msiof.c | |
parent | 290293eda2c6dd368476d71433bdef07c39a6829 (diff) | |
parent | a5abba989deceb731047425812d268daf7536575 (diff) |
Merge commit 'v2.6.38-rc8' into spi/next
Conflicts:
drivers/spi/pxa2xx_spi_pci.c
Diffstat (limited to 'drivers/spi/spi_sh_msiof.c')
-rw-r--r-- | drivers/spi/spi_sh_msiof.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/spi/spi_sh_msiof.c b/drivers/spi/spi_sh_msiof.c index da6e42ec856e..e00d94b22250 100644 --- a/drivers/spi/spi_sh_msiof.c +++ b/drivers/spi/spi_sh_msiof.c | |||
@@ -568,9 +568,11 @@ static int sh_msiof_spi_txrx(struct spi_device *spi, struct spi_transfer *t) | |||
568 | bytes_done = 0; | 568 | bytes_done = 0; |
569 | 569 | ||
570 | while (bytes_done < t->len) { | 570 | while (bytes_done < t->len) { |
571 | void *rx_buf = t->rx_buf ? t->rx_buf + bytes_done : NULL; | ||
572 | const void *tx_buf = t->tx_buf ? t->tx_buf + bytes_done : NULL; | ||
571 | n = sh_msiof_spi_txrx_once(p, tx_fifo, rx_fifo, | 573 | n = sh_msiof_spi_txrx_once(p, tx_fifo, rx_fifo, |
572 | t->tx_buf + bytes_done, | 574 | tx_buf, |
573 | t->rx_buf + bytes_done, | 575 | rx_buf, |
574 | words, bits); | 576 | words, bits); |
575 | if (n < 0) | 577 | if (n < 0) |
576 | break; | 578 | break; |