diff options
Diffstat (limited to 'drivers/usb/dwc2/platform.c')
| -rw-r--r-- | drivers/usb/dwc2/platform.c | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/usb/dwc2/platform.c b/drivers/usb/dwc2/platform.c index c8ba87df7abe..fd0ccf6f3ec5 100644 --- a/drivers/usb/dwc2/platform.c +++ b/drivers/usb/dwc2/platform.c @@ -154,9 +154,9 @@ static int __dwc2_lowlevel_hw_enable(struct dwc2_hsotg *hsotg)  	} else if (hsotg->plat && hsotg->plat->phy_init) {  		ret = hsotg->plat->phy_init(pdev, hsotg->plat->phy_type);  	} else { -		ret = phy_power_on(hsotg->phy); +		ret = phy_init(hsotg->phy);  		if (ret == 0) -			ret = phy_init(hsotg->phy); +			ret = phy_power_on(hsotg->phy);  	}  	return ret; @@ -188,9 +188,9 @@ static int __dwc2_lowlevel_hw_disable(struct dwc2_hsotg *hsotg)  	} else if (hsotg->plat && hsotg->plat->phy_exit) {  		ret = hsotg->plat->phy_exit(pdev, hsotg->plat->phy_type);  	} else { -		ret = phy_exit(hsotg->phy); +		ret = phy_power_off(hsotg->phy);  		if (ret == 0) -			ret = phy_power_off(hsotg->phy); +			ret = phy_exit(hsotg->phy);  	}  	if (ret)  		return ret;  | 
