diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2013-03-15 14:03:17 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-03-20 16:46:34 +0200 |
commit | 8119b55aed818e590c26cb97706c914e3d660fd8 (patch) | |
tree | 1334be6bfa382bd0343093e263314622379da1e0 /drivers/usb | |
parent | 511f3c5326eabe1ece35202a404c24c0aeacc246 (diff) | |
download | blackbird-obmc-linux-8119b55aed818e590c26cb97706c914e3d660fd8.tar.gz blackbird-obmc-linux-8119b55aed818e590c26cb97706c914e3d660fd8.zip |
USB: gadget: net2280: remove leftover driver->unbind call in error pathway
This patch (as1667) removes an incorrect driver->unbind() call from
the net2280 driver. If startup fails, the UDC core takes care of
unbinding the gadget driver automatically; the controller driver
shouldn't do it too.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/gadget/net2280.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/usb/gadget/net2280.c b/drivers/usb/gadget/net2280.c index 3105a4d601c8..3bd0f992fb49 100644 --- a/drivers/usb/gadget/net2280.c +++ b/drivers/usb/gadget/net2280.c @@ -1924,7 +1924,6 @@ static int net2280_start(struct usb_gadget *_gadget, err_func: device_remove_file (&dev->pdev->dev, &dev_attr_function); err_unbind: - driver->unbind (&dev->gadget); dev->gadget.dev.driver = NULL; dev->driver = NULL; return retval; |