Skip to content

Commit

Permalink
Fix typo in atmel_spi.c
Browse files Browse the repository at this point in the history
Fix cut 'n paste bug in Atmel SPI driver.

Signed-off-by: Andrew Victor <[email protected]>
Acked-by: David Brownell <[email protected]>
Acked-by: Haavard Skinnemoen <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Andrew Victor authored and Linus Torvalds committed Aug 31, 2007
1 parent f79abb8 commit 85787a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/spi/atmel_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ atmel_spi_dma_map_xfer(struct atmel_spi *as, struct spi_transfer *xfer)
xfer->rx_dma = dma_map_single(dev,
xfer->rx_buf, xfer->len,
DMA_FROM_DEVICE);
if (dma_mapping_error(xfer->tx_dma)) {
if (dma_mapping_error(xfer->rx_dma)) {
if (xfer->tx_buf)
dma_unmap_single(dev,
xfer->tx_dma, xfer->len,
Expand Down

0 comments on commit 85787a2

Please sign in to comment.