diff options
Diffstat (limited to 'drivers/usb/gadget/amd5536udc.c')
-rw-r--r-- | drivers/usb/gadget/amd5536udc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/gadget/amd5536udc.c b/drivers/usb/gadget/amd5536udc.c index 66e10da8a490..b663f23f2642 100644 --- a/drivers/usb/gadget/amd5536udc.c +++ b/drivers/usb/gadget/amd5536udc.c | |||
@@ -2038,6 +2038,7 @@ int usb_gadget_unregister_driver(struct usb_gadget_driver *driver) | |||
2038 | spin_unlock_irqrestore(&dev->lock, flags); | 2038 | spin_unlock_irqrestore(&dev->lock, flags); |
2039 | 2039 | ||
2040 | driver->unbind(&dev->gadget); | 2040 | driver->unbind(&dev->gadget); |
2041 | dev->gadget.dev.driver = NULL; | ||
2041 | dev->driver = NULL; | 2042 | dev->driver = NULL; |
2042 | 2043 | ||
2043 | /* set SD */ | 2044 | /* set SD */ |