Commit 180cc68e authored by Felipe Balbi's avatar Felipe Balbi

usb: dwc3: gadget: don't touch gadget.dev.driver

udc-core now handles that for us, which means
we can remove it from our driver.
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 70d3a498
...@@ -1519,7 +1519,6 @@ static int dwc3_gadget_start(struct usb_gadget *g, ...@@ -1519,7 +1519,6 @@ static int dwc3_gadget_start(struct usb_gadget *g,
} }
dwc->gadget_driver = driver; dwc->gadget_driver = driver;
dwc->gadget.dev.driver = &driver->driver;
reg = dwc3_readl(dwc->regs, DWC3_DCFG); reg = dwc3_readl(dwc->regs, DWC3_DCFG);
reg &= ~(DWC3_DCFG_SPEED_MASK); reg &= ~(DWC3_DCFG_SPEED_MASK);
...@@ -1607,7 +1606,6 @@ static int dwc3_gadget_stop(struct usb_gadget *g, ...@@ -1607,7 +1606,6 @@ static int dwc3_gadget_stop(struct usb_gadget *g,
__dwc3_gadget_ep_disable(dwc->eps[1]); __dwc3_gadget_ep_disable(dwc->eps[1]);
dwc->gadget_driver = NULL; dwc->gadget_driver = NULL;
dwc->gadget.dev.driver = NULL;
spin_unlock_irqrestore(&dwc->lock, flags); spin_unlock_irqrestore(&dwc->lock, flags);
......
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