From: Geert Uytterhoeven Date: Fri, 18 Sep 2015 11:08:27 +0000 (+0200) Subject: serial: sh-sci: Stop calling sci_start_rx() from sci_request_dma() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0e5c4b4d154ee0a34e39e1a587f71d4671783abf;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git serial: sh-sci: Stop calling sci_start_rx() from sci_request_dma() There's no need to call sci_start_rx() from sci_request_dma() when DMA setup fails, as sci_startup() will call sci_start_rx() anyway. Signed-off-by: Geert Uytterhoeven Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/serial/sh-sci.c b/drivers/tty/serial/sh-sci.c index 02aaf4d213d9..ac9ce8f1ff79 100644 --- a/drivers/tty/serial/sh-sci.c +++ b/drivers/tty/serial/sh-sci.c @@ -1386,7 +1386,6 @@ static void sci_request_dma(struct uart_port *port) "Failed to allocate Rx dma buffer, using PIO\n"); dma_release_channel(chan); s->chan_rx = NULL; - sci_start_rx(port); return; }