Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux...
[firefly-linux-kernel-4.4.55.git] / drivers / usb / host / ehci-xilinx-of.c
index 95979f9f4381d8e8e573c7e0fe254d5585d23ab8..fe57710753e88242c6c511d37956075d98e927cc 100644 (file)
@@ -155,7 +155,8 @@ static int ehci_hcd_xilinx_of_probe(struct platform_device *op)
 
        irq = irq_of_parse_and_map(dn, 0);
        if (!irq) {
-               printk(KERN_ERR "%s: irq_of_parse_and_map failed\n", __FILE__);
+               dev_err(&op->dev, "%s: irq_of_parse_and_map failed\n",
+                       __FILE__);
                rv = -EBUSY;
                goto err_irq;
        }
@@ -191,8 +192,10 @@ static int ehci_hcd_xilinx_of_probe(struct platform_device *op)
        ehci->caps = hcd->regs + 0x100;
 
        rv = usb_add_hcd(hcd, irq, 0);
-       if (rv == 0)
+       if (rv == 0) {
+               device_wakeup_enable(hcd->self.controller);
                return 0;
+       }
 
 err_irq:
        usb_put_hcd(hcd);