Skip to content

Commit

Permalink
usb: gadget: pch_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 f6511d1 commit 37e337e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/usb/gadget/pch_udc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2988,7 +2988,6 @@ static int pch_udc_start(struct usb_gadget *g,

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

/* get ready for ep0 traffic */
pch_udc_setup_ep0(dev);
Expand All @@ -3009,7 +3008,6 @@ static int pch_udc_stop(struct usb_gadget *g,
pch_udc_disable_interrupts(dev, UDC_DEVINT_MSK);

/* Assures that there are no pending requests with this driver */
dev->gadget.dev.driver = NULL;
dev->driver = NULL;
dev->connected = 0;

Expand Down

0 comments on commit 37e337e

Please sign in to comment.