mirror of
https://github.com/torvalds/linux.git
synced 2024-11-07 04:32:03 +00:00
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: Felipe Balbi <balbi@ti.com>
This commit is contained in:
parent
a1827ef6ac
commit
6a609129c2
@ -1313,7 +1313,6 @@ static int fusb300_udc_start(struct usb_gadget *g,
|
||||
/* hook up the driver */
|
||||
driver->driver.bus = NULL;
|
||||
fusb300->driver = driver;
|
||||
fusb300->gadget.dev.driver = &driver->driver;
|
||||
|
||||
return 0;
|
||||
}
|
||||
@ -1324,7 +1323,6 @@ static int fusb300_udc_stop(struct usb_gadget *g,
|
||||
struct fusb300 *fusb300 = to_fusb300(g);
|
||||
|
||||
driver->unbind(&fusb300->gadget);
|
||||
fusb300->gadget.dev.driver = NULL;
|
||||
|
||||
init_controller(fusb300);
|
||||
fusb300->driver = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user