Message ID | 20220424015757.21993-1-surong.pang@gmail.com |
---|---|
State | New |
Headers | show |
Series | [V2] usb/host: Let usb phy shutdown later | expand |
diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c index 649ffd861b44..fe492ed99cb7 100644 --- a/drivers/usb/host/xhci-plat.c +++ b/drivers/usb/host/xhci-plat.c @@ -390,13 +390,13 @@ static int xhci_plat_remove(struct platform_device *dev) usb_remove_hcd(shared_hcd); xhci->shared_hcd = NULL; - usb_phy_shutdown(hcd->usb_phy); usb_remove_hcd(hcd); usb_put_hcd(shared_hcd); clk_disable_unprepare(clk); clk_disable_unprepare(reg_clk); + usb_phy_shutdown(hcd->usb_phy); usb_put_hcd(hcd); pm_runtime_disable(&dev->dev);