mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 19:00:25 +00:00
usb: gadget: bcm63xx_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
1503a33932
commit
155149e672
1 changed files with 0 additions and 2 deletions
|
@ -1819,7 +1819,6 @@ static int bcm63xx_udc_start(struct usb_gadget *gadget,
|
||||||
|
|
||||||
udc->driver = driver;
|
udc->driver = driver;
|
||||||
driver->driver.bus = NULL;
|
driver->driver.bus = NULL;
|
||||||
udc->gadget.dev.driver = &driver->driver;
|
|
||||||
udc->gadget.dev.of_node = udc->dev->of_node;
|
udc->gadget.dev.of_node = udc->dev->of_node;
|
||||||
|
|
||||||
spin_unlock_irqrestore(&udc->lock, flags);
|
spin_unlock_irqrestore(&udc->lock, flags);
|
||||||
|
@ -1841,7 +1840,6 @@ static int bcm63xx_udc_stop(struct usb_gadget *gadget,
|
||||||
spin_lock_irqsave(&udc->lock, flags);
|
spin_lock_irqsave(&udc->lock, flags);
|
||||||
|
|
||||||
udc->driver = NULL;
|
udc->driver = NULL;
|
||||||
udc->gadget.dev.driver = NULL;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If we switch the PHY too abruptly after dropping D+, the host
|
* If we switch the PHY too abruptly after dropping D+, the host
|
||||||
|
|
Loading…
Reference in a new issue