Commit 7a7457ba authored by YueHaibing's avatar YueHaibing Committed by Greg Kroah-Hartman

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: default avatarYueHaibing <yuehaibing@huawei.com>
Reviewed-by: default avatarMukesh Ojha <mojha@codeaurora.org>
Reviewed-by: default avatarBaolin Wang <baolin.wang@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9ef8927f
...@@ -506,7 +506,7 @@ static void sprd_request_dma(struct uart_port *port) ...@@ -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;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment