[ARM] 21285 serial: fix build error

drivers/serial/21285.c: In function 'serial21285_set_termios':
drivers/serial/21285.c:280: error: 'tty' undeclared (first use in this function)
drivers/serial/21285.c:280: error: (Each undeclared identifier is reported only once
drivers/serial/21285.c:280: error: for each function it appears in.)

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

authored by Russell King and committed by Russell King 2f65baff ae9458d6

+6 -2
+6 -2
drivers/serial/21285.c
··· 237 237 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/16); 238 238 quot = uart_get_divisor(port, baud); 239 239 240 + if (port->info && port->info->tty) { 241 + struct tty_struct *tty = port->info->tty; 242 + unsigned int b = port->uartclk / (16 * quot); 243 + tty_encode_baud_rate(tty, b, b); 244 + } 245 + 240 246 switch (termios->c_cflag & CSIZE) { 241 247 case CS5: 242 248 h_lcr = 0x00; ··· 282 276 port->read_status_mask = RXSTAT_OVERRUN; 283 277 if (termios->c_iflag & INPCK) 284 278 port->read_status_mask |= RXSTAT_FRAME | RXSTAT_PARITY; 285 - 286 - tty_encode_baud_rate(tty, baud, baud); 287 279 288 280 /* 289 281 * Which character status flags should we ignore?