usb: gadget: fsl_udc: avoid can_pullup function in vbus_session
[linux-2.6.git] / drivers / usb / gadget / fsl_udc_core.c
index 28bb188..8d91700 100644 (file)
@@ -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);