diff options
author | Alan Cox <alan@lxorguk.ukuu.org.uk> | 2006-09-29 05:01:38 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-09-29 12:18:24 -0400 |
commit | 1db27c11e9a0c6d659040ac0b7c64a339e248fa1 (patch) | |
tree | 213dc86e25d734ab59ddf0f2074c1317b28e3f28 /drivers | |
parent | d720bc4b8fc5d6d179ef094908d4fbb5e436ffad (diff) |
[PATCH] istallion: Remove private baud rate decoding, which is also broken in this case on some platforms
Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/char/istallion.c | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/drivers/char/istallion.c b/drivers/char/istallion.c index 8c09997cc3d6..6b4d82a4565f 100644 --- a/drivers/char/istallion.c +++ b/drivers/char/istallion.c | |||
@@ -612,16 +612,6 @@ MODULE_DEVICE_TABLE(pci, istallion_pci_tbl); | |||
612 | #define MINOR2BRD(min) (((min) & 0xc0) >> 6) | 612 | #define MINOR2BRD(min) (((min) & 0xc0) >> 6) |
613 | #define MINOR2PORT(min) ((min) & 0x3f) | 613 | #define MINOR2PORT(min) ((min) & 0x3f) |
614 | 614 | ||
615 | /* | ||
616 | * Define a baud rate table that converts termios baud rate selector | ||
617 | * into the actual baud rate value. All baud rate calculations are based | ||
618 | * on the actual baud rate required. | ||
619 | */ | ||
620 | static unsigned int stli_baudrates[] = { | ||
621 | 0, 50, 75, 110, 134, 150, 200, 300, 600, 1200, 1800, 2400, 4800, | ||
622 | 9600, 19200, 38400, 57600, 115200, 230400, 460800, 921600 | ||
623 | }; | ||
624 | |||
625 | /*****************************************************************************/ | 615 | /*****************************************************************************/ |
626 | 616 | ||
627 | /* | 617 | /* |
@@ -2747,15 +2737,7 @@ static void stli_mkasyport(stliport_t *portp, asyport_t *pp, struct termios *tio | |||
2747 | /* | 2737 | /* |
2748 | * Start of by setting the baud, char size, parity and stop bit info. | 2738 | * Start of by setting the baud, char size, parity and stop bit info. |
2749 | */ | 2739 | */ |
2750 | pp->baudout = tiosp->c_cflag & CBAUD; | 2740 | pp->baudout = tty_get_baud_rate(portp->tty); |
2751 | if (pp->baudout & CBAUDEX) { | ||
2752 | pp->baudout &= ~CBAUDEX; | ||
2753 | if ((pp->baudout < 1) || (pp->baudout > 4)) | ||
2754 | tiosp->c_cflag &= ~CBAUDEX; | ||
2755 | else | ||
2756 | pp->baudout += 15; | ||
2757 | } | ||
2758 | pp->baudout = stli_baudrates[pp->baudout]; | ||
2759 | if ((tiosp->c_cflag & CBAUD) == B38400) { | 2741 | if ((tiosp->c_cflag & CBAUD) == B38400) { |
2760 | if ((portp->flags & ASYNC_SPD_MASK) == ASYNC_SPD_HI) | 2742 | if ((portp->flags & ASYNC_SPD_MASK) == ASYNC_SPD_HI) |
2761 | pp->baudout = 57600; | 2743 | pp->baudout = 57600; |