We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a73d9d9 commit a24d507Copy full SHA for a24d507
drivers/usb/host/xhci-mtk.c
@@ -587,6 +587,9 @@ static int xhci_mtk_remove(struct platform_device *dev)
587
struct xhci_hcd *xhci = hcd_to_xhci(hcd);
588
struct usb_hcd *shared_hcd = xhci->shared_hcd;
589
590
+ pm_runtime_put_noidle(&dev->dev);
591
+ pm_runtime_disable(&dev->dev);
592
+
593
usb_remove_hcd(shared_hcd);
594
xhci->shared_hcd = NULL;
595
device_init_wakeup(&dev->dev, false);
@@ -597,8 +600,6 @@ static int xhci_mtk_remove(struct platform_device *dev)
597
600
xhci_mtk_sch_exit(mtk);
598
601
xhci_mtk_clks_disable(mtk);
599
602
xhci_mtk_ldos_disable(mtk);
- pm_runtime_put_sync(&dev->dev);
- pm_runtime_disable(&dev->dev);
603
604
return 0;
605
}
0 commit comments