summaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorJohn Youn <John.Youn@synopsys.com>2015-12-17 11:18:41 -0800
committerFelipe Balbi <balbi@ti.com>2015-12-22 12:02:44 -0600
commit60c0288c72c980fb37ed4e48f68c9743a53b662c (patch)
tree47e8a248e77ad0c6b9f97f0f4ac2ddfefdffc975 /drivers/usb
parent25362d318371e1e271dda24995ceabb8457b3b7c (diff)
downloadtalos-obmc-linux-60c0288c72c980fb37ed4e48f68c9743a53b662c.tar.gz
talos-obmc-linux-60c0288c72c980fb37ed4e48f68c9743a53b662c.zip
usb: dwc2: gadget: Remove call to dwc2_hsotg_init()
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>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/dwc2/gadget.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/usb/dwc2/gadget.c b/drivers/usb/dwc2/gadget.c
index 628ba74d8e50..8ab7a9e0e547 100644
--- a/drivers/usb/dwc2/gadget.c
+++ b/drivers/usb/dwc2/gadget.c
@@ -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) {
OpenPOWER on IntegriCloud