aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/serial167.c
diff options
context:
space:
mode:
authorAndrea Bastoni <bastoni@cs.unc.edu>2010-05-30 19:16:45 -0400
committerAndrea Bastoni <bastoni@cs.unc.edu>2010-05-30 19:16:45 -0400
commitada47b5fe13d89735805b566185f4885f5a3f750 (patch)
tree644b88f8a71896307d71438e9b3af49126ffb22b /drivers/char/serial167.c
parent43e98717ad40a4ae64545b5ba047c7b86aa44f4f (diff)
parent3280f21d43ee541f97f8cda5792150d2dbec20d5 (diff)
Merge branch 'wip-2.6.34' into old-private-masterarchived-private-master
Diffstat (limited to 'drivers/char/serial167.c')
-rw-r--r--drivers/char/serial167.c6
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--) {