提交 5be2f42b 编写于 作者: A Amitoj Kaur Chawla 提交者: Greg Kroah-Hartman

staging: wlan-ng: Remove flush_scheduled_work

flush_scheduled_work() is scheduled for deprecation. Use
cancel_work_sync() instead to ensure that there is no pending or
running work item.
Signed-off-by: NAmitoj Kaur Chawla <amitoj1606@gmail.com>
Acked-by: NTejun Heo <tj@kernel.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 896774f6
...@@ -177,7 +177,8 @@ static void prism2sta_disconnect_usb(struct usb_interface *interface) ...@@ -177,7 +177,8 @@ static void prism2sta_disconnect_usb(struct usb_interface *interface)
tasklet_kill(&hw->completion_bh); tasklet_kill(&hw->completion_bh);
tasklet_kill(&hw->reaper_bh); tasklet_kill(&hw->reaper_bh);
flush_scheduled_work(); cancel_work_sync(&hw->link_bh);
cancel_work_sync(&hw->commsqual_bh);
/* Now we complete any outstanding commands /* Now we complete any outstanding commands
* and tell everyone who is waiting for their * and tell everyone who is waiting for their
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册