aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/amd5536udc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/gadget/amd5536udc.c')
-rw-r--r--drivers/usb/gadget/amd5536udc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/usb/gadget/amd5536udc.c b/drivers/usb/gadget/amd5536udc.c
index 2b361500af1e..9034e0344723 100644
--- a/drivers/usb/gadget/amd5536udc.c
+++ b/drivers/usb/gadget/amd5536udc.c
@@ -3383,8 +3383,10 @@ static int udc_probe(struct udc *dev)
3383 udc = dev; 3383 udc = dev;
3384 3384
3385 retval = device_register(&dev->gadget.dev); 3385 retval = device_register(&dev->gadget.dev);
3386 if (retval) 3386 if (retval) {
3387 put_device(&dev->gadget.dev);
3387 goto finished; 3388 goto finished;
3389 }
3388 3390
3389 /* timer init */ 3391 /* timer init */
3390 init_timer(&udc_timer); 3392 init_timer(&udc_timer);