From: Felipe Balbi Date: Tue, 26 Feb 2013 12:15:15 +0000 (+0200) Subject: usb: dwc3: gadget: don't touch gadget.dev.driver X-Git-Tag: firefly_0821_release~3680^2~672^2~11^2~200 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=180cc68ed82ced0c19f5a478f8d1cdd2024c1875;p=firefly-linux-kernel-4.4.55.git 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: Felipe Balbi --- diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index 322fb0bf6fce..9339eb10508f 100644 --- a/drivers/usb/dwc3/gadget.c +++ b/drivers/usb/dwc3/gadget.c @@ -1519,7 +1519,6 @@ static int dwc3_gadget_start(struct usb_gadget *g, } dwc->gadget_driver = driver; - dwc->gadget.dev.driver = &driver->driver; reg = dwc3_readl(dwc->regs, DWC3_DCFG); reg &= ~(DWC3_DCFG_SPEED_MASK); @@ -1607,7 +1606,6 @@ static int dwc3_gadget_stop(struct usb_gadget *g, __dwc3_gadget_ep_disable(dwc->eps[1]); dwc->gadget_driver = NULL; - dwc->gadget.dev.driver = NULL; spin_unlock_irqrestore(&dwc->lock, flags);