mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 10:49:33 +00:00
usb: gadget: fsl_qe_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
42c82fb4d1
commit
fc2dba950b
1 changed files with 0 additions and 2 deletions
|
@ -2296,7 +2296,6 @@ static int fsl_qe_start(struct usb_gadget *gadget,
|
||||||
driver->driver.bus = NULL;
|
driver->driver.bus = NULL;
|
||||||
/* hook up the driver */
|
/* hook up the driver */
|
||||||
udc->driver = driver;
|
udc->driver = driver;
|
||||||
udc->gadget.dev.driver = &driver->driver;
|
|
||||||
udc->gadget.speed = driver->max_speed;
|
udc->gadget.speed = driver->max_speed;
|
||||||
|
|
||||||
/* Enable IRQ reg and Set usbcmd reg EN bit */
|
/* Enable IRQ reg and Set usbcmd reg EN bit */
|
||||||
|
@ -2338,7 +2337,6 @@ static int fsl_qe_stop(struct usb_gadget *gadget,
|
||||||
nuke(loop_ep, -ESHUTDOWN);
|
nuke(loop_ep, -ESHUTDOWN);
|
||||||
spin_unlock_irqrestore(&udc->lock, flags);
|
spin_unlock_irqrestore(&udc->lock, flags);
|
||||||
|
|
||||||
udc->gadget.dev.driver = NULL;
|
|
||||||
udc->driver = NULL;
|
udc->driver = NULL;
|
||||||
|
|
||||||
dev_info(udc->dev, "unregistered gadget driver '%s'\r\n",
|
dev_info(udc->dev, "unregistered gadget driver '%s'\r\n",
|
||||||
|
|
Loading…
Reference in a new issue