aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/usb/gadget/fsl_usb2_udc.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/usb/gadget/fsl_usb2_udc.c b/drivers/usb/gadget/fsl_usb2_udc.c
index d140e1b1c906..3b96aac27af9 100644
--- a/drivers/usb/gadget/fsl_usb2_udc.c
+++ b/drivers/usb/gadget/fsl_usb2_udc.c
@@ -185,10 +185,6 @@ static int dr_controller_setup(struct fsl_udc *udc)
185 unsigned long timeout; 185 unsigned long timeout;
186#define FSL_UDC_RESET_TIMEOUT 1000 186#define FSL_UDC_RESET_TIMEOUT 1000
187 187
188 /* before here, make sure dr_regs has been initialized */
189 if (!udc)
190 return -EINVAL;
191
192 /* Stop and reset the usb controller */ 188 /* Stop and reset the usb controller */
193 tmp = fsl_readl(&dr_regs->usbcmd); 189 tmp = fsl_readl(&dr_regs->usbcmd);
194 tmp &= ~USB_CMD_RUN_STOP; 190 tmp &= ~USB_CMD_RUN_STOP;