diff options
Diffstat (limited to 'drivers/char/keyboard.c')
-rw-r--r-- | drivers/char/keyboard.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/char/keyboard.c b/drivers/char/keyboard.c index 25be2102a60a..a7ca75212bfe 100644 --- a/drivers/char/keyboard.c +++ b/drivers/char/keyboard.c | |||
@@ -299,7 +299,7 @@ int kbd_rate(struct kbd_repeat *rep) | |||
299 | */ | 299 | */ |
300 | static void put_queue(struct vc_data *vc, int ch) | 300 | static void put_queue(struct vc_data *vc, int ch) |
301 | { | 301 | { |
302 | struct tty_struct *tty = vc->vc_tty; | 302 | struct tty_struct *tty = vc->port.tty; |
303 | 303 | ||
304 | if (tty) { | 304 | if (tty) { |
305 | tty_insert_flip_char(tty, ch, 0); | 305 | tty_insert_flip_char(tty, ch, 0); |
@@ -309,7 +309,7 @@ static void put_queue(struct vc_data *vc, int ch) | |||
309 | 309 | ||
310 | static void puts_queue(struct vc_data *vc, char *cp) | 310 | static void puts_queue(struct vc_data *vc, char *cp) |
311 | { | 311 | { |
312 | struct tty_struct *tty = vc->vc_tty; | 312 | struct tty_struct *tty = vc->port.tty; |
313 | 313 | ||
314 | if (!tty) | 314 | if (!tty) |
315 | return; | 315 | return; |
@@ -485,7 +485,7 @@ static void fn_show_ptregs(struct vc_data *vc) | |||
485 | 485 | ||
486 | static void fn_hold(struct vc_data *vc) | 486 | static void fn_hold(struct vc_data *vc) |
487 | { | 487 | { |
488 | struct tty_struct *tty = vc->vc_tty; | 488 | struct tty_struct *tty = vc->port.tty; |
489 | 489 | ||
490 | if (rep || !tty) | 490 | if (rep || !tty) |
491 | return; | 491 | return; |
@@ -563,7 +563,7 @@ static void fn_inc_console(struct vc_data *vc) | |||
563 | 563 | ||
564 | static void fn_send_intr(struct vc_data *vc) | 564 | static void fn_send_intr(struct vc_data *vc) |
565 | { | 565 | { |
566 | struct tty_struct *tty = vc->vc_tty; | 566 | struct tty_struct *tty = vc->port.tty; |
567 | 567 | ||
568 | if (!tty) | 568 | if (!tty) |
569 | return; | 569 | return; |
@@ -1162,7 +1162,7 @@ static void kbd_keycode(unsigned int keycode, int down, int hw_raw) | |||
1162 | struct keyboard_notifier_param param = { .vc = vc, .value = keycode, .down = down }; | 1162 | struct keyboard_notifier_param param = { .vc = vc, .value = keycode, .down = down }; |
1163 | int rc; | 1163 | int rc; |
1164 | 1164 | ||
1165 | tty = vc->vc_tty; | 1165 | tty = vc->port.tty; |
1166 | 1166 | ||
1167 | if (tty && (!tty->driver_data)) { | 1167 | if (tty && (!tty->driver_data)) { |
1168 | /* No driver data? Strange. Okay we fix it then. */ | 1168 | /* No driver data? Strange. Okay we fix it then. */ |