projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
901f695
)
usb: dwc2: remove unused variable regs_otg
author
Patrick Delaunay
<
[email protected]
>
Fri, 29 Mar 2019 14:42:14 +0000
(15:42 +0100)
committer
Marek Vasut
<
[email protected]
>
Sun, 21 Apr 2019 08:26:51 +0000
(10:26 +0200)
Remove the global regs_otg variable.
Signed-off-by: Patrick Delaunay <
[email protected]
>
Reviewed-by: Lukasz Majewski <
[email protected]
>
drivers/usb/gadget/dwc2_udc_otg.c
patch
|
blob
|
history
diff --git
a/drivers/usb/gadget/dwc2_udc_otg.c
b/drivers/usb/gadget/dwc2_udc_otg.c
index 3c7ad033e3f799ae1a085c7bb7e15f60cef355f6..edca05d0094b2d0ed9f820dde240630510643d3c 100644
(file)
--- a/
drivers/usb/gadget/dwc2_udc_otg.c
+++ b/
drivers/usb/gadget/dwc2_udc_otg.c
@@
-140,7
+140,6
@@
static struct usb_ep_ops dwc2_ep_ops = {
/***********************************************************/
-void __iomem *regs_otg;
struct dwc2_usbotg_reg *reg;
bool dfu_usb_get_reset(void)
@@
-818,8
+817,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;