X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=drivers%2Fusb%2Fhost%2Fehci-platform.c;h=f1908ea9fbd863f9d693d6a852e154e72087770c;hb=c8636b90a091331beb0a26c455a0c87b93aa774a;hp=bc7b9be12f540cb22dc3a5e9ab93aa49f4c722ef;hpb=b53c4d5eb7cda86f7bf495f52116ae43bdc9cf23;p=karo-tx-linux.git diff --git a/drivers/usb/host/ehci-platform.c b/drivers/usb/host/ehci-platform.c index bc7b9be12f54..f1908ea9fbd8 100644 --- a/drivers/usb/host/ehci-platform.c +++ b/drivers/usb/host/ehci-platform.c @@ -384,8 +384,10 @@ static int ehci_platform_resume(struct device *dev) } companion_dev = usb_of_get_companion_dev(hcd->self.controller); - if (companion_dev) + if (companion_dev) { device_pm_wait_for_dev(hcd->self.controller, companion_dev); + put_device(companion_dev); + } ehci_resume(hcd, priv->reset_on_resume); return 0;