summaryrefslogtreecommitdiff
path: root/drivers/char/pcmcia/ipwireless/tty.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2010-12-24 17:59:06 +0300
committerTejun Heo <tj@kernel.org>2010-12-24 17:59:06 +0300
commit404437efc713b6c6fc8e2dc02978624bf4586e2d (patch)
tree2fd321c4df24f0dbf75a362ce728f6e21535a6db /drivers/char/pcmcia/ipwireless/tty.c
parent9b00a8182987e8b7028d97c2bee3319ef383b57a (diff)
downloadlinux-404437efc713b6c6fc8e2dc02978624bf4586e2d.tar.xz
pcmcia/ipwireless: don't use flush_scheduled_work()
flush_scheduled_work() is deprecated and scheduled to be removed. Directly flush the used works instead. Signed-off-by: Tejun Heo <tj@kernel.org> Acked-by: Jiri Kosina <jkosina@suse.cz> Acked-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'drivers/char/pcmcia/ipwireless/tty.c')
-rw-r--r--drivers/char/pcmcia/ipwireless/tty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/pcmcia/ipwireless/tty.c b/drivers/char/pcmcia/ipwireless/tty.c
index 1a2c2c3b068f..f5eb28b6cb0f 100644
--- a/drivers/char/pcmcia/ipwireless/tty.c
+++ b/drivers/char/pcmcia/ipwireless/tty.c
@@ -577,7 +577,7 @@ void ipwireless_tty_free(struct ipw_tty *tty)
mutex_unlock(&ttyj->ipw_tty_mutex);
tty_hangup(ttyj->linux_tty);
/* Wait till the tty_hangup has completed */
- flush_scheduled_work();
+ flush_work_sync(&ttyj->linux_tty->hangup_work);
/* FIXME: Exactly how is the tty object locked here
against a parallel ioctl etc */
mutex_lock(&ttyj->ipw_tty_mutex);