[SERIAL] Remove incorrect code from ioc4 serial driver

Serial drivers in general should not write uart_info->flags - they're
private to serial_core. Serial drivers have no need to fiddle with
tty->alt_speed, nor manipulate TTY_IO_ERROR in tty->flags. Fix the
ioc4 serial driver for both these points by simply removing the
offending code.

Acked-by: pfg@sgi.com
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

authored by Russell King and committed by Russell King fd401aee 5bc159e6

-14
-14
drivers/serial/ioc4_serial.c
··· 1717 1717 } 1718 1718 1719 1719 if (cflag & CRTSCTS) { 1720 - info->flags |= ASYNC_CTS_FLOW; 1721 1720 port->ip_sscr |= IOC4_SSCR_HFC_EN; 1722 1721 } 1723 1722 else { 1724 - info->flags &= ~ASYNC_CTS_FLOW; 1725 1723 port->ip_sscr &= ~IOC4_SSCR_HFC_EN; 1726 1724 } 1727 1725 writel(port->ip_sscr, &port->ip_serial_regs->sscr); ··· 1758 1760 1759 1761 info = the_port->info; 1760 1762 1761 - if (info->tty) { 1762 - set_bit(TTY_IO_ERROR, &info->tty->flags); 1763 - clear_bit(TTY_IO_ERROR, &info->tty->flags); 1764 - if ((info->flags & ASYNC_SPD_MASK) == ASYNC_SPD_HI) 1765 - info->tty->alt_speed = 57600; 1766 - if ((info->flags & ASYNC_SPD_MASK) == ASYNC_SPD_VHI) 1767 - info->tty->alt_speed = 115200; 1768 - if ((info->flags & ASYNC_SPD_MASK) == ASYNC_SPD_SHI) 1769 - info->tty->alt_speed = 230400; 1770 - if ((info->flags & ASYNC_SPD_MASK) == ASYNC_SPD_WARP) 1771 - info->tty->alt_speed = 460800; 1772 - } 1773 1763 local_open(port); 1774 1764 1775 1765 /* set the speed of the serial port */