diff options
author | Joakim Tjernlund <Joakim.Tjernlund@transmode.se> | 2010-05-17 13:17:10 +0000 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2010-05-25 00:23:13 -0600 |
commit | 338ff2982d969a8e09ca356552cb5022ad380766 (patch) | |
tree | f67a5ec9c9825281dfb8c328a8e89a1711056a98 /drivers/spi | |
parent | 0398fb70940e1f10939d6126eafb760bd48d1566 (diff) | |
download | kernel_samsung_smdk4412-338ff2982d969a8e09ca356552cb5022ad380766.zip kernel_samsung_smdk4412-338ff2982d969a8e09ca356552cb5022ad380766.tar.gz kernel_samsung_smdk4412-338ff2982d969a8e09ca356552cb5022ad380766.tar.bz2 |
spi/spi_mpc8xxx: Do not use map_tx_dma to unmap rx_dma
This fixes a typo were map_tx_dma is used instead of
map_rx_dma, casing the driver to unmap rx_dma when it
shouldn't.
Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
Acked-by: Anton Vorontsov <cbouatmailru@gmail.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/spi_mpc8xxx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi_mpc8xxx.c b/drivers/spi/spi_mpc8xxx.c index 66517ce7..6e7aabe 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) if (mspi->map_tx_dma) dma_unmap_single(dev, mspi->tx_dma, t->len, DMA_TO_DEVICE); - if (mspi->map_tx_dma) + if (mspi->map_rx_dma) dma_unmap_single(dev, mspi->rx_dma, t->len, DMA_FROM_DEVICE); mspi->xfer_in_progress = NULL; } |