summaryrefslogtreecommitdiffstats
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
commit2901df68499d75cb43d37495797f7ca73fb548a4 (patch)
tree9fde1ab3366e36b20ab9bbd7a181647de83d5383
parent8efeeef61d4f253aaa1a566a8e0d01b635c216d9 (diff)
downloadtalos-obmc-linux-2901df68499d75cb43d37495797f7ca73fb548a4.tar.gz
talos-obmc-linux-2901df68499d75cb43d37495797f7ca73fb548a4.zip
usb: gadget: net2280: 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>
-rw-r--r--drivers/usb/gadget/net2280.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/gadget/net2280.c b/drivers/usb/gadget/net2280.c
index 9e4f0a26108e..e5f2ef184367 100644
--- a/drivers/usb/gadget/net2280.c
+++ b/drivers/usb/gadget/net2280.c
@@ -2707,7 +2707,6 @@ static int net2280_probe (struct pci_dev *pdev, const struct pci_device_id *id)
dev->gadget.max_speed = USB_SPEED_HIGH;
/* the "gadget" abstracts/virtualizes the controller */
- dev->gadget.dev.release = gadget_release;
dev->gadget.name = driver_name;
/* now all the pci goodies ... */
@@ -2819,7 +2818,8 @@ static int net2280_probe (struct pci_dev *pdev, const struct pci_device_id *id)
retval = device_create_file (&pdev->dev, &dev_attr_registers);
if (retval) goto done;
- retval = usb_add_gadget_udc(&pdev->dev, &dev->gadget);
+ retval = usb_add_gadget_udc_release(&pdev->dev, &dev->gadget,
+ gadget_release);
if (retval)
goto done;
return 0;
OpenPOWER on IntegriCloud