Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=2f65baff3ab546d011b0e3f944eccd1ec5816d5d
Commit:     2f65baff3ab546d011b0e3f944eccd1ec5816d5d
Parent:     ae9458d6a0956aa21cb49e1251e35a8d4dacbe6e
Author:     Russell King <[EMAIL PROTECTED]>
AuthorDate: Thu Jan 31 21:30:24 2008 +0000
Committer:  Russell King <[EMAIL PROTECTED]>
CommitDate: Mon Feb 4 13:14:06 2008 +0000

    [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 <[EMAIL PROTECTED]>
---
 drivers/serial/21285.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/drivers/serial/21285.c b/drivers/serial/21285.c
index 6a48dfa..0276471 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,
        baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/16); 
        quot = uart_get_divisor(port, baud);
 
+       if (port->info && port->info->tty) {
+               struct tty_struct *tty = port->info->tty;
+               unsigned int b = port->uartclk / (16 * quot);
+               tty_encode_baud_rate(tty, b, b);
+       }
+
        switch (termios->c_cflag & CSIZE) {
        case CS5:
                h_lcr = 0x00;
@@ -277,8 +283,6 @@ serial21285_set_termios(struct uart_port *port, struct 
ktermios *termios,
        if (termios->c_iflag & INPCK)
                port->read_status_mask |= RXSTAT_FRAME | RXSTAT_PARITY;
 
-       tty_encode_baud_rate(tty,  baud, baud);
-
        /*
         * Which character status flags should we ignore?
         */
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to