Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 361032
b: refs/heads/master
c: cc4f024
h: refs/heads/master
v: v3
  • Loading branch information
Richard Weinberger committed Mar 11, 2013
1 parent a8dbb95 commit 0188f53
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 72383d43b223c410fc61d9e905690b9b9ba9d418
refs/heads/master: cc4f02486c09977ccbe3ce2276aca5608a44ca00
26 changes: 14 additions & 12 deletions trunk/arch/um/drivers/line.c
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,22 @@ static int line_activate(struct tty_port *port, struct tty_struct *tty)
return 0;
}

static void unregister_winch(struct tty_struct *tty);

static void line_destruct(struct tty_port *port)
{
struct tty_struct *tty = tty_port_tty_get(port);
struct line *line = tty->driver_data;

if (line->sigio) {
unregister_winch(tty);
line->sigio = 0;
}
}

static const struct tty_port_operations line_port_ops = {
.activate = line_activate,
.destruct = line_destruct,
};

int line_open(struct tty_struct *tty, struct file *filp)
Expand All @@ -340,18 +354,6 @@ int line_install(struct tty_driver *driver, struct tty_struct *tty,
return 0;
}

static void unregister_winch(struct tty_struct *tty);

void line_cleanup(struct tty_struct *tty)
{
struct line *line = tty->driver_data;

if (line->sigio) {
unregister_winch(tty);
line->sigio = 0;
}
}

void line_close(struct tty_struct *tty, struct file * filp)
{
struct line *line = tty->driver_data;
Expand Down
1 change: 0 additions & 1 deletion trunk/arch/um/drivers/ssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ static const struct tty_operations ssl_ops = {
.throttle = line_throttle,
.unthrottle = line_unthrottle,
.install = ssl_install,
.cleanup = line_cleanup,
.hangup = line_hangup,
};

Expand Down
1 change: 0 additions & 1 deletion trunk/arch/um/drivers/stdio_console.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ static const struct tty_operations console_ops = {
.set_termios = line_set_termios,
.throttle = line_throttle,
.unthrottle = line_unthrottle,
.cleanup = line_cleanup,
.hangup = line_hangup,
};

Expand Down

0 comments on commit 0188f53

Please sign in to comment.