Commit 53de22a5 authored by Felipe Balbi's avatar Felipe Balbi Committed by Ben Hutchings

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

commit 16b972a5 upstream.

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>
Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
parent 5df1eb90
......@@ -427,7 +427,7 @@ static int __devexit dwc3_remove(struct platform_device *pdev)
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
pm_runtime_put(&pdev->dev);
pm_runtime_put_sync(&pdev->dev);
pm_runtime_disable(&pdev->dev);
dwc3_debugfs_exit(dwc);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment