From: Jiri Slaby <jirislaby@gmail.com>
To: Andrew Morton <akpm@osdl.org>
Cc: <linux-kernel@vger.kernel.org>, <p.hardwick@option.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Subject: [PATCH] Char: nozomi, use tty_wakeup
Date: Sat, 7 Oct 2006 01:27:07 +0200 (CEST) [thread overview]
Message-ID: <12387098213213@wsc.cz> (raw)
nozomi, use tty_wakeup
Use tty_wakeup instead of self-implemented wake calling.
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
---
commit b19884f570ea41ff9100cc56962e8d6f435e2337
tree f68d0e40ee5e527a0c6d96dc28291235032c45e1
parent 56269f9ba9ccaf60a314ebcf58d4de650995c4e5
author Jiri Slaby <jirislaby@gmail.com> Sat, 07 Oct 2006 01:23:24 +0200
committer Jiri Slaby <xslaby@anemoi.localdomain> Sat, 07 Oct 2006 01:23:24 +0200
drivers/char/nozomi.c | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/drivers/char/nozomi.c b/drivers/char/nozomi.c
index cd95ed5..8d502d2 100644
--- a/drivers/char/nozomi.c
+++ b/drivers/char/nozomi.c
@@ -922,12 +922,8 @@ static int send_data( enum port_type ind
SET_MEM( addr, &size, 4 );
SET_MEM_BUF( addr + 4, dc->send_buf, size);
- if (port->tty) {
- if ((tty->flags & (1 << TTY_DO_WRITE_WAKEUP)) && tty->ldisc.write_wakeup) {
- tty->ldisc.write_wakeup(tty);
- }
- wake_up_interruptible(&tty->write_wait);
- }
+ if (tty)
+ tty_wakeup(tty);
return 1;
}
reply other threads:[~2006-10-06 23:27 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=12387098213213@wsc.cz \
--to=jirislaby@gmail.com \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=p.hardwick@option.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.