aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2019-03-30 01:47:24 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-04-16 15:21:33 +0200
commit7a7457ba40f1474aa1bae2010b6f8582ba5ed57f (patch)
treeb5e9dd97b894d063e3f4ddc8452f200795e40549 /drivers/tty
parentn_tty: check for negative and zero space return from tty_write_room (diff)
downloadlinux-dev-7a7457ba40f1474aa1bae2010b6f8582ba5ed57f.tar.xz
linux-dev-7a7457ba40f1474aa1bae2010b6f8582ba5ed57f.zip
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>
Diffstat (limited to 'drivers/tty')
-rw-r--r--drivers/tty/serial/sprd_serial.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/sprd_serial.c b/drivers/tty/serial/sprd_serial.c
index 6aebd77cd3c0..73d71a4e6c0c 100644
--- a/drivers/tty/serial/sprd_serial.c
+++ b/drivers/tty/serial/sprd_serial.c
@@ -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;
}
}