Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 163853
b: refs/heads/master
c: 016af53
h: refs/heads/master
i:
  163851: c4ac605
v: v3
  • Loading branch information
Alan Cox authored and Live-CD User committed Sep 19, 2009
1 parent 6f2d84f commit be187e7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 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: b58d13a0216d4e0753668214f23e1d2c24c30f8c
refs/heads/master: 016af53a6de6837e5be3da68901083ea85ebb4da
6 changes: 3 additions & 3 deletions trunk/drivers/serial/serial_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ static int uart_get_info(struct uart_state *state,
tmp.xmit_fifo_size = uport->fifosize;
tmp.baud_base = uport->uartclk / 16;
tmp.close_delay = port->close_delay / 10;
tmp.closing_wait = port->closing_wait == USF_CLOSING_WAIT_NONE ?
tmp.closing_wait = port->closing_wait == ASYNC_CLOSING_WAIT_NONE ?
ASYNC_CLOSING_WAIT_NONE :
port->closing_wait / 10;
tmp.custom_divisor = uport->custom_divisor;
Expand Down Expand Up @@ -690,7 +690,7 @@ static int uart_set_info(struct uart_state *state,
new_serial.irq = irq_canonicalize(new_serial.irq);
close_delay = new_serial.close_delay * 10;
closing_wait = new_serial.closing_wait == ASYNC_CLOSING_WAIT_NONE ?
USF_CLOSING_WAIT_NONE : new_serial.closing_wait * 10;
ASYNC_CLOSING_WAIT_NONE : new_serial.closing_wait * 10;

/*
* This semaphore protects port->count. It is also
Expand Down Expand Up @@ -1307,7 +1307,7 @@ static void uart_close(struct tty_struct *tty, struct file *filp)
*/
tty->closing = 1;

if (port->closing_wait != USF_CLOSING_WAIT_NONE)
if (port->closing_wait != ASYNC_CLOSING_WAIT_NONE)
tty_wait_until_sent(tty, msecs_to_jiffies(port->closing_wait));

/*
Expand Down
3 changes: 0 additions & 3 deletions trunk/include/linux/serial_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -342,9 +342,6 @@ struct uart_port {
struct uart_state {
struct tty_port port;

#define USF_CLOSING_WAIT_INF (0)
#define USF_CLOSING_WAIT_NONE (~0U)

int pm_state;
struct circ_buf xmit;

Expand Down

0 comments on commit be187e7

Please sign in to comment.