summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/designware_udc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/gadget/designware_udc.c')
-rw-r--r--drivers/usb/gadget/designware_udc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/designware_udc.c b/drivers/usb/gadget/designware_udc.c
index 0db7a3b6c1..a25f5019e8 100644
--- a/drivers/usb/gadget/designware_udc.c
+++ b/drivers/usb/gadget/designware_udc.c
@@ -601,7 +601,7 @@ void udc_setup_ep(struct usb_device_instance *device,
if ((ep != 0) && (udc_device->device_state < STATE_ADDRESSED))
return;
- tt = getenv("usbtty");
+ tt = env_get("usbtty");
if (!tt)
tt = "generic";