aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/gadget/fsl_usb2_udc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/fsl_usb2_udc.c b/drivers/usb/gadget/fsl_usb2_udc.c
index 9bb7f64a85cd..038e7d7b4da1 100644
--- a/drivers/usb/gadget/fsl_usb2_udc.c
+++ b/drivers/usb/gadget/fsl_usb2_udc.c
@@ -1318,7 +1318,7 @@ static void setup_received_irq(struct fsl_udc *udc,
1318 | USB_TYPE_STANDARD)) { 1318 | USB_TYPE_STANDARD)) {
1319 /* Note: The driver has not include OTG support yet. 1319 /* Note: The driver has not include OTG support yet.
1320 * This will be set when OTG support is added */ 1320 * This will be set when OTG support is added */
1321 if (!gadget_is_otg(udc->gadget)) 1321 if (!gadget_is_otg(&udc->gadget))
1322 break; 1322 break;
1323 else if (setup->bRequest == USB_DEVICE_B_HNP_ENABLE) 1323 else if (setup->bRequest == USB_DEVICE_B_HNP_ENABLE)
1324 udc->gadget.b_hnp_enable = 1; 1324 udc->gadget.b_hnp_enable = 1;