diff options
author | Peter Hurley <peter@hurleysoftware.com> | 2015-10-17 16:36:23 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-18 00:32:21 -0400 |
commit | e176058f0de53c2346734e5254835e0045364001 (patch) | |
tree | b5a4e03beb2a24c03ca5023599f045cc5375828a /drivers/tty/tty_port.c | |
parent | 4b41b9539a1e9531f942ededfcdcff372317d2e7 (diff) |
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); | |||
130 | */ | 130 | */ |
131 | void tty_port_destroy(struct tty_port *port) | 131 | void tty_port_destroy(struct tty_port *port) |
132 | { | 132 | { |
133 | cancel_work_sync(&port->buf.work); | 133 | tty_buffer_cancel_work(port); |
134 | tty_buffer_free_all(port); | 134 | tty_buffer_free_all(port); |
135 | } | 135 | } |
136 | EXPORT_SYMBOL(tty_port_destroy); | 136 | EXPORT_SYMBOL(tty_port_destroy); |