usb: hcd: move controller wakeup setting initialization to individual driver
[firefly-linux-kernel-4.4.55.git] / drivers / usb / host / ohci-ppc-of.c
index 81f3eba215c1224e3b7d1da64c7d1d31f12dfb15..83e33d46408287ceff4db04a4e127078406c0916 100644 (file)
@@ -147,8 +147,10 @@ static int ohci_hcd_ppc_of_probe(struct platform_device *op)
        ohci_hcd_init(ohci);
 
        rv = usb_add_hcd(hcd, irq, 0);
-       if (rv == 0)
+       if (rv == 0) {
+               device_wakeup_enable(hcd->self.controller);
                return 0;
+       }
 
        /* by now, 440epx is known to show usb_23 erratum */
        np = of_find_compatible_node(NULL, NULL, "ibm,usb-ehci-440epx");