summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/omap_udc.c
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2013-02-26 14:36:26 +0200
committerFelipe Balbi <balbi@ti.com>2013-03-18 11:17:40 +0200
commitf6511d153eff9cd16e44ab54faa63149e2ddef75 (patch)
tree32f6a2191cbb453c3be1ae238b2c043813dff1ad /drivers/usb/gadget/omap_udc.c
parent68abc94f8de89ef885332a101654a0aef2db6d97 (diff)
downloadop-kernel-dev-f6511d153eff9cd16e44ab54faa63149e2ddef75.zip
op-kernel-dev-f6511d153eff9cd16e44ab54faa63149e2ddef75.tar.gz
usb: gadget: omap_udc: 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 <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/omap_udc.c')
-rw-r--r--drivers/usb/gadget/omap_udc.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/usb/gadget/omap_udc.c b/drivers/usb/gadget/omap_udc.c
index bda1abd..19420ad 100644
--- a/drivers/usb/gadget/omap_udc.c
+++ b/drivers/usb/gadget/omap_udc.c
@@ -2067,7 +2067,6 @@ static int omap_udc_start(struct usb_gadget *g,
/* hook up the driver */
driver->driver.bus = NULL;
udc->driver = driver;
- udc->gadget.dev.driver = &driver->driver;
spin_unlock_irqrestore(&udc->lock, flags);
if (udc->dc_clk != NULL)
@@ -2083,7 +2082,6 @@ static int omap_udc_start(struct usb_gadget *g,
ERR("can't bind to transceiver\n");
if (driver->unbind) {
driver->unbind(&udc->gadget);
- udc->gadget.dev.driver = NULL;
udc->driver = NULL;
}
goto done;
@@ -2129,7 +2127,6 @@ static int omap_udc_stop(struct usb_gadget *g,
udc_quiesce(udc);
spin_unlock_irqrestore(&udc->lock, flags);
- udc->gadget.dev.driver = NULL;
udc->driver = NULL;
if (udc->dc_clk != NULL)
OpenPOWER on IntegriCloud