summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2013-02-26 14:15:25 +0100
committerFelipe Balbi <balbi@ti.com>2013-03-18 10:17:46 +0100
commite1f07ced2a27a7068786beaf23e0ac9fda6d8ca6 (patch)
tree9718ed8b10b5d352f2c6586313a1755583a84912 /drivers
parentusb: dwc3: gadget: don't assign gadget.dev.release directly (diff)
downloadlinux-e1f07ced2a27a7068786beaf23e0ac9fda6d8ca6.tar.xz
linux-e1f07ced2a27a7068786beaf23e0ac9fda6d8ca6.zip
usb: gadget: amd5536udc: 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')
-rw-r--r--drivers/usb/gadget/amd5536udc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/gadget/amd5536udc.c b/drivers/usb/gadget/amd5536udc.c
index a8ff93cf344d..f52dcfe8f545 100644
--- a/drivers/usb/gadget/amd5536udc.c
+++ b/drivers/usb/gadget/amd5536udc.c
@@ -3268,7 +3268,6 @@ static int udc_probe(struct udc *dev)
dev->gadget.ops = &udc_ops;
dev_set_name(&dev->gadget.dev, "gadget");
- dev->gadget.dev.release = gadget_release;
dev->gadget.name = name;
dev->gadget.max_speed = USB_SPEED_HIGH;
@@ -3292,7 +3291,8 @@ static int udc_probe(struct udc *dev)
"driver version: %s(for Geode5536 B1)\n", tmp);
udc = dev;
- retval = usb_add_gadget_udc(&udc->pdev->dev, &dev->gadget);
+ retval = usb_add_gadget_udc_release(&udc->pdev->dev, &dev->gadget,
+ gadget_release);
if (retval)
goto finished;