diff options
-rw-r--r-- | drivers/usb/gadget/composite.c | 1 | ||||
-rw-r--r-- | include/linux/usb/composite.h | 2 |
2 files changed, 0 insertions, 3 deletions
diff --git a/drivers/usb/gadget/composite.c b/drivers/usb/gadget/composite.c index 52689ee9db12..16b353fa160a 100644 --- a/drivers/usb/gadget/composite.c +++ b/drivers/usb/gadget/composite.c | |||
@@ -1449,7 +1449,6 @@ static int composite_bind(struct usb_gadget *gadget, | |||
1449 | cdev->req->complete = composite_setup_complete; | 1449 | cdev->req->complete = composite_setup_complete; |
1450 | gadget->ep0->driver_data = cdev; | 1450 | gadget->ep0->driver_data = cdev; |
1451 | 1451 | ||
1452 | cdev->bufsiz = USB_COMP_EP0_BUFSIZ; | ||
1453 | cdev->driver = composite; | 1452 | cdev->driver = composite; |
1454 | 1453 | ||
1455 | /* | 1454 | /* |
diff --git a/include/linux/usb/composite.h b/include/linux/usb/composite.h index 89d91b671eb0..e970fba6dbbb 100644 --- a/include/linux/usb/composite.h +++ b/include/linux/usb/composite.h | |||
@@ -318,7 +318,6 @@ extern void usb_composite_setup_continue(struct usb_composite_dev *cdev); | |||
318 | * struct usb_composite_device - represents one composite usb gadget | 318 | * struct usb_composite_device - represents one composite usb gadget |
319 | * @gadget: read-only, abstracts the gadget's usb peripheral controller | 319 | * @gadget: read-only, abstracts the gadget's usb peripheral controller |
320 | * @req: used for control responses; buffer is pre-allocated | 320 | * @req: used for control responses; buffer is pre-allocated |
321 | * @bufsiz: size of buffer pre-allocated in @req | ||
322 | * @config: the currently active configuration | 321 | * @config: the currently active configuration |
323 | * | 322 | * |
324 | * One of these devices is allocated and initialized before the | 323 | * One of these devices is allocated and initialized before the |
@@ -349,7 +348,6 @@ extern void usb_composite_setup_continue(struct usb_composite_dev *cdev); | |||
349 | struct usb_composite_dev { | 348 | struct usb_composite_dev { |
350 | struct usb_gadget *gadget; | 349 | struct usb_gadget *gadget; |
351 | struct usb_request *req; | 350 | struct usb_request *req; |
352 | unsigned bufsiz; | ||
353 | 351 | ||
354 | struct usb_configuration *config; | 352 | struct usb_configuration *config; |
355 | 353 | ||