|
@@ -388,7 +388,8 @@ omap2_mcspi_txrx_dma(struct spi_device *spi, struct spi_transfer *xfer)
|
|
|
|
|
|
if (tx != NULL) {
|
|
|
wait_for_completion(&mcspi_dma->dma_tx_completion);
|
|
|
- dma_unmap_single(&spi->dev, xfer->tx_dma, count, DMA_TO_DEVICE);
|
|
|
+ dma_unmap_single(mcspi->dev, xfer->tx_dma, count,
|
|
|
+ DMA_TO_DEVICE);
|
|
|
|
|
|
/* for TX_ONLY mode, be sure all words have shifted out */
|
|
|
if (rx == NULL) {
|
|
@@ -403,7 +404,8 @@ omap2_mcspi_txrx_dma(struct spi_device *spi, struct spi_transfer *xfer)
|
|
|
|
|
|
if (rx != NULL) {
|
|
|
wait_for_completion(&mcspi_dma->dma_rx_completion);
|
|
|
- dma_unmap_single(&spi->dev, xfer->rx_dma, count, DMA_FROM_DEVICE);
|
|
|
+ dma_unmap_single(mcspi->dev, xfer->rx_dma, count,
|
|
|
+ DMA_FROM_DEVICE);
|
|
|
omap2_mcspi_set_enable(spi, 0);
|
|
|
|
|
|
if (l & OMAP2_MCSPI_CHCONF_TURBO) {
|