diff options
-rw-r--r-- | drivers/usb/gadget/f_audio.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/usb/gadget/f_audio.c b/drivers/usb/gadget/f_audio.c index a9a4eade7e80..ddeaa45cd886 100644 --- a/drivers/usb/gadget/f_audio.c +++ b/drivers/usb/gadget/f_audio.c | |||
@@ -681,17 +681,18 @@ f_audio_bind(struct usb_configuration *c, struct usb_function *f) | |||
681 | 681 | ||
682 | status = -ENOMEM; | 682 | status = -ENOMEM; |
683 | 683 | ||
684 | /* supcard all relevant hardware speeds... we expect that when | 684 | /* copy descriptors, and track endpoint copies */ |
685 | f->descriptors = usb_copy_descriptors(f_audio_desc); | ||
686 | |||
687 | /* | ||
688 | * support all relevant hardware speeds... we expect that when | ||
685 | * hardware is dual speed, all bulk-capable endpoints work at | 689 | * hardware is dual speed, all bulk-capable endpoints work at |
686 | * both speeds | 690 | * both speeds |
687 | */ | 691 | */ |
688 | |||
689 | /* copy descriptors, and track endpoint copies */ | ||
690 | if (gadget_is_dualspeed(c->cdev->gadget)) { | 692 | if (gadget_is_dualspeed(c->cdev->gadget)) { |
691 | c->highspeed = true; | 693 | c->highspeed = true; |
692 | f->hs_descriptors = usb_copy_descriptors(f_audio_desc); | 694 | f->hs_descriptors = usb_copy_descriptors(f_audio_desc); |
693 | } else | 695 | } |
694 | f->descriptors = usb_copy_descriptors(f_audio_desc); | ||
695 | 696 | ||
696 | return 0; | 697 | return 0; |
697 | 698 | ||