Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 364537
b: refs/heads/master
c: 5ed01c6
h: refs/heads/master
i:
  364535: 087d618
v: v3
  • Loading branch information
Felipe Balbi committed Mar 18, 2013
1 parent 7dfc5d3 commit 4fa948f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1e1930bd3d9c6174eba1e3ca4135fd25ea3ad59c
refs/heads/master: 5ed01c6400270dccb8c3574061ff3d163f0fe3fe
10 changes: 1 addition & 9 deletions trunk/drivers/usb/musb/musb_gadget.c
Original file line number Diff line number Diff line change
Expand Up @@ -1887,24 +1887,18 @@ int musb_gadget_setup(struct musb *musb)
musb->g.speed = USB_SPEED_UNKNOWN;

/* this "gadget" abstracts/virtualizes the controller */
dev_set_name(&musb->g.dev, "gadget");
musb->g.dev.parent = musb->controller;
musb->g.dev.dma_mask = musb->controller->dma_mask;
musb->g.dev.release = musb_gadget_release;
musb->g.name = musb_driver_name;

musb->g.register_my_device = true;
musb->g.is_otg = 1;

musb_g_init_endpoints(musb);

musb->is_active = 0;
musb_platform_try_idle(musb, 0);

status = device_register(&musb->g.dev);
if (status != 0) {
put_device(&musb->g.dev);
return status;
}
status = usb_add_gadget_udc(musb->controller, &musb->g);
if (status)
goto err;
Expand All @@ -1919,8 +1913,6 @@ int musb_gadget_setup(struct musb *musb)
void musb_gadget_cleanup(struct musb *musb)
{
usb_del_gadget_udc(&musb->g);
if (musb->g.dev.parent)
device_unregister(&musb->g.dev);
}

/*
Expand Down

0 comments on commit 4fa948f

Please sign in to comment.