diff options
Diffstat (limited to 'drivers/char/esp.c')
-rw-r--r-- | drivers/char/esp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/char/esp.c b/drivers/char/esp.c index 662e9cfdcc9..b1f92db3133 100644 --- a/drivers/char/esp.c +++ b/drivers/char/esp.c @@ -1994,8 +1994,7 @@ static void rs_close(struct tty_struct *tty, struct file * filp) rs_wait_until_sent(tty, info->timeout); } shutdown(info); - if (tty->driver->flush_buffer) - tty->driver->flush_buffer(tty); + rs_flush_buffer(tty); tty_ldisc_flush(tty); tty->closing = 0; info->tty = NULL; |