diff options
Diffstat (limited to 'drivers/tty/serial/atmel_serial.c')
-rw-r--r-- | drivers/tty/serial/atmel_serial.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/tty/serial/atmel_serial.c b/drivers/tty/serial/atmel_serial.c index c4f750314100..7b63677475c1 100644 --- a/drivers/tty/serial/atmel_serial.c +++ b/drivers/tty/serial/atmel_serial.c | |||
@@ -706,7 +706,7 @@ static void atmel_release_tx_dma(struct uart_port *port) | |||
706 | dmaengine_terminate_all(chan); | 706 | dmaengine_terminate_all(chan); |
707 | dma_release_channel(chan); | 707 | dma_release_channel(chan); |
708 | dma_unmap_sg(port->dev, &atmel_port->sg_tx, 1, | 708 | dma_unmap_sg(port->dev, &atmel_port->sg_tx, 1, |
709 | DMA_MEM_TO_DEV); | 709 | DMA_TO_DEVICE); |
710 | } | 710 | } |
711 | 711 | ||
712 | atmel_port->desc_tx = NULL; | 712 | atmel_port->desc_tx = NULL; |
@@ -804,7 +804,7 @@ static int atmel_prepare_tx_dma(struct uart_port *port) | |||
804 | nent = dma_map_sg(port->dev, | 804 | nent = dma_map_sg(port->dev, |
805 | &atmel_port->sg_tx, | 805 | &atmel_port->sg_tx, |
806 | 1, | 806 | 1, |
807 | DMA_MEM_TO_DEV); | 807 | DMA_TO_DEVICE); |
808 | 808 | ||
809 | if (!nent) { | 809 | if (!nent) { |
810 | dev_dbg(port->dev, "need to release resource of dma\n"); | 810 | dev_dbg(port->dev, "need to release resource of dma\n"); |
@@ -883,7 +883,7 @@ static void atmel_release_rx_dma(struct uart_port *port) | |||
883 | dmaengine_terminate_all(chan); | 883 | dmaengine_terminate_all(chan); |
884 | dma_release_channel(chan); | 884 | dma_release_channel(chan); |
885 | dma_unmap_sg(port->dev, &atmel_port->sg_rx, 1, | 885 | dma_unmap_sg(port->dev, &atmel_port->sg_rx, 1, |
886 | DMA_DEV_TO_MEM); | 886 | DMA_FROM_DEVICE); |
887 | } | 887 | } |
888 | 888 | ||
889 | atmel_port->desc_rx = NULL; | 889 | atmel_port->desc_rx = NULL; |
@@ -968,7 +968,7 @@ static int atmel_prepare_rx_dma(struct uart_port *port) | |||
968 | nent = dma_map_sg(port->dev, | 968 | nent = dma_map_sg(port->dev, |
969 | &atmel_port->sg_rx, | 969 | &atmel_port->sg_rx, |
970 | 1, | 970 | 1, |
971 | DMA_DEV_TO_MEM); | 971 | DMA_FROM_DEVICE); |
972 | 972 | ||
973 | if (!nent) { | 973 | if (!nent) { |
974 | dev_dbg(port->dev, "need to release resource of dma\n"); | 974 | dev_dbg(port->dev, "need to release resource of dma\n"); |