diff options
Diffstat (limited to 'drivers/spi/spi-omap2-mcspi.c')
-rw-r--r-- | drivers/spi/spi-omap2-mcspi.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/spi/spi-omap2-mcspi.c b/drivers/spi/spi-omap2-mcspi.c index 0c73dd4f43a0..7d46b15e1520 100644 --- a/drivers/spi/spi-omap2-mcspi.c +++ b/drivers/spi/spi-omap2-mcspi.c | |||
@@ -388,7 +388,8 @@ omap2_mcspi_txrx_dma(struct spi_device *spi, struct spi_transfer *xfer) | |||
388 | 388 | ||
389 | if (tx != NULL) { | 389 | if (tx != NULL) { |
390 | wait_for_completion(&mcspi_dma->dma_tx_completion); | 390 | wait_for_completion(&mcspi_dma->dma_tx_completion); |
391 | dma_unmap_single(&spi->dev, xfer->tx_dma, count, DMA_TO_DEVICE); | 391 | dma_unmap_single(mcspi->dev, xfer->tx_dma, count, |
392 | DMA_TO_DEVICE); | ||
392 | 393 | ||
393 | /* for TX_ONLY mode, be sure all words have shifted out */ | 394 | /* for TX_ONLY mode, be sure all words have shifted out */ |
394 | if (rx == NULL) { | 395 | if (rx == NULL) { |
@@ -403,7 +404,8 @@ omap2_mcspi_txrx_dma(struct spi_device *spi, struct spi_transfer *xfer) | |||
403 | 404 | ||
404 | if (rx != NULL) { | 405 | if (rx != NULL) { |
405 | wait_for_completion(&mcspi_dma->dma_rx_completion); | 406 | wait_for_completion(&mcspi_dma->dma_rx_completion); |
406 | dma_unmap_single(&spi->dev, xfer->rx_dma, count, DMA_FROM_DEVICE); | 407 | dma_unmap_single(mcspi->dev, xfer->rx_dma, count, |
408 | DMA_FROM_DEVICE); | ||
407 | omap2_mcspi_set_enable(spi, 0); | 409 | omap2_mcspi_set_enable(spi, 0); |
408 | 410 | ||
409 | if (l & OMAP2_MCSPI_CHCONF_TURBO) { | 411 | if (l & OMAP2_MCSPI_CHCONF_TURBO) { |
@@ -1032,7 +1034,7 @@ static int omap2_mcspi_transfer_one_message(struct spi_master *master, | |||
1032 | return 0; | 1034 | return 0; |
1033 | } | 1035 | } |
1034 | 1036 | ||
1035 | static int __init omap2_mcspi_master_setup(struct omap2_mcspi *mcspi) | 1037 | static int __devinit omap2_mcspi_master_setup(struct omap2_mcspi *mcspi) |
1036 | { | 1038 | { |
1037 | struct spi_master *master = mcspi->master; | 1039 | struct spi_master *master = mcspi->master; |
1038 | struct omap2_mcspi_regs *ctx = &mcspi->ctx; | 1040 | struct omap2_mcspi_regs *ctx = &mcspi->ctx; |