summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/s3c-hsotg.c
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2013-02-26 17:15:28 +0400
committerFelipe Balbi <balbi@ti.com>2013-03-18 13:17:54 +0400
commitad8033fcd08ed9d0e2c262015baf7e22e1544db2 (patch)
treec6ae53695c3c9165c043c7ebfa95c0216c206d02 /drivers/usb/gadget/s3c-hsotg.c
parent59139706a0bc6950759c588ca3a28a732fa18d5f (diff)
downloadlinux-ad8033fcd08ed9d0e2c262015baf7e22e1544db2.tar.xz
usb: gadget: s3c-hsotg: don't assign gadget.dev.release directly
udc-core provides a better way to handle release methods, let's use it. Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/s3c-hsotg.c')
-rw-r--r--drivers/usb/gadget/s3c-hsotg.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/usb/gadget/s3c-hsotg.c b/drivers/usb/gadget/s3c-hsotg.c
index dfe72889c5b2..f1ceabff7cce 100644
--- a/drivers/usb/gadget/s3c-hsotg.c
+++ b/drivers/usb/gadget/s3c-hsotg.c
@@ -3444,16 +3444,6 @@ static void s3c_hsotg_delete_debug(struct s3c_hsotg *hsotg)
}
/**
- * s3c_hsotg_release - release callback for hsotg device
- * @dev: Device to for which release is called
- *
- * Nothing to do as the resource is allocated using devm_ API.
- */
-static void s3c_hsotg_release(struct device *dev)
-{
-}
-
-/**
* s3c_hsotg_probe - probe function for hsotg driver
* @pdev: The platform information for the driver
*/
@@ -3530,7 +3520,6 @@ static int s3c_hsotg_probe(struct platform_device *pdev)
hsotg->gadget.max_speed = USB_SPEED_HIGH;
hsotg->gadget.ops = &s3c_hsotg_gadget_ops;
hsotg->gadget.name = dev_name(dev);
- hsotg->gadget.dev.release = s3c_hsotg_release;
/* reset the system */