summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget
diff options
context:
space:
mode:
authorBo Shen <voice.shen@atmel.com>2014-11-19 10:19:05 +0100
committerFelipe Balbi <balbi@ti.com>2014-11-20 20:49:25 +0100
commitba7cc772e77d30943833b7d38a861203dcb8c881 (patch)
tree6301ed4943931d4767f463b2e5904de28db7f678 /drivers/usb/gadget
parentusb: gadget: add USB3 support to the printer driver (diff)
downloadlinux-ba7cc772e77d30943833b7d38a861203dcb8c881.tar.xz
linux-ba7cc772e77d30943833b7d38a861203dcb8c881.zip
usb: gadget: at91_udc: remove unused 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/gadget')
-rw-r--r--drivers/usb/gadget/udc/at91_udc.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/usb/gadget/udc/at91_udc.c b/drivers/usb/gadget/udc/at91_udc.c
index 753e93b5440c..fe0534c0e3d4 100644
--- a/drivers/usb/gadget/udc/at91_udc.c
+++ b/drivers/usb/gadget/udc/at91_udc.c
@@ -1537,20 +1537,11 @@ static irqreturn_t at91_udc_irq (int irq, void *_udc)
/*-------------------------------------------------------------------------*/
-static void nop_release(struct device *dev)
-{
- /* nothing to free */
-}
-
static struct at91_udc controller = {
.gadget = {
.ops = &at91_udc_ops,
.ep0 = &controller.ep[0].ep,
.name = driver_name,
- .dev = {
- .init_name = "gadget",
- .release = nop_release,
- }
},
.ep[0] = {
.ep = {