提交 6a609129 编写于 作者: F Felipe Balbi

usb: gadget: fusb300_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>
上级 a1827ef6
...@@ -1313,7 +1313,6 @@ static int fusb300_udc_start(struct usb_gadget *g, ...@@ -1313,7 +1313,6 @@ static int fusb300_udc_start(struct usb_gadget *g,
/* hook up the driver */ /* hook up the driver */
driver->driver.bus = NULL; driver->driver.bus = NULL;
fusb300->driver = driver; fusb300->driver = driver;
fusb300->gadget.dev.driver = &driver->driver;
return 0; return 0;
} }
...@@ -1324,7 +1323,6 @@ static int fusb300_udc_stop(struct usb_gadget *g, ...@@ -1324,7 +1323,6 @@ static int fusb300_udc_stop(struct usb_gadget *g,
struct fusb300 *fusb300 = to_fusb300(g); struct fusb300 *fusb300 = to_fusb300(g);
driver->unbind(&fusb300->gadget); driver->unbind(&fusb300->gadget);
fusb300->gadget.dev.driver = NULL;
init_controller(fusb300); init_controller(fusb300);
fusb300->driver = NULL; fusb300->driver = NULL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册