提交 83a9adc9 编写于 作者: F Felipe Balbi

usb: gadget: pxa25x_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>
上级 37e337e1
...@@ -1263,7 +1263,6 @@ static int pxa25x_udc_start(struct usb_gadget *g, ...@@ -1263,7 +1263,6 @@ static int pxa25x_udc_start(struct usb_gadget *g,
/* first hook up the driver ... */ /* first hook up the driver ... */
dev->driver = driver; dev->driver = driver;
dev->gadget.dev.driver = &driver->driver;
dev->pullup = 1; dev->pullup = 1;
/* ... then enable host detection and ep0; and we're ready /* ... then enable host detection and ep0; and we're ready
...@@ -1325,7 +1324,6 @@ static int pxa25x_udc_stop(struct usb_gadget*g, ...@@ -1325,7 +1324,6 @@ static int pxa25x_udc_stop(struct usb_gadget*g,
if (!IS_ERR_OR_NULL(dev->transceiver)) if (!IS_ERR_OR_NULL(dev->transceiver))
(void) otg_set_peripheral(dev->transceiver->otg, NULL); (void) otg_set_peripheral(dev->transceiver->otg, NULL);
dev->gadget.dev.driver = NULL;
dev->driver = NULL; dev->driver = NULL;
dump_state(dev); dump_state(dev);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册