aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/musb/musb_gadget.c
diff options
context:
space:
mode:
authorFelipe Balbi2013-02-26 15:15:28 +0200
committerFelipe Balbi2013-03-18 11:17:55 +0200
commit07d83168278a73647e3a30fc33e274708418c52b (patch)
treef756a0e9d387fd299ae91fb97c6c5d568592ef0f /drivers/usb/musb/musb_gadget.c
parentad8033fcd08ed9d0e2c262015baf7e22e1544db2 (diff)
usb: musb: gadget: 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/musb/musb_gadget.c')
-rw-r--r--drivers/usb/musb/musb_gadget.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/usb/musb/musb_gadget.c b/drivers/usb/musb/musb_gadget.c
index 2dd952c330fd..6101ebf803fd 100644
--- a/drivers/usb/musb/musb_gadget.c
+++ b/drivers/usb/musb/musb_gadget.c
@@ -1691,13 +1691,6 @@ static const struct usb_gadget_ops musb_gadget_operations = {
* all peripheral ports are external...
*/
-static void musb_gadget_release(struct device *dev)
-{
- /* kref_put(WHAT) */
- dev_dbg(dev, "%s\n", __func__);
-}
-
-
static void
init_peripheral_ep(struct musb *musb, struct musb_ep *ep, u8 epnum, int is_in)
{
@@ -1782,7 +1775,6 @@ int musb_gadget_setup(struct musb *musb)
musb->g.speed = USB_SPEED_UNKNOWN;
/* this "gadget" abstracts/virtualizes the controller */
- musb->g.dev.release = musb_gadget_release;
musb->g.name = musb_driver_name;
musb->g.is_otg = 1;