Skip to content

Commit

Permalink
usb: dwc2: gadget: Remove call to dwc2_hsotg_init()
Browse files Browse the repository at this point in the history
Remove call to dwc2_hsotg_init() from dwc2_gadget_init(). The
gadget_init function should not access any device registers because the
mode isn't guaranteed here.

Also, this is already called elsewhere before anything starts on the
gadget so it is not necessary here.

Signed-off-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
  • Loading branch information
John Youn authored and Felipe Balbi committed Dec 22, 2015
1 parent 25362d3 commit 60c0288
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/usb/dwc2/gadget.c
Original file line number Diff line number Diff line change
Expand Up @@ -3545,8 +3545,6 @@ int dwc2_gadget_init(struct dwc2_hsotg *hsotg, int irq)
return ret;
}

dwc2_hsotg_init(hsotg);

hsotg->ctrl_buff = devm_kzalloc(hsotg->dev,
DWC2_CTRL_BUFF_SIZE, GFP_KERNEL);
if (!hsotg->ctrl_buff) {
Expand Down

0 comments on commit 60c0288

Please sign in to comment.