summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2013-02-26 14:36:40 +0200
committerFelipe Balbi <balbi@ti.com>2013-03-18 11:17:40 +0200
commit37e337e1d3e20b101d6f3a6b55e7c7118a6d99a0 (patch)
tree762d3b33d9426f88786278d987d157bf52066e72 /drivers
parentf6511d153eff9cd16e44ab54faa63149e2ddef75 (diff)
downloadlinux-37e337e1d3e20b101d6f3a6b55e7c7118a6d99a0.tar.bz2
usb: gadget: pch_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')
-rw-r--r--drivers/usb/gadget/pch_udc.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/usb/gadget/pch_udc.c b/drivers/usb/gadget/pch_udc.c
index c1db902ebb7f..79cf2966f634 100644
--- a/drivers/usb/gadget/pch_udc.c
+++ b/drivers/usb/gadget/pch_udc.c
@@ -2988,7 +2988,6 @@ static int pch_udc_start(struct usb_gadget *g,
driver->driver.bus = NULL;
dev->driver = driver;
- dev->gadget.dev.driver = &driver->driver;
/* get ready for ep0 traffic */
pch_udc_setup_ep0(dev);
@@ -3009,7 +3008,6 @@ static int pch_udc_stop(struct usb_gadget *g,
pch_udc_disable_interrupts(dev, UDC_DEVINT_MSK);
/* Assures that there are no pending requests with this driver */
- dev->gadget.dev.driver = NULL;
dev->driver = NULL;
dev->connected = 0;