diff options
Diffstat (limited to 'drivers/usb/host/ehci-arc.c')
-rwxr-xr-x | drivers/usb/host/ehci-arc.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/usb/host/ehci-arc.c b/drivers/usb/host/ehci-arc.c index 4a2768a65c2c..4a7c606f23fd 100755 --- a/drivers/usb/host/ehci-arc.c +++ b/drivers/usb/host/ehci-arc.c @@ -350,9 +350,6 @@ static void usb_hcd_fsl_remove(struct usb_hcd *hcd, } } - /* DDD shouldn't we turn off the power here? */ - fsl_platform_set_vbus_power(pdata, 0); - if (ehci->transceiver) { (void)otg_set_host(ehci->transceiver, 0); otg_put_transceiver(ehci->transceiver); @@ -361,12 +358,16 @@ static void usb_hcd_fsl_remove(struct usb_hcd *hcd, } /*disable the host wakeup and put phy to low power mode */ usb_host_set_wakeup(hcd->self.controller, false); - fsl_usb_lowpower_mode(pdata, true); /*free the ehci_fsl_pre_irq */ free_irq(hcd->irq, (void *)pdev); usb_remove_hcd(hcd); usb_put_hcd(hcd); + fsl_usb_lowpower_mode(pdata, true); + + /* DDD shouldn't we turn off the power here? */ + fsl_platform_set_vbus_power(pdata, 0); + /* * do platform specific un-initialization: * release iomux pins clocks, etc. |