UPSTREAM: usb: dwc2: remove unused variable regs_otg

Remove the global regs_otg variable.

Change-Id: Iea128368e3b6593cf15d2e2bd31dfe03c445ad32
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Reviewed-by: Lukasz Majewski <lukma@denx.de>
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
(cherry picked from commit a812d77617749eeaddfa8b9796b9a2eece1ad2f5)
This commit is contained in:
Patrick Delaunay 2019-03-29 15:42:14 +01:00 committed by Frank Wang
parent 2522005341
commit a0c39c0746
1 changed files with 0 additions and 3 deletions

View File

@ -141,7 +141,6 @@ static struct usb_ep_ops dwc2_ep_ops = {
/***********************************************************/
void __iomem *regs_otg;
struct dwc2_usbotg_reg *reg;
bool dfu_usb_get_reset(void)
@ -820,8 +819,6 @@ int dwc2_udc_probe(struct dwc2_plat_otg_data *pdata)
reg = (struct dwc2_usbotg_reg *)pdata->regs_otg;
/* regs_otg = (void *)pdata->regs_otg; */
dev->gadget.is_dualspeed = 1; /* Hack only*/
dev->gadget.is_otg = 0;
dev->gadget.is_a_peripheral = 0;