diff options
Diffstat (limited to 'drivers/usb/gadget/legacy/slp.c')
-rw-r--r-- | drivers/usb/gadget/legacy/slp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/gadget/legacy/slp.c b/drivers/usb/gadget/legacy/slp.c index 48316a6d093d..9d6b5dea4ce7 100644 --- a/drivers/usb/gadget/legacy/slp.c +++ b/drivers/usb/gadget/legacy/slp.c @@ -175,14 +175,14 @@ static void slp_multi_enable(struct slp_multi_dev *dev) return; if (--dev->disable_depth == 0) { + usb_gadget_connect(cdev->gadget); + if (!dev->dual_config) usb_add_config(cdev, &first_config_driver, slp_multi_bind_config); else usb_add_config(cdev, &second_config_driver, slp_multi_bind_config); - - usb_gadget_connect(cdev->gadget); } } |