mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
serial: sprd: Fix a copy-paste err in sprd_request_dma()
when dma_request_chan rx_dma fails, dev_err log should print rx_dma err log. Signed-off-by: YueHaibing <[email protected]> Reviewed-by: Mukesh Ojha <[email protected]> Reviewed-by: Baolin Wang <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
9ef8927f45
commit
7a7457ba40
1 changed files with 1 additions and 1 deletions
|
|
@ -506,7 +506,7 @@ static void sprd_request_dma(struct uart_port *port)
|
|||
sp->rx_dma.chn = dma_request_chan(port->dev, "rx");
|
||||
if (IS_ERR(sp->rx_dma.chn)) {
|
||||
dev_err(port->dev, "request RX DMA channel failed, ret = %ld\n",
|
||||
PTR_ERR(sp->tx_dma.chn));
|
||||
PTR_ERR(sp->rx_dma.chn));
|
||||
sp->rx_dma.enable = false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue