staging: wlan-ng: Remove flush_scheduled_work
PATCH 1/1 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 Amitoj Kaur Chawla <[email protected]>
--- drivers/staging/wlan-ng/prism2usb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/staging/wlan-ng/prism2usb.c +2 -1
@@ -177,7 +177,8 @@ static void prism2sta_disconnect_usb(struct usb_interface *interface)tasklet_kill (&hw->completion_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 * and tell everyone who is waiting for their
Signature · 1 line
1.9.1
Hello,
Quoted 5 lines · Amitoj Kaur Chawla
flush_scheduled_work()is scheduled for deprecation. Usecancel_work_sync()instead to ensure that there is no pending or running work item.Signed-off-by Amitoj Kaur Chawla <[email protected]>
Acked-by Tejun Heo <[email protected]>
Thanks.
Signature · 1 line
tejun