From: Laurent Pinchart Date: Fri, 6 Dec 2013 09:59:15 +0000 (+0100) Subject: serial: sh-sci: Don't check IRQ in verify port operation X-Git-Tag: v3.14-rc1~114^2~2^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bc14e00672b563f41a1ac1d421b5c78c94868983;p=kernel%2Fkernel-generic.git serial: sh-sci: Don't check IRQ in verify port operation The IRQ number can't be modified by the user as the port is fixed. There's no need to check the new IRQ number as it will be ignored by the core. Signed-off-by: Laurent Pinchart Acked-by: Greg Kroah-Hartman Signed-off-by: Simon Horman --- diff --git a/drivers/tty/serial/sh-sci.c b/drivers/tty/serial/sh-sci.c index 67dadbd..b3d0e00 100644 --- a/drivers/tty/serial/sh-sci.c +++ b/drivers/tty/serial/sh-sci.c @@ -2118,10 +2118,6 @@ static void sci_config_port(struct uart_port *port, int flags) static int sci_verify_port(struct uart_port *port, struct serial_struct *ser) { - struct sci_port *s = to_sci_port(port); - - if (ser->irq != s->cfg->irqs[SCIx_TXI_IRQ]) - return -EINVAL; if (ser->baud_base < 2400) /* No paper tape reader for Mitch.. */ return -EINVAL;