Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 267290
b: refs/heads/master
c: 6a3e492
h: refs/heads/master
v: v3
  • Loading branch information
Jiri Slaby authored and Greg Kroah-Hartman committed Aug 23, 2011
1 parent 0cb6368 commit c7dbe21
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 21 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: e150c4ccbe7246c27b5208599fe9f6677c93b5fe
refs/heads/master: 6a3e492b6daaf7ec4dc41e51d87d2aae8ff886f2
20 changes: 1 addition & 19 deletions trunk/drivers/tty/serial/serial_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ void uart_write_wakeup(struct uart_port *port)
* closed. No cookie for you.
*/
BUG_ON(!state);
tasklet_schedule(&state->tlet);
tty_wakeup(state->port.tty);
}

static void uart_stop(struct tty_struct *tty)
Expand Down Expand Up @@ -107,12 +107,6 @@ static void uart_start(struct tty_struct *tty)
spin_unlock_irqrestore(&port->lock, flags);
}

static void uart_tasklet_action(unsigned long data)
{
struct uart_state *state = (struct uart_state *)data;
tty_wakeup(state->port.tty);
}

static inline void
uart_update_mctrl(struct uart_port *port, unsigned int set, unsigned int clear)
{
Expand Down Expand Up @@ -249,11 +243,6 @@ static void uart_shutdown(struct tty_struct *tty, struct uart_state *state)
synchronize_irq(uport->irq);
}

/*
* kill off our tasklet
*/
tasklet_kill(&state->tlet);

/*
* Free the transmit buffer page.
*/
Expand Down Expand Up @@ -2277,8 +2266,6 @@ int uart_register_driver(struct uart_driver *drv)
port->ops = &uart_port_ops;
port->close_delay = 500; /* .5 seconds */
port->closing_wait = 30000; /* 30 seconds */
tasklet_init(&state->tlet, uart_tasklet_action,
(unsigned long)state);
}

retval = tty_register_driver(normal);
Expand Down Expand Up @@ -2439,11 +2426,6 @@ int uart_remove_one_port(struct uart_driver *drv, struct uart_port *uport)
*/
uport->type = PORT_UNKNOWN;

/*
* Kill the tasklet, and free resources.
*/
tasklet_kill(&state->tlet);

state->uart_port = NULL;
mutex_unlock(&port_mutex);

Expand Down
1 change: 0 additions & 1 deletion trunk/include/linux/serial_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,6 @@ struct uart_state {
int pm_state;
struct circ_buf xmit;

struct tasklet_struct tlet;
struct uart_port *uart_port;
};

Expand Down

0 comments on commit c7dbe21

Please sign in to comment.