diff options
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/atmel_spi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/atmel_spi.c b/drivers/spi/atmel_spi.c index ad144054da30..b0469749310a 100644 --- a/drivers/spi/atmel_spi.c +++ b/drivers/spi/atmel_spi.c | |||
@@ -251,7 +251,7 @@ atmel_spi_dma_map_xfer(struct atmel_spi *as, struct spi_transfer *xfer) | |||
251 | xfer->rx_dma = dma_map_single(dev, | 251 | xfer->rx_dma = dma_map_single(dev, |
252 | xfer->rx_buf, xfer->len, | 252 | xfer->rx_buf, xfer->len, |
253 | DMA_FROM_DEVICE); | 253 | DMA_FROM_DEVICE); |
254 | if (dma_mapping_error(xfer->tx_dma)) { | 254 | if (dma_mapping_error(xfer->rx_dma)) { |
255 | if (xfer->tx_buf) | 255 | if (xfer->tx_buf) |
256 | dma_unmap_single(dev, | 256 | dma_unmap_single(dev, |
257 | xfer->tx_dma, xfer->len, | 257 | xfer->tx_dma, xfer->len, |