Skip to content

Commit

Permalink
usb: gadget: pxa27x_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 83a9adc commit 0280f4d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/usb/gadget/pxa27x_udc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1809,7 +1809,6 @@ static int pxa27x_udc_start(struct usb_gadget *g,

/* first hook up the driver ... */
udc->driver = driver;
udc->gadget.dev.driver = &driver->driver;
dplus_pullup(udc, 1);

if (!IS_ERR_OR_NULL(udc->transceiver)) {
Expand All @@ -1827,7 +1826,6 @@ static int pxa27x_udc_start(struct usb_gadget *g,

fail:
udc->driver = NULL;
udc->gadget.dev.driver = NULL;
return retval;
}

Expand Down

0 comments on commit 0280f4d

Please sign in to comment.