tty: simserial: drop unused alt_speed handling
authorJohan Hovold <johan@kernel.org>
Tue, 6 Jun 2017 10:54:36 +0000 (12:54 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Jun 2017 09:49:58 +0000 (11:49 +0200)
This driver was setting the deprecated and broken alt_speed based on port
flags, but never provided a means to change the flags or to actually
change the speed.

Signed-off-by: Johan Hovold <johan@kernel.org>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Reviewed-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/ia64/hp/sim/simserial.c

index de8cba121013150eadcdfc04fb1ebbbfd7ae4047..70d52e9bb575ed5e3ab68616126acd53654a9ae5 100644 (file)
@@ -387,19 +387,6 @@ static int activate(struct tty_port *port, struct tty_struct *tty)
        }
 
        state->xmit.head = state->xmit.tail = 0;
-
-       /*
-        * Set up the tty->alt_speed kludge
-        */
-       if ((port->flags & ASYNC_SPD_MASK) == ASYNC_SPD_HI)
-               tty->alt_speed = 57600;
-       if ((port->flags & ASYNC_SPD_MASK) == ASYNC_SPD_VHI)
-               tty->alt_speed = 115200;
-       if ((port->flags & ASYNC_SPD_MASK) == ASYNC_SPD_SHI)
-               tty->alt_speed = 230400;
-       if ((port->flags & ASYNC_SPD_MASK) == ASYNC_SPD_WARP)
-               tty->alt_speed = 460800;
-
 errout:
        local_irq_restore(flags);
        return retval;