diff options
-rw-r--r-- | drivers/usb/otg/tegra-otg.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/usb/otg/tegra-otg.c b/drivers/usb/otg/tegra-otg.c index 893b897f5957..28e8bd0c2063 100644 --- a/drivers/usb/otg/tegra-otg.c +++ b/drivers/usb/otg/tegra-otg.c @@ -384,12 +384,9 @@ static int tegra_otg_suspend(struct platform_device *pdev, pm_message_t state) tegra_otg->intr_reg_data = readl(tegra_otg->regs + USB_PHY_WAKEUP); clk_disable(tegra_otg->clk); - if (from == OTG_STATE_A_HOST) - tegra_stop_host(tegra_otg); - else if (from == OTG_STATE_B_PERIPHERAL && otg->gadget) + if (from == OTG_STATE_B_PERIPHERAL && otg->gadget) usb_gadget_vbus_disconnect(otg->gadget); - otg->state = OTG_STATE_A_SUSPEND; tegra_otg_disable_clk(); return 0; } |