Skip to contentSkip to conversation

Char: nozomi, use tty_wakeup

PATCH New Jiri Slaby 1 participant 1 message Oct 6, 2006 Char and misc drivers

lore
Share & tools
lore

Jiri Slaby

author
#0 lore raw

PATCH 1/1 Char: nozomi, use tty_wakeup

nozomi, use tty_wakeup

Use tty_wakeup instead of self-implemented wake calling.

---
commit b19884f570ea41ff9100cc56962e8d6f435e2337
tree f68d0e40ee5e527a0c6d96dc28291235032c45e1
parent 56269f9ba9ccaf60a314ebcf58d4de650995c4e5
author Jiri Slaby <[email protected]> Sat, 07 Oct 2006 01:23:24 +0200 committer Jiri Slaby <[email protected]> Sat, 07 Oct 2006 01:23:24 +0200

 drivers/char/nozomi.c |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)
drivers/char/nozomi.c +2 -6
index cd95ed5..8d502d2 100644
@@ -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;
 }