mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
Fix typo in atmel_spi.c
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]>
This commit is contained in:
parent
f79abb828e
commit
85787a2bea
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue