Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 16b972a5 authored by Felipe Balbi's avatar Felipe Balbi
Browse files

usb: dwc3: core: use pm_runtime_put_sync() on remove



We are going to disable runtime_pm and we're
removing the driver, we must disable the device
now.

Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 5578b266
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);