Permalink
Browse files

jz4740_udc.c: don't unbind the gadget driver in jz4740_udc_stop

This caused rmmod to oops.
  • Loading branch information...
1 parent db73cac commit dda77854151dc145e2047840831bf27802596ab1 @wpwrak committed May 9, 2013
Showing with 0 additions and 2 deletions.
  1. +0 −2 drivers/usb/gadget/jz4740_udc.c
@@ -484,8 +484,6 @@ static int jz4740_udc_stop(struct usb_gadget *g,
stop_activity(dev, driver);
spin_unlock_irqrestore(&dev->lock, flags);
- driver->unbind(&dev->gadget);
-
udc_disable(dev);
DEBUG("unregistered driver '%s'\n", driver->driver.name);

0 comments on commit dda7785

Please sign in to comment.