diff options
author | Jiri Slaby <jslaby@suse.cz> | 2012-03-05 08:52:33 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-03-08 15:48:27 -0500 |
commit | 2fcd5caf6d9dbf274ac7ef277f1cc541f1be9784 (patch) | |
tree | ba8be3c67145446476f8206693521d407184409c /arch/ia64 | |
parent | 7f32f8dd349bae106eccb0b9759c932875d6622e (diff) |
TTY: simserial, remove some tty ops
All ->start, ->stop and ->wait_until_sent are empty and need not be
defined. The time to remove them is now.
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/ia64')
-rw-r--r-- | arch/ia64/hp/sim/simserial.c | 39 |
1 files changed, 1 insertions, 38 deletions
diff --git a/arch/ia64/hp/sim/simserial.c b/arch/ia64/hp/sim/simserial.c index 909357e32c8d..d173dba306df 100644 --- a/arch/ia64/hp/sim/simserial.c +++ b/arch/ia64/hp/sim/simserial.c | |||
@@ -64,32 +64,7 @@ static struct console *console; | |||
64 | 64 | ||
65 | extern struct console *console_drivers; /* from kernel/printk.c */ | 65 | extern struct console *console_drivers; /* from kernel/printk.c */ |
66 | 66 | ||
67 | /* | 67 | static void receive_chars(struct tty_struct *tty) |
68 | * ------------------------------------------------------------ | ||
69 | * rs_stop() and rs_start() | ||
70 | * | ||
71 | * This routines are called before setting or resetting tty->stopped. | ||
72 | * They enable or disable transmitter interrupts, as necessary. | ||
73 | * ------------------------------------------------------------ | ||
74 | */ | ||
75 | static void rs_stop(struct tty_struct *tty) | ||
76 | { | ||
77 | #ifdef SIMSERIAL_DEBUG | ||
78 | printk("rs_stop: tty->stopped=%d tty->hw_stopped=%d tty->flow_stopped=%d\n", | ||
79 | tty->stopped, tty->hw_stopped, tty->flow_stopped); | ||
80 | #endif | ||
81 | |||
82 | } | ||
83 | |||
84 | static void rs_start(struct tty_struct *tty) | ||
85 | { | ||
86 | #ifdef SIMSERIAL_DEBUG | ||
87 | printk("rs_start: tty->stopped=%d tty->hw_stopped=%d tty->flow_stopped=%d\n", | ||
88 | tty->stopped, tty->hw_stopped, tty->flow_stopped); | ||
89 | #endif | ||
90 | } | ||
91 | |||
92 | static void receive_chars(struct tty_struct *tty) | ||
93 | { | 68 | { |
94 | unsigned char ch; | 69 | unsigned char ch; |
95 | static unsigned char seen_esc = 0; | 70 | static unsigned char seen_esc = 0; |
@@ -406,7 +381,6 @@ static void rs_set_termios(struct tty_struct *tty, struct ktermios *old_termios) | |||
406 | if ((old_termios->c_cflag & CRTSCTS) && | 381 | if ((old_termios->c_cflag & CRTSCTS) && |
407 | !(tty->termios->c_cflag & CRTSCTS)) { | 382 | !(tty->termios->c_cflag & CRTSCTS)) { |
408 | tty->hw_stopped = 0; | 383 | tty->hw_stopped = 0; |
409 | rs_start(tty); | ||
410 | } | 384 | } |
411 | } | 385 | } |
412 | /* | 386 | /* |
@@ -514,14 +488,6 @@ static void rs_close(struct tty_struct *tty, struct file * filp) | |||
514 | } | 488 | } |
515 | 489 | ||
516 | /* | 490 | /* |
517 | * rs_wait_until_sent() --- wait until the transmitter is empty | ||
518 | */ | ||
519 | static void rs_wait_until_sent(struct tty_struct *tty, int timeout) | ||
520 | { | ||
521 | } | ||
522 | |||
523 | |||
524 | /* | ||
525 | * rs_hangup() --- called by tty_hangup() when a hangup is signaled. | 491 | * rs_hangup() --- called by tty_hangup() when a hangup is signaled. |
526 | */ | 492 | */ |
527 | static void rs_hangup(struct tty_struct *tty) | 493 | static void rs_hangup(struct tty_struct *tty) |
@@ -736,10 +702,7 @@ static const struct tty_operations hp_ops = { | |||
736 | .unthrottle = rs_unthrottle, | 702 | .unthrottle = rs_unthrottle, |
737 | .send_xchar = rs_send_xchar, | 703 | .send_xchar = rs_send_xchar, |
738 | .set_termios = rs_set_termios, | 704 | .set_termios = rs_set_termios, |
739 | .stop = rs_stop, | ||
740 | .start = rs_start, | ||
741 | .hangup = rs_hangup, | 705 | .hangup = rs_hangup, |
742 | .wait_until_sent = rs_wait_until_sent, | ||
743 | .proc_fops = &rs_proc_fops, | 706 | .proc_fops = &rs_proc_fops, |
744 | }; | 707 | }; |
745 | 708 | ||