Skip to content

Commit

Permalink
usb: gadget: mv_u3d_core: 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 e3ee46f commit 900b581
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/usb/gadget/mv_u3d_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1264,7 +1264,6 @@ static int mv_u3d_start(struct usb_gadget *g,
/* hook up the driver ... */
driver->driver.bus = NULL;
u3d->driver = driver;
u3d->gadget.dev.driver = &driver->driver;

u3d->ep0_dir = USB_DIR_OUT;

Expand Down Expand Up @@ -1302,7 +1301,6 @@ static int mv_u3d_stop(struct usb_gadget *g,

spin_unlock_irqrestore(&u3d->lock, flags);

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

return 0;
Expand Down

0 comments on commit 900b581

Please sign in to comment.