serial: sh-sci: Don't check IRQ in verify port operation
[firefly-linux-kernel-4.4.55.git] / drivers / tty / serial / sh-sci.c
index 8c17d551f32bc594622c2d5f20fdde830c1f6c86..b3d0e00ecedfb44de362d412006387bf4a9a5771 100644 (file)
@@ -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;
@@ -2248,7 +2244,7 @@ static int sci_init_single(struct platform_device *dev,
 
        port->mapbase           = p->mapbase;
        port->type              = p->type;
-       port->flags             = p->flags;
+       port->flags             = UPF_FIXED_PORT | p->flags;
        port->regshift          = p->regshift;
 
        /*