]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/usb/host/ohci-hub.c
USB: HCDs use the do_remote_wakeup flag
[linux-2.6-omap-h63xx.git] / drivers / usb / host / ohci-hub.c
index 28d6d775eb5f15726889c142a666154126d17a9c..cf3e1d255639f7a9f0a696c757f34351e1ebd61e 100644 (file)
@@ -103,10 +103,9 @@ __acquires(ohci->lock)
        finish_unlinks (ohci, ohci_frame_no(ohci));
 
        /* maybe resume can wake root hub */
-       if (device_may_wakeup(&ohci_to_hcd(ohci)->self.root_hub->dev) ||
-                       autostop)
+       if (ohci_to_hcd(ohci)->self.root_hub->do_remote_wakeup || autostop) {
                ohci->hc_control |= OHCI_CTRL_RWE;
-       else {
+       else {
                ohci_writel (ohci, OHCI_INTR_RHSC, &ohci->regs->intrdisable);
                ohci->hc_control &= ~OHCI_CTRL_RWE;
        }