diff options
author | Bo Shen <voice.shen@atmel.com> | 2014-11-19 04:19:06 -0500 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2014-11-20 14:49:30 -0500 |
commit | cf0b1d1309790fbae27e7276ae4cb30c38ac9fc8 (patch) | |
tree | 2b8581d027f41b69d3976389c890f8788bfdd2e0 /drivers/usb | |
parent | ba7cc772e77d30943833b7d38a861203dcb8c881 (diff) |
usb: gadget: atmel_usba_udc: remove release function
As the driver call usb_add_gadget_udc --> usb_add_gadget_udc_release
with NULL as release parameter, so it will use usb_udc_no_release.
So, the release in driver won't used, remove it.
And at the same time, in the usb_add_gadget_udc_release will set the
gadget name, so remove it also in driver.
Signed-off-by: Bo Shen <voice.shen@atmel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/gadget/udc/atmel_usba_udc.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/usb/gadget/udc/atmel_usba_udc.c b/drivers/usb/gadget/udc/atmel_usba_udc.c index 990b26f33738..b31747979c4a 100644 --- a/drivers/usb/gadget/udc/atmel_usba_udc.c +++ b/drivers/usb/gadget/udc/atmel_usba_udc.c | |||
@@ -1007,19 +1007,10 @@ static struct usb_endpoint_descriptor usba_ep0_desc = { | |||
1007 | .bInterval = 1, | 1007 | .bInterval = 1, |
1008 | }; | 1008 | }; |
1009 | 1009 | ||
1010 | static void nop_release(struct device *dev) | ||
1011 | { | ||
1012 | |||
1013 | } | ||
1014 | |||
1015 | static struct usb_gadget usba_gadget_template = { | 1010 | static struct usb_gadget usba_gadget_template = { |
1016 | .ops = &usba_udc_ops, | 1011 | .ops = &usba_udc_ops, |
1017 | .max_speed = USB_SPEED_HIGH, | 1012 | .max_speed = USB_SPEED_HIGH, |
1018 | .name = "atmel_usba_udc", | 1013 | .name = "atmel_usba_udc", |
1019 | .dev = { | ||
1020 | .init_name = "gadget", | ||
1021 | .release = nop_release, | ||
1022 | }, | ||
1023 | }; | 1014 | }; |
1024 | 1015 | ||
1025 | /* | 1016 | /* |