mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 10:49:33 +00:00
usb: musb: gadget: remove unnecessary initializations
udc-core now sets dma-related and parent fields for us, we don't need to do it ourselves. Signed-off-by: Felipe Balbi <balbi@ti.com>
This commit is contained in:
parent
31bff47aa2
commit
5e6e3d3814
1 changed files with 0 additions and 2 deletions
|
@ -1782,8 +1782,6 @@ int musb_gadget_setup(struct musb *musb)
|
||||||
musb->g.speed = USB_SPEED_UNKNOWN;
|
musb->g.speed = USB_SPEED_UNKNOWN;
|
||||||
|
|
||||||
/* this "gadget" abstracts/virtualizes the controller */
|
/* this "gadget" abstracts/virtualizes the controller */
|
||||||
musb->g.dev.parent = musb->controller;
|
|
||||||
musb->g.dev.dma_mask = musb->controller->dma_mask;
|
|
||||||
musb->g.dev.release = musb_gadget_release;
|
musb->g.dev.release = musb_gadget_release;
|
||||||
musb->g.name = musb_driver_name;
|
musb->g.name = musb_driver_name;
|
||||||
musb->g.is_otg = 1;
|
musb->g.is_otg = 1;
|
||||||
|
|
Loading…
Reference in a new issue