Skip to content

Commit

Permalink
usb: gadget: lpc32xx_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 9fa4c96 commit ee4b47c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/usb/gadget/lpc32xx_udc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2946,7 +2946,6 @@ static int lpc32xx_start(struct usb_gadget *gadget,
}

udc->driver = driver;
udc->gadget.dev.driver = &driver->driver;
udc->gadget.dev.of_node = udc->dev->of_node;
udc->enabled = 1;
udc->selfpowered = 1;
Expand Down Expand Up @@ -2995,7 +2994,6 @@ static int lpc32xx_stop(struct usb_gadget *gadget,
}

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

return 0;
Expand Down

0 comments on commit ee4b47c

Please sign in to comment.