]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/usb/core/hcd.c
USB: replace flush_workqueue with cancel_sync_work
[linux-2.6-omap-h63xx.git] / drivers / usb / core / hcd.c
index e277258df3827d3a1a6a1b6c7532389346af6d72..8969e42434b9ca2a2b2a54ea9c7aab0bcccd642a 100644 (file)
@@ -1681,7 +1681,7 @@ void usb_remove_hcd(struct usb_hcd *hcd)
        spin_unlock_irq (&hcd_root_hub_lock);
 
 #ifdef CONFIG_PM
-       flush_workqueue(ksuspend_usb_wq);
+       cancel_work_sync(&hcd->wakeup_work);
 #endif
 
        mutex_lock(&usb_bus_list_lock);