From: Geert Uytterhoeven Date: Fri, 21 Aug 2015 18:02:28 +0000 (+0200) Subject: serial: sh-sci: Use SCIF_DR instead of hardcoded literal 1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=54af5001e1b804f93aa02b1265857f19ad15784f;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git serial: sh-sci: Use SCIF_DR instead of hardcoded literal 1 Signed-off-by: Geert Uytterhoeven Acked-by: Laurent Pinchart Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/serial/sh-sci.c b/drivers/tty/serial/sh-sci.c index fa26be7f9414..300f641e730d 100644 --- a/drivers/tty/serial/sh-sci.c +++ b/drivers/tty/serial/sh-sci.c @@ -960,7 +960,8 @@ static irqreturn_t sci_rx_interrupt(int irq, void *ptr) } serial_port_out(port, SCSCR, scr); /* Clear current interrupt */ - serial_port_out(port, SCxSR, ssr & ~(1 | SCxSR_RDxF(port))); + serial_port_out(port, SCxSR, + ssr & ~(SCIF_DR | SCxSR_RDxF(port))); dev_dbg(port->dev, "Rx IRQ %lu: setup t-out in %u jiffies\n", jiffies, s->rx_timeout); mod_timer(&s->rx_timer, jiffies + s->rx_timeout);