diff options
author | Tejun Heo <tj@kernel.org> | 2011-01-24 11:54:48 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-02-25 14:56:10 -0500 |
commit | 2c590f3ca99c193a04fe90ec89046138b66fcc1e (patch) | |
tree | c281f0f6bddbf7653082abde606e0abce9fa3f11 /drivers/tty | |
parent | 8c6e9112ebc7ba5a782e986152c8e766dad1486f (diff) |
nozomi: don't use flush_scheduled_work()
flush_scheduled_work() in tty_exit() doesn't seem to target any
specific work. If it was to flush work items used in tty generic
layer, they're already flushed properly during tty release.
flush_scheduled_work() is going away. Remove the seemingly redundant
usage.
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Jiri Slaby <jslaby@suse.cz>
Cc: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/tty')
-rw-r--r-- | drivers/tty/nozomi.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/tty/nozomi.c b/drivers/tty/nozomi.c index 513ba12064ea..f4f11164efe5 100644 --- a/drivers/tty/nozomi.c +++ b/drivers/tty/nozomi.c | |||
@@ -1514,8 +1514,6 @@ static void __devexit tty_exit(struct nozomi *dc) | |||
1514 | 1514 | ||
1515 | DBG1(" "); | 1515 | DBG1(" "); |
1516 | 1516 | ||
1517 | flush_scheduled_work(); | ||
1518 | |||
1519 | for (i = 0; i < MAX_PORT; ++i) { | 1517 | for (i = 0; i < MAX_PORT; ++i) { |
1520 | struct tty_struct *tty = tty_port_tty_get(&dc->port[i].port); | 1518 | struct tty_struct *tty = tty_port_tty_get(&dc->port[i].port); |
1521 | if (tty && list_empty(&tty->hangup_work.entry)) | 1519 | if (tty && list_empty(&tty->hangup_work.entry)) |