Fixing the potential compilation this is
currently masked as CONFIG_USB_OTG_UTILS
is enabled.
Change-Id: Ie10e5fc252156b8b904d387d87a11136fcc3f4c1
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/122043
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Rebase-Id: R3f48abadd449cb7d885cd83f02397b84dbb600f3
otg_set_peripheral(udc->transceiver->otg, &udc->gadget);
}
+#ifndef CONFIG_USB_OTG_UTILS
+ /* Power down the phy if cable is not connected */
+ if (!vbus_enabled(udc))
+ tegra_usb_phy_power_off(udc->phy);
+#endif
+
DBG("%s(%d) END\n", __func__, __LINE__);
return 0;