summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/goku_udc.c
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2013-02-26 13:35:31 +0100
committerFelipe Balbi <balbi@ti.com>2013-03-18 10:17:36 +0100
commit88060d60b618cd71a5e109ac9d3d629556dcea25 (patch)
tree5fbaf922cf91ff2fea17e54c6bf1d0231b598bbc /drivers/usb/gadget/goku_udc.c
parentusb: gadget: fusb300_udc: don't touch gadget.dev.driver (diff)
downloadlinux-88060d60b618cd71a5e109ac9d3d629556dcea25.tar.xz
linux-88060d60b618cd71a5e109ac9d3d629556dcea25.zip
usb: gadget: goku_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/goku_udc.c')
-rw-r--r--drivers/usb/gadget/goku_udc.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/usb/gadget/goku_udc.c b/drivers/usb/gadget/goku_udc.c
index 1c070f4209f0..aa1976ee34e0 100644
--- a/drivers/usb/gadget/goku_udc.c
+++ b/drivers/usb/gadget/goku_udc.c
@@ -1351,7 +1351,6 @@ static int goku_udc_start(struct usb_gadget *g,
/* hook up the driver */
driver->driver.bus = NULL;
dev->driver = driver;
- dev->gadget.dev.driver = &driver->driver;
/*
* then enable host detection and ep0; and we're ready
@@ -1391,7 +1390,6 @@ static int goku_udc_stop(struct usb_gadget *g,
dev->driver = NULL;
stop_activity(dev, driver);
spin_unlock_irqrestore(&dev->lock, flags);
- dev->gadget.dev.driver = NULL;
return 0;
}