usb: gadget: atmel_usba_udc: remove release function
authorBo Shen <voice.shen@atmel.com>
Wed, 19 Nov 2014 09:19:06 +0000 (17:19 +0800)
committerFelipe Balbi <balbi@ti.com>
Thu, 20 Nov 2014 19:49:30 +0000 (13:49 -0600)
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>
drivers/usb/gadget/udc/atmel_usba_udc.c

index 990b26f337382ae06887a5bf0b0b725e9d497776..b31747979c4a3b613710ab7b2322d068ed6f6f2b 100644 (file)
@@ -1007,19 +1007,10 @@ static struct usb_endpoint_descriptor usba_ep0_desc = {
        .bInterval = 1,
 };
 
-static void nop_release(struct device *dev)
-{
-
-}
-
 static struct usb_gadget usba_gadget_template = {
        .ops            = &usba_udc_ops,
        .max_speed      = USB_SPEED_HIGH,
        .name           = "atmel_usba_udc",
-       .dev    = {
-               .init_name      = "gadget",
-               .release        = nop_release,
-       },
 };
 
 /*