]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
usb: dwc3: gadget: don't touch gadget.dev.driver
authorFelipe Balbi <balbi@ti.com>
Tue, 26 Feb 2013 12:15:15 +0000 (14:15 +0200)
committerFelipe Balbi <balbi@ti.com>
Mon, 18 Mar 2013 09:17:31 +0000 (11:17 +0200)
udc-core now handles that for us, which means
we can remove it from our driver.

Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/gadget.c

index 322fb0bf6fce00677c1ed66f9929c99620dd2f98..9339eb10508f61692c93d2daf323c5c9260e1991 100644 (file)
@@ -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);