usb: musb: gadget: remove unnecessary initializations
authorFelipe Balbi <balbi@ti.com>
Tue, 26 Feb 2013 09:25:21 +0000 (11:25 +0200)
committerFelipe Balbi <balbi@ti.com>
Mon, 18 Mar 2013 09:17:30 +0000 (11:17 +0200)
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>
drivers/usb/musb/musb_gadget.c

index d35a375c607071091afde4a99e2d9656be44b285..2dd952c330fdabca409bbb5319d765a7954feb59 100644 (file)
@@ -1782,8 +1782,6 @@ int musb_gadget_setup(struct musb *musb)
        musb->g.speed = USB_SPEED_UNKNOWN;
 
        /* 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.name = musb_driver_name;
        musb->g.is_otg = 1;