aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/multi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/gadget/multi.c')
-rw-r--r--drivers/usb/gadget/multi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/gadget/multi.c b/drivers/usb/gadget/multi.c
index 94b35e5539d7..c158706b5ab0 100644
--- a/drivers/usb/gadget/multi.c
+++ b/drivers/usb/gadget/multi.c
@@ -115,7 +115,7 @@ enum {
115 115
116static struct usb_string strings_dev[] = { 116static struct usb_string strings_dev[] = {
117 [USB_GADGET_MANUFACTURER_IDX].s = "", 117 [USB_GADGET_MANUFACTURER_IDX].s = "",
118 [USB_GADGET_PRODUCT_IDX].s = "", 118 [USB_GADGET_PRODUCT_IDX].s = DRIVER_DESC,
119 [USB_GADGET_SERIAL_IDX].s = "", 119 [USB_GADGET_SERIAL_IDX].s = "",
120 [MULTI_STRING_RNDIS_CONFIG_IDX].s = "Multifunction with RNDIS", 120 [MULTI_STRING_RNDIS_CONFIG_IDX].s = "Multifunction with RNDIS",
121 [MULTI_STRING_CDC_CONFIG_IDX].s = "Multifunction with CDC ECM", 121 [MULTI_STRING_CDC_CONFIG_IDX].s = "Multifunction with CDC ECM",
@@ -293,6 +293,7 @@ static int __ref multi_bind(struct usb_composite_dev *cdev)
293 status = usb_string_ids_tab(cdev, strings_dev); 293 status = usb_string_ids_tab(cdev, strings_dev);
294 if (unlikely(status < 0)) 294 if (unlikely(status < 0))
295 goto fail2; 295 goto fail2;
296 device_desc.iProduct = strings_dev[USB_GADGET_PRODUCT_IDX].id;
296 297
297 /* register configurations */ 298 /* register configurations */
298 status = rndis_config_register(cdev); 299 status = rndis_config_register(cdev);
@@ -338,7 +339,6 @@ static __refdata struct usb_composite_driver multi_driver = {
338 .max_speed = USB_SPEED_HIGH, 339 .max_speed = USB_SPEED_HIGH,
339 .bind = multi_bind, 340 .bind = multi_bind,
340 .unbind = __exit_p(multi_unbind), 341 .unbind = __exit_p(multi_unbind),
341 .iProduct = DRIVER_DESC,
342 .needs_serial = 1, 342 .needs_serial = 1,
343}; 343};
344 344