Skip to content

Commit

Permalink
usb: gadget: bcm63xx_udc: don't touch gadget.dev.driver
Browse files Browse the repository at this point in the history
udc-core now handles that for us, which means
we can remove it from our driver.

Signed-off-by: Felipe Balbi <balbi@ti.com>
  • Loading branch information
Felipe Balbi committed Mar 18, 2013
1 parent 1503a33 commit 155149e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/usb/gadget/bcm63xx_udc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1819,7 +1819,6 @@ static int bcm63xx_udc_start(struct usb_gadget *gadget,

udc->driver = driver;
driver->driver.bus = NULL;
udc->gadget.dev.driver = &driver->driver;
udc->gadget.dev.of_node = udc->dev->of_node;

spin_unlock_irqrestore(&udc->lock, flags);
Expand All @@ -1841,7 +1840,6 @@ static int bcm63xx_udc_stop(struct usb_gadget *gadget,
spin_lock_irqsave(&udc->lock, flags);

udc->driver = NULL;
udc->gadget.dev.driver = NULL;

/*
* If we switch the PHY too abruptly after dropping D+, the host
Expand Down

0 comments on commit 155149e

Please sign in to comment.