diff options
Diffstat (limited to 'drivers/char/serial167.c')
-rw-r--r-- | drivers/char/serial167.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/char/serial167.c b/drivers/char/serial167.c index 452370af95de..8dfd24721a82 100644 --- a/drivers/char/serial167.c +++ b/drivers/char/serial167.c | |||
@@ -64,6 +64,7 @@ | |||
64 | #include <linux/module.h> | 64 | #include <linux/module.h> |
65 | #include <linux/bitops.h> | 65 | #include <linux/bitops.h> |
66 | #include <linux/tty_flip.h> | 66 | #include <linux/tty_flip.h> |
67 | #include <linux/gfp.h> | ||
67 | 68 | ||
68 | #include <asm/system.h> | 69 | #include <asm/system.h> |
69 | #include <asm/io.h> | 70 | #include <asm/io.h> |
@@ -658,8 +659,7 @@ static irqreturn_t cd2401_rx_interrupt(int irq, void *dev_id) | |||
658 | info->mon.char_max = char_count; | 659 | info->mon.char_max = char_count; |
659 | info->mon.char_last = char_count; | 660 | info->mon.char_last = char_count; |
660 | #endif | 661 | #endif |
661 | len = tty_buffer_request_room(tty, char_count); | 662 | while (char_count--) { |
662 | while (len--) { | ||
663 | data = base_addr[CyRDR]; | 663 | data = base_addr[CyRDR]; |
664 | tty_insert_flip_char(tty, data, TTY_NORMAL); | 664 | tty_insert_flip_char(tty, data, TTY_NORMAL); |
665 | #ifdef CYCLOM_16Y_HACK | 665 | #ifdef CYCLOM_16Y_HACK |
@@ -1990,7 +1990,7 @@ void mvme167_serial_console_setup(int cflag) | |||
1990 | /* | 1990 | /* |
1991 | * Attempt to set up all channels to something reasonable, and | 1991 | * Attempt to set up all channels to something reasonable, and |
1992 | * bang out a INIT_CHAN command. We should then be able to limit | 1992 | * bang out a INIT_CHAN command. We should then be able to limit |
1993 | * the ammount of fiddling we have to do in normal running. | 1993 | * the amount of fiddling we have to do in normal running. |
1994 | */ | 1994 | */ |
1995 | 1995 | ||
1996 | for (ch = 3; ch >= 0; ch--) { | 1996 | for (ch = 3; ch >= 0; ch--) { |