diff options
-rw-r--r-- | drivers/usb/gadget/fsl_udc_core.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/usb/gadget/fsl_udc_core.c b/drivers/usb/gadget/fsl_udc_core.c index 28bb1883b81a..8d917006e98b 100644 --- a/drivers/usb/gadget/fsl_udc_core.c +++ b/drivers/usb/gadget/fsl_udc_core.c @@ -1402,6 +1402,10 @@ static int fsl_vbus_session(struct usb_gadget *gadget, int is_active) schedule_delayed_work(&udc->work, USB_CHARGER_DETECTION_WAIT_TIME_MS); } + +#ifndef CONFIG_USB_G_ANDROID + return 0; +#endif } spin_lock_irqsave(&udc->lock, flags); |