]> git.karo-electronics.de Git - linux-beck.git/commitdiff
usb: dwc3: core: use pm_runtime_put_sync() on remove
authorFelipe Balbi <balbi@ti.com>
Fri, 11 Oct 2013 13:34:28 +0000 (08:34 -0500)
committerFelipe Balbi <balbi@ti.com>
Fri, 11 Oct 2013 13:34:28 +0000 (08:34 -0500)
We are going to disable runtime_pm and we're
removing the driver, we must disable the device
now.

Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/core.c

index e88ffae80cac8c7a69f73cb489c3dcbd2ddbae38..74f9cf02da070a6d1c23b643a56f76e3264fb8cd 100644 (file)
@@ -584,7 +584,7 @@ static int dwc3_remove(struct platform_device *pdev)
        usb_phy_set_suspend(dwc->usb2_phy, 1);
        usb_phy_set_suspend(dwc->usb3_phy, 1);
 
-       pm_runtime_put(&pdev->dev);
+       pm_runtime_put_sync(&pdev->dev);
        pm_runtime_disable(&pdev->dev);
 
        dwc3_debugfs_exit(dwc);