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

index 78c8bb5383323cf203af02ff6e90e0a1b012cbc0..bfb55d382cf9a3a1fd2a0f44161124538f9aaab6 100644 (file)
@@ -2235,8 +2235,6 @@ static struct net2272 *net2272_probe_init(struct device *dev, unsigned int irq)
        ret->gadget.max_speed = USB_SPEED_HIGH;
 
        /* the "gadget" abstracts/virtualizes the controller */
-       ret->gadget.dev.parent = dev;
-       ret->gadget.dev.dma_mask = dev->dma_mask;
        ret->gadget.dev.release = net2272_gadget_release;
        ret->gadget.name = driver_name;