diff options
Diffstat (limited to 'drivers/char')
-rw-r--r-- | drivers/char/generic_serial.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/drivers/char/generic_serial.c b/drivers/char/generic_serial.c index 5e59c0b42731..4711d9b3a595 100644 --- a/drivers/char/generic_serial.c +++ b/drivers/char/generic_serial.c | |||
@@ -746,11 +746,9 @@ void gs_set_termios (struct tty_struct * tty, | |||
746 | gs_dprintk (GS_DEBUG_TERMIOS, "termios structure (%p):\n", tiosp); | 746 | gs_dprintk (GS_DEBUG_TERMIOS, "termios structure (%p):\n", tiosp); |
747 | } | 747 | } |
748 | 748 | ||
749 | #if 0 | ||
750 | /* This is an optimization that is only allowed for dumb cards */ | 749 | /* This is an optimization that is only allowed for dumb cards */ |
751 | /* Smart cards require knowledge of iflags and oflags too: that | 750 | /* Smart cards require knowledge of iflags and oflags too: that |
752 | might change hardware cooking mode.... */ | 751 | might change hardware cooking mode.... */ |
753 | #endif | ||
754 | if (old_termios) { | 752 | if (old_termios) { |
755 | if( (tiosp->c_iflag == old_termios->c_iflag) | 753 | if( (tiosp->c_iflag == old_termios->c_iflag) |
756 | && (tiosp->c_oflag == old_termios->c_oflag) | 754 | && (tiosp->c_oflag == old_termios->c_oflag) |
@@ -774,14 +772,7 @@ void gs_set_termios (struct tty_struct * tty, | |||
774 | if(!memcmp(tiosp->c_cc, old_termios->c_cc, NCC)) printk("c_cc changed\n"); | 772 | if(!memcmp(tiosp->c_cc, old_termios->c_cc, NCC)) printk("c_cc changed\n"); |
775 | } | 773 | } |
776 | 774 | ||
777 | baudrate = tiosp->c_cflag & CBAUD; | 775 | baudrate = tty_get_baud_rate(tty); |
778 | if (baudrate & CBAUDEX) { | ||
779 | baudrate &= ~CBAUDEX; | ||
780 | if ((baudrate < 1) || (baudrate > 4)) | ||
781 | tiosp->c_cflag &= ~CBAUDEX; | ||
782 | else | ||
783 | baudrate += 15; | ||
784 | } | ||
785 | 776 | ||
786 | baudrate = gs_baudrates[baudrate]; | 777 | baudrate = gs_baudrates[baudrate]; |
787 | if ((tiosp->c_cflag & CBAUD) == B38400) { | 778 | if ((tiosp->c_cflag & CBAUD) == B38400) { |