diff options
author | Jiri Slaby <jirislaby@gmail.com> | 2007-02-10 04:44:55 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-11 13:51:26 -0500 |
commit | b963a8441cb95999c97bea379607071a869c65f0 (patch) | |
tree | 111fa0624be52ba830902fac3777febf340cf5e8 /drivers/usb/serial/keyspan_pda.c | |
parent | 1ed0c0b7306d7c93e83ebe30087a12684b280cdc (diff) |
[PATCH] Char: tty_wakeup cleanup
tty_wakeup cleanup
- remove wake_up_interruptible(&tty->write_wait) surrounding
tty_wakup(tty);
- substitute tty->ldisc.write_wakeup(tty) + wake_up() by tty_wakeup(tty);
Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Acked-by: Tilman Schmidt <tilman@imap.cc>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/usb/serial/keyspan_pda.c')
-rw-r--r-- | drivers/usb/serial/keyspan_pda.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/usb/serial/keyspan_pda.c b/drivers/usb/serial/keyspan_pda.c index da514cb785b3..dd0b66a6ed5d 100644 --- a/drivers/usb/serial/keyspan_pda.c +++ b/drivers/usb/serial/keyspan_pda.c | |||
@@ -182,13 +182,8 @@ static void keyspan_pda_wakeup_write(struct work_struct *work) | |||
182 | struct keyspan_pda_private *priv = | 182 | struct keyspan_pda_private *priv = |
183 | container_of(work, struct keyspan_pda_private, wakeup_work); | 183 | container_of(work, struct keyspan_pda_private, wakeup_work); |
184 | struct usb_serial_port *port = priv->port; | 184 | struct usb_serial_port *port = priv->port; |
185 | struct tty_struct *tty = port->tty; | ||
186 | 185 | ||
187 | /* wake up port processes */ | 186 | tty_wakeup(port->tty); |
188 | wake_up_interruptible( &port->write_wait ); | ||
189 | |||
190 | /* wake up line discipline */ | ||
191 | tty_wakeup(tty); | ||
192 | } | 187 | } |
193 | 188 | ||
194 | static void keyspan_pda_request_unthrottle(struct work_struct *work) | 189 | static void keyspan_pda_request_unthrottle(struct work_struct *work) |