mirror of https://gitee.com/openkylin/linux.git
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 <yuehaibing@huawei.com> Reviewed-by: Mukesh Ojha <mojha@codeaurora.org> Reviewed-by: Baolin Wang <baolin.wang@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
9ef8927f45
commit
7a7457ba40
|
@ -506,7 +506,7 @@ static void sprd_request_dma(struct uart_port *port)
|
||||||
sp->rx_dma.chn = dma_request_chan(port->dev, "rx");
|
sp->rx_dma.chn = dma_request_chan(port->dev, "rx");
|
||||||
if (IS_ERR(sp->rx_dma.chn)) {
|
if (IS_ERR(sp->rx_dma.chn)) {
|
||||||
dev_err(port->dev, "request RX DMA channel failed, ret = %ld\n",
|
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;
|
sp->rx_dma.enable = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue