summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/legacy/ncm.c
diff options
context:
space:
mode:
authorIgor Kotrasinski <i.kotrasinsk@samsung.com>2015-10-20 19:33:13 +0300
committerFelipe Balbi <balbi@ti.com>2015-12-15 18:12:41 +0300
commit0aecfc1b359dffddf74bd0e0ea5ee47066d210ac (patch)
treee8f79ca3b6c2bd657c58bdd07d1eab953dcf7aa1 /drivers/usb/gadget/legacy/ncm.c
parent69b76cdff592058ea445cd40e18c75dffaba4cb9 (diff)
downloadlinux-0aecfc1b359dffddf74bd0e0ea5ee47066d210ac.tar.xz
usb: gadget: composite: remove redundant bcdUSB setting in legacy
Since composite now overwrites bcdUSB for any gadget, remove setting it in legacy gadgets. All legacy gadgets set 0x0200, the same as the value additionally set by composite, so there is no behaviour change. Signed-off-by: Igor Kotrasinski <i.kotrasinsk@samsung.com> Rebase onto current balbi/next Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/legacy/ncm.c')
-rw-r--r--drivers/usb/gadget/legacy/ncm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/legacy/ncm.c b/drivers/usb/gadget/legacy/ncm.c
index 2bae4381332d..0aba68253e3d 100644
--- a/drivers/usb/gadget/legacy/ncm.c
+++ b/drivers/usb/gadget/legacy/ncm.c
@@ -49,7 +49,7 @@ static struct usb_device_descriptor device_desc = {
.bLength = sizeof device_desc,
.bDescriptorType = USB_DT_DEVICE,
- .bcdUSB = cpu_to_le16 (0x0200),
+ /* .bcdUSB = DYNAMIC */
.bDeviceClass = USB_CLASS_COMM,
.bDeviceSubClass = 0,