提交 88060d60 编写于 作者: F Felipe Balbi

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: NFelipe Balbi <balbi@ti.com>
上级 6a609129
...@@ -1351,7 +1351,6 @@ static int goku_udc_start(struct usb_gadget *g, ...@@ -1351,7 +1351,6 @@ static int goku_udc_start(struct usb_gadget *g,
/* hook up the driver */ /* hook up the driver */
driver->driver.bus = NULL; driver->driver.bus = NULL;
dev->driver = driver; dev->driver = driver;
dev->gadget.dev.driver = &driver->driver;
/* /*
* then enable host detection and ep0; and we're ready * then enable host detection and ep0; and we're ready
...@@ -1391,7 +1390,6 @@ static int goku_udc_stop(struct usb_gadget *g, ...@@ -1391,7 +1390,6 @@ static int goku_udc_stop(struct usb_gadget *g,
dev->driver = NULL; dev->driver = NULL;
stop_activity(dev, driver); stop_activity(dev, driver);
spin_unlock_irqrestore(&dev->lock, flags); spin_unlock_irqrestore(&dev->lock, flags);
dev->gadget.dev.driver = NULL;
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册