Commit 162303f6 authored by Felipe Balbi's avatar Felipe Balbi

usb: gadget: net2272: 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: default avatarFelipe Balbi <balbi@ti.com>
parent d606b356
...@@ -2235,8 +2235,6 @@ static struct net2272 *net2272_probe_init(struct device *dev, unsigned int irq) ...@@ -2235,8 +2235,6 @@ static struct net2272 *net2272_probe_init(struct device *dev, unsigned int irq)
ret->gadget.max_speed = USB_SPEED_HIGH; ret->gadget.max_speed = USB_SPEED_HIGH;
/* the "gadget" abstracts/virtualizes the controller */ /* 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.dev.release = net2272_gadget_release;
ret->gadget.name = driver_name; ret->gadget.name = driver_name;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment