summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2013-07-10 03:16:35 +0200
committerMarek Vasut <marex@denx.de>2013-07-29 23:01:32 +0200
commitfe48f05817a0c44724b6e4c6af04c1843f387cea (patch)
tree74eb40d8a82d8a4ff93971ce8fa539888f07da85 /drivers
parentf646317739592a67847e0707c5e1072bfafaba7a (diff)
downloadu-boot-imx-fe48f05817a0c44724b6e4c6af04c1843f387cea.zip
u-boot-imx-fe48f05817a0c44724b6e4c6af04c1843f387cea.tar.gz
u-boot-imx-fe48f05817a0c44724b6e4c6af04c1843f387cea.tar.bz2
usb: mv_udc: Init mv_drv.gadget.ops statically
There is no need to init this field at runtime, so init it statically. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Fabio Estevam <fabio.estevam@freescale.com> Cc: Lei Wen <leiwen@marvell.com> Cc: Otavio Salvador <otavio@ossystems.com.br> Cc: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/gadget/mv_udc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/gadget/mv_udc.c b/drivers/usb/gadget/mv_udc.c
index 210373d..c9cd24a 100644
--- 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++) {