aboutsummaryrefslogtreecommitdiffstats
path: root/arch/alpha/kernel/srmcons.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/alpha/kernel/srmcons.c')
-rw-r--r--arch/alpha/kernel/srmcons.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/alpha/kernel/srmcons.c b/arch/alpha/kernel/srmcons.c
index 59b7bbad8394..21b57a66e809 100644
--- a/arch/alpha/kernel/srmcons.c
+++ b/arch/alpha/kernel/srmcons.c
@@ -46,13 +46,14 @@ typedef union _srmcons_result {
46static int 46static int
47srmcons_do_receive_chars(struct tty_struct *tty) 47srmcons_do_receive_chars(struct tty_struct *tty)
48{ 48{
49 struct tty_port *port = tty->port;
49 srmcons_result result; 50 srmcons_result result;
50 int count = 0, loops = 0; 51 int count = 0, loops = 0;
51 52
52 do { 53 do {
53 result.as_long = callback_getc(0); 54 result.as_long = callback_getc(0);
54 if (result.bits.status < 2) { 55 if (result.bits.status < 2) {
55 tty_insert_flip_char(tty, (char)result.bits.c, 0); 56 tty_insert_flip_char(port, (char)result.bits.c, 0);
56 count++; 57 count++;
57 } 58 }
58 } while((result.bits.status & 1) && (++loops < 10)); 59 } while((result.bits.status & 1) && (++loops < 10));