summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2013-02-26 14:36:14 +0200
committerFelipe Balbi <balbi@ti.com>2013-03-18 11:17:39 +0200
commit812abae5d66ce1a7a102afe1b3564df597687e79 (patch)
treed88e1e6d6336af098294e71375be85e1376a85a2
parent9ab7f79923f7ff2af798c42da104a03a936f704d (diff)
downloadop-kernel-dev-812abae5d66ce1a7a102afe1b3564df597687e79.zip
op-kernel-dev-812abae5d66ce1a7a102afe1b3564df597687e79.tar.gz
usb: gadget: net2272: 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>
-rw-r--r--drivers/usb/gadget/net2272.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/usb/gadget/net2272.c b/drivers/usb/gadget/net2272.c
index bfb55d3..af99223 100644
--- a/drivers/usb/gadget/net2272.c
+++ b/drivers/usb/gadget/net2272.c
@@ -1467,7 +1467,6 @@ static int net2272_start(struct usb_gadget *_gadget,
dev->softconnect = 1;
driver->driver.bus = NULL;
dev->driver = driver;
- dev->gadget.dev.driver = &driver->driver;
/* ... then enable host detection and ep0; and we're ready
* for set_configuration as well as eventual disconnect.
@@ -1510,7 +1509,6 @@ static int net2272_stop(struct usb_gadget *_gadget,
stop_activity(dev, driver);
spin_unlock_irqrestore(&dev->lock, flags);
- dev->gadget.dev.driver = NULL;
dev->driver = NULL;
dev_dbg(dev->dev, "unregistered driver '%s'\n", driver->driver.name);
OpenPOWER on IntegriCloud