summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2013-02-26 14:16:21 +0200
committerFelipe Balbi <balbi@ti.com>2013-03-18 11:17:32 +0200
commit8f3d7c86944ad03b2b45f1f4442577f087bb8591 (patch)
tree36b5128ae01f20847d28d39a3bf325df19636569
parentfd3682d9fd49210447c37085fe4e96e74061ae7f (diff)
downloadop-kernel-dev-8f3d7c86944ad03b2b45f1f4442577f087bb8591.zip
op-kernel-dev-8f3d7c86944ad03b2b45f1f4442577f087bb8591.tar.gz
usb: gadget: at91_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>
-rw-r--r--drivers/usb/gadget/at91_udc.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/usb/gadget/at91_udc.c b/drivers/usb/gadget/at91_udc.c
index 9936de9..a690d64 100644
--- a/drivers/usb/gadget/at91_udc.c
+++ b/drivers/usb/gadget/at91_udc.c
@@ -1631,7 +1631,6 @@ static int at91_start(struct usb_gadget *gadget,
udc = container_of(gadget, struct at91_udc, gadget);
udc->driver = driver;
- udc->gadget.dev.driver = &driver->driver;
udc->gadget.dev.of_node = udc->pdev->dev.of_node;
udc->enabled = 1;
udc->selfpowered = 1;
@@ -1652,7 +1651,6 @@ static int at91_stop(struct usb_gadget *gadget,
at91_udp_write(udc, AT91_UDP_IDR, ~0);
spin_unlock_irqrestore(&udc->lock, flags);
- udc->gadget.dev.driver = NULL;
udc->driver = NULL;
DBG("unbound from %s\n", driver->driver.name);
OpenPOWER on IntegriCloud