aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi_mpc8xxx.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/spi/spi_mpc8xxx.c')
-rw-r--r--drivers/spi/spi_mpc8xxx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi_mpc8xxx.c b/drivers/spi/spi_mpc8xxx.c
index 66517ce750f3..6e7aabe8db18 100644
--- a/drivers/spi/spi_mpc8xxx.c
+++ b/drivers/spi/spi_mpc8xxx.c
@@ -515,7 +515,7 @@ static void mpc8xxx_spi_cpm_bufs_complete(struct mpc8xxx_spi *mspi)
515 515
516 if (mspi->map_tx_dma) 516 if (mspi->map_tx_dma)
517 dma_unmap_single(dev, mspi->tx_dma, t->len, DMA_TO_DEVICE); 517 dma_unmap_single(dev, mspi->tx_dma, t->len, DMA_TO_DEVICE);
518 if (mspi->map_tx_dma) 518 if (mspi->map_rx_dma)
519 dma_unmap_single(dev, mspi->rx_dma, t->len, DMA_FROM_DEVICE); 519 dma_unmap_single(dev, mspi->rx_dma, t->len, DMA_FROM_DEVICE);
520 mspi->xfer_in_progress = NULL; 520 mspi->xfer_in_progress = NULL;
521} 521}