diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c index 4608dccbbf77..997bc1e57ff3 100644 --- a/drivers/usb/host/xhci-plat.c +++ b/drivers/usb/host/xhci-plat.c @@ -374,10 +374,10 @@ static int xhci_plat_remove(struct platform_device *dev) xhci->xhc_state |= XHCI_STATE_REMOVING; usb_remove_hcd(shared_hcd); - xhci->shared_hcd = NULL; usb_phy_shutdown(hcd->usb_phy); usb_remove_hcd(hcd); + xhci->shared_hcd = NULL; usb_put_hcd(shared_hcd); clk_disable_unprepare(clk);