mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-19 18:53:52 +08:00
drivers/tty/serial: use correct type for dma_map/unmap
dma_{un}map_* uses 'enum dma_data_direction' not 'enum dma_transfer_direction'. Signed-off-by: Wolfram Sang <wsa@the-dreams.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
2fbe6c5e3e
commit
48479148a2
@ -706,7 +706,7 @@ static void atmel_release_tx_dma(struct uart_port *port)
|
|||||||
dmaengine_terminate_all(chan);
|
dmaengine_terminate_all(chan);
|
||||||
dma_release_channel(chan);
|
dma_release_channel(chan);
|
||||||
dma_unmap_sg(port->dev, &atmel_port->sg_tx, 1,
|
dma_unmap_sg(port->dev, &atmel_port->sg_tx, 1,
|
||||||
DMA_MEM_TO_DEV);
|
DMA_TO_DEVICE);
|
||||||
}
|
}
|
||||||
|
|
||||||
atmel_port->desc_tx = NULL;
|
atmel_port->desc_tx = NULL;
|
||||||
@ -804,7 +804,7 @@ static int atmel_prepare_tx_dma(struct uart_port *port)
|
|||||||
nent = dma_map_sg(port->dev,
|
nent = dma_map_sg(port->dev,
|
||||||
&atmel_port->sg_tx,
|
&atmel_port->sg_tx,
|
||||||
1,
|
1,
|
||||||
DMA_MEM_TO_DEV);
|
DMA_TO_DEVICE);
|
||||||
|
|
||||||
if (!nent) {
|
if (!nent) {
|
||||||
dev_dbg(port->dev, "need to release resource of dma\n");
|
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)
|
|||||||
dmaengine_terminate_all(chan);
|
dmaengine_terminate_all(chan);
|
||||||
dma_release_channel(chan);
|
dma_release_channel(chan);
|
||||||
dma_unmap_sg(port->dev, &atmel_port->sg_rx, 1,
|
dma_unmap_sg(port->dev, &atmel_port->sg_rx, 1,
|
||||||
DMA_DEV_TO_MEM);
|
DMA_FROM_DEVICE);
|
||||||
}
|
}
|
||||||
|
|
||||||
atmel_port->desc_rx = NULL;
|
atmel_port->desc_rx = NULL;
|
||||||
@ -968,7 +968,7 @@ static int atmel_prepare_rx_dma(struct uart_port *port)
|
|||||||
nent = dma_map_sg(port->dev,
|
nent = dma_map_sg(port->dev,
|
||||||
&atmel_port->sg_rx,
|
&atmel_port->sg_rx,
|
||||||
1,
|
1,
|
||||||
DMA_DEV_TO_MEM);
|
DMA_FROM_DEVICE);
|
||||||
|
|
||||||
if (!nent) {
|
if (!nent) {
|
||||||
dev_dbg(port->dev, "need to release resource of dma\n");
|
dev_dbg(port->dev, "need to release resource of dma\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user