aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc2/gadget.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/dwc2/gadget.c')
-rw-r--r--drivers/usb/dwc2/gadget.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/dwc2/gadget.c b/drivers/usb/dwc2/gadget.c
index 15aa5785090b..6a30887082cd 100644
--- a/drivers/usb/dwc2/gadget.c
+++ b/drivers/usb/dwc2/gadget.c
@@ -3308,7 +3308,7 @@ static int s3c_hsotg_hw_cfg(struct dwc2_hsotg *hsotg)
3308 hsotg->eps_out[0] = hsotg->eps_in[0]; 3308 hsotg->eps_out[0] = hsotg->eps_in[0];
3309 3309
3310 cfg = readl(hsotg->regs + GHWCFG1); 3310 cfg = readl(hsotg->regs + GHWCFG1);
3311 for (i = 1; i < hsotg->num_of_eps; i++, cfg >>= 2) { 3311 for (i = 1, cfg >>= 2; i < hsotg->num_of_eps; i++, cfg >>= 2) {
3312 ep_type = cfg & 3; 3312 ep_type = cfg & 3;
3313 /* Direction in or both */ 3313 /* Direction in or both */
3314 if (!(ep_type & 2)) { 3314 if (!(ep_type & 2)) {