Skip to content

Commit

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

/* first hook up the driver ... */
dev->driver = driver;
dev->gadget.dev.driver = &driver->driver;
dev->pullup = 1;

/* ... then enable host detection and ep0; and we're ready
Expand Down Expand Up @@ -1325,7 +1324,6 @@ static int pxa25x_udc_stop(struct usb_gadget*g,
if (!IS_ERR_OR_NULL(dev->transceiver))
(void) otg_set_peripheral(dev->transceiver->otg, NULL);

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

dump_state(dev);
Expand Down

0 comments on commit 83a9adc

Please sign in to comment.