aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/serial
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2008-01-31 16:30:24 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2008-02-04 08:14:06 -0500
commit2f65baff3ab546d011b0e3f944eccd1ec5816d5d (patch)
tree0f0b2887425a03f75f5820a4a6edba91c84d797c /drivers/serial
parentae9458d6a0956aa21cb49e1251e35a8d4dacbe6e (diff)
[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>
Diffstat (limited to 'drivers/serial')
-rw-r--r--drivers/serial/21285.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/serial/21285.c b/drivers/serial/21285.c
index 6a48dfa1efe8..0276471cb25e 100644
--- a/drivers/serial/21285.c
+++ b/drivers/serial/21285.c
@@ -237,6 +237,12 @@ serial21285_set_termios(struct uart_port *port, struct ktermios *termios,
237 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/16); 237 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/16);
238 quot = uart_get_divisor(port, baud); 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 switch (termios->c_cflag & CSIZE) { 246 switch (termios->c_cflag & CSIZE) {
241 case CS5: 247 case CS5:
242 h_lcr = 0x00; 248 h_lcr = 0x00;
@@ -277,8 +283,6 @@ serial21285_set_termios(struct uart_port *port, struct ktermios *termios,
277 if (termios->c_iflag & INPCK) 283 if (termios->c_iflag & INPCK)
278 port->read_status_mask |= RXSTAT_FRAME | RXSTAT_PARITY; 284 port->read_status_mask |= RXSTAT_FRAME | RXSTAT_PARITY;
279 285
280 tty_encode_baud_rate(tty, baud, baud);
281
282 /* 286 /*
283 * Which character status flags should we ignore? 287 * Which character status flags should we ignore?
284 */ 288 */