UPSTREAM: usb: dwc2: gadget: Remove call to dwc2_hsotg_init()
authorJohn Youn <John.Youn@synopsys.com>
Thu, 17 Dec 2015 19:18:41 +0000 (11:18 -0800)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 3 Jan 2017 10:47:56 +0000 (18:47 +0800)
commit04f8bb8950d16ea2c0395677d63f7b925125b485
tree33ceb2fb97739e151fca9d04b8177139d165c02a
parentde9ab62c4f2dad1f446f4c9dd65c0e2508c55cd7
UPSTREAM: 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.

Change-Id: I677a97b4175af223a6e07bdd5eadd6e0d9deb723
Signed-off-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
(cherry picked from commit 60c0288c72c980fb37ed4e48f68c9743a53b662c)
drivers/usb/dwc2/gadget.c