Re: [PATCH -next] serial: sprd: Fix a copy-paste err in sprd_request_dma()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 30 Mar 2019 at 09:36, YueHaibing <yuehaibing@xxxxxxxxxx> wrote:
>
> when dma_request_chan rx_dma fails, dev_err log should print rx_dma
> err log.
>
> Signed-off-by: YueHaibing <yuehaibing@xxxxxxxxxx>
> ---
>  drivers/tty/serial/sprd_serial.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> 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));

Thanks for fixing the mistake.
Reviewed-by: Baolin Wang <baolin.wang@xxxxxxxxxx>

-- 
Baolin Wang
Best Regards



[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux