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:
f646317
)
usb: mv_udc: Init mv_drv.gadget.ops statically
author
Marek Vasut
<
[email protected]
>
Wed, 10 Jul 2013 01:16:35 +0000
(
03:16
+0200)
committer
Marek Vasut
<
[email protected]
>
Mon, 29 Jul 2013 21:01:32 +0000
(23:01 +0200)
There is no need to init this field at runtime, so init it statically.
Signed-off-by: Marek Vasut <
[email protected]
>
Cc: Fabio Estevam <
[email protected]
>
Cc: Lei Wen <
[email protected]
>
Cc: Otavio Salvador <
[email protected]
>
Cc: Stefano Babic <
[email protected]
>
drivers/usb/gadget/mv_udc.c
patch
|
blob
|
history
diff --git
a/drivers/usb/gadget/mv_udc.c
b/drivers/usb/gadget/mv_udc.c
index 210373ddde5e1a19417372c12239dd7d5b7ed298..c9cd24a1fb82810955a777cd6ee477b75598d33d 100644
(file)
--- a/
drivers/usb/gadget/mv_udc.c
+++ b/
drivers/usb/gadget/mv_udc.c
@@
-98,8
+98,9
@@
static const struct usb_ep mv_ep_init[2] = {
};
static struct mv_drv controller = {
- .gadget = {
- .name = "mv_udc",
+ .gadget = {
+ .name = "mv_udc",
+ .ops = &mv_udc_ops,
},
};
@@
-427,7
+428,6
@@
static int mvudc_probe(void)
int i;
const int num = 2 * NUM_ENDPOINTS;
- controller.gadget.ops = &mv_udc_ops;
epts = memalign(PAGE_SIZE, num * sizeof(struct ept_queue_head));
memset(epts, 0, num * sizeof(struct ept_queue_head));
for (i = 0; i < 2 * NUM_ENDPOINTS; i++) {