diff options
author | Peter Hurley <peter@hurleysoftware.com> | 2015-10-17 22:36:23 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-18 06:32:21 +0200 |
commit | e176058f0de53c2346734e5254835e0045364001 (patch) | |
tree | b5a4e03beb2a24c03ca5023599f045cc5375828a /drivers/tty/tty_port.c | |
parent | tty: Prevent tty teardown during tty_write_message() (diff) | |
download | linux-e176058f0de53c2346734e5254835e0045364001.tar.xz linux-e176058f0de53c2346734e5254835e0045364001.zip |
tty: Abstract tty buffer work
Introduce API functions to restart and cancel tty buffer work, rather
than manipulate buffer work directly.
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/tty_port.c')
-rw-r--r-- | drivers/tty/tty_port.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/tty_port.c b/drivers/tty/tty_port.c index e04a8cfb16f7..482f33f20043 100644 --- a/drivers/tty/tty_port.c +++ b/drivers/tty/tty_port.c @@ -130,7 +130,7 @@ EXPORT_SYMBOL(tty_port_free_xmit_buf); */ void tty_port_destroy(struct tty_port *port) { - cancel_work_sync(&port->buf.work); + tty_buffer_cancel_work(port); tty_buffer_free_all(port); } EXPORT_SYMBOL(tty_port_destroy); |