diff options
Diffstat (limited to 'drivers/tty/tty_buffer.c')
-rw-r--r-- | drivers/tty/tty_buffer.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/tty/tty_buffer.c b/drivers/tty/tty_buffer.c index 1bfe97a8e2eb..b6efacadf23b 100644 --- a/drivers/tty/tty_buffer.c +++ b/drivers/tty/tty_buffer.c | |||
@@ -544,7 +544,7 @@ void tty_flush_to_ldisc(struct tty_struct *tty) | |||
544 | 544 | ||
545 | /** | 545 | /** |
546 | * tty_flip_buffer_push - terminal | 546 | * tty_flip_buffer_push - terminal |
547 | * @tty: tty to push | 547 | * @port: tty port to push |
548 | * | 548 | * |
549 | * Queue a push of the terminal flip buffers to the line discipline. This | 549 | * Queue a push of the terminal flip buffers to the line discipline. This |
550 | * function must not be called from IRQ context if port->low_latency is | 550 | * function must not be called from IRQ context if port->low_latency is |
@@ -556,9 +556,9 @@ void tty_flush_to_ldisc(struct tty_struct *tty) | |||
556 | * Locking: tty buffer lock. Driver locks in low latency mode. | 556 | * Locking: tty buffer lock. Driver locks in low latency mode. |
557 | */ | 557 | */ |
558 | 558 | ||
559 | void tty_flip_buffer_push(struct tty_struct *tty) | 559 | void tty_flip_buffer_push(struct tty_port *port) |
560 | { | 560 | { |
561 | struct tty_bufhead *buf = &tty->port->buf; | 561 | struct tty_bufhead *buf = &port->buf; |
562 | unsigned long flags; | 562 | unsigned long flags; |
563 | 563 | ||
564 | spin_lock_irqsave(&buf->lock, flags); | 564 | spin_lock_irqsave(&buf->lock, flags); |
@@ -566,7 +566,7 @@ void tty_flip_buffer_push(struct tty_struct *tty) | |||
566 | buf->tail->commit = buf->tail->used; | 566 | buf->tail->commit = buf->tail->used; |
567 | spin_unlock_irqrestore(&buf->lock, flags); | 567 | spin_unlock_irqrestore(&buf->lock, flags); |
568 | 568 | ||
569 | if (tty->port->low_latency) | 569 | if (port->low_latency) |
570 | flush_to_ldisc(&buf->work); | 570 | flush_to_ldisc(&buf->work); |
571 | else | 571 | else |
572 | schedule_work(&buf->work); | 572 | schedule_work(&buf->work); |