diff options
Diffstat (limited to 'drivers/usb/gadget/at91_udc.c')
-rw-r--r-- | drivers/usb/gadget/at91_udc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/gadget/at91_udc.c b/drivers/usb/gadget/at91_udc.c index cd62b029d176..4b6ed353ae36 100644 --- a/drivers/usb/gadget/at91_udc.c +++ b/drivers/usb/gadget/at91_udc.c | |||
@@ -1616,6 +1616,8 @@ int usb_gadget_unregister_driver (struct usb_gadget_driver *driver) | |||
1616 | local_irq_enable(); | 1616 | local_irq_enable(); |
1617 | 1617 | ||
1618 | driver->unbind(&udc->gadget); | 1618 | driver->unbind(&udc->gadget); |
1619 | udc->gadget.dev.driver = NULL; | ||
1620 | udc->gadget.dev.driver_data = NULL; | ||
1619 | udc->driver = NULL; | 1621 | udc->driver = NULL; |
1620 | 1622 | ||
1621 | DBG("unbound from %s\n", driver->driver.name); | 1623 | DBG("unbound from %s\n", driver->driver.name); |