summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2013-02-26 15:15:27 +0200
committerFelipe Balbi <balbi@ti.com>2013-03-18 11:17:52 +0200
commit8efeeef61d4f253aaa1a566a8e0d01b635c216d9 (patch)
tree6616f498c39d2ed7a30786ff769b6ffa47045e8f /drivers
parente861c768e57fd74ff947eadcf8ff86c01ba170d6 (diff)
downloadblackbird-op-linux-8efeeef61d4f253aaa1a566a8e0d01b635c216d9.tar.gz
blackbird-op-linux-8efeeef61d4f253aaa1a566a8e0d01b635c216d9.zip
usb: gadget: net2272: 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/net2272.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/gadget/net2272.c b/drivers/usb/gadget/net2272.c
index af99223e0126..8dcbe770e2d4 100644
--- a/drivers/usb/gadget/net2272.c
+++ b/drivers/usb/gadget/net2272.c
@@ -2233,7 +2233,6 @@ static struct net2272 *net2272_probe_init(struct device *dev, unsigned int irq)
ret->gadget.max_speed = USB_SPEED_HIGH;
/* the "gadget" abstracts/virtualizes the controller */
- ret->gadget.dev.release = net2272_gadget_release;
ret->gadget.name = driver_name;
return ret;
@@ -2273,7 +2272,8 @@ net2272_probe_fin(struct net2272 *dev, unsigned int irqflags)
if (ret)
goto err_irq;
- ret = usb_add_gadget_udc(dev->dev, &dev->gadget);
+ ret = usb_add_gadget_udc_release(dev->dev, &dev->gadget,
+ net2272_gadget_release);
if (ret)
goto err_add_udc;
OpenPOWER on IntegriCloud