summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/net2272.c
diff options
context:
space:
mode:
authorPeter Chen <peter.chen@freescale.com>2014-05-21 09:04:20 +0800
committerFelipe Balbi <balbi@ti.com>2014-06-30 13:25:19 -0500
commita6c7c1c49c358b80b313b95eed2e199133f4dab2 (patch)
tree4ef3a8c5c1b5c20b7be4b10aab680a00b4f210cd /drivers/usb/gadget/net2272.c
parent7a61612aef56244cbb31e5e54c9df8c599b25f55 (diff)
downloadlinux-a6c7c1c49c358b80b313b95eed2e199133f4dab2.tar.gz
linux-a6c7c1c49c358b80b313b95eed2e199133f4dab2.tar.bz2
linux-a6c7c1c49c358b80b313b95eed2e199133f4dab2.zip
usb: gadget: net2272: do not need to judge gadget driver's .unbind
It has already been covered by udc core, besides, we do not need unbind at .udc_start Signed-off-by: Peter Chen <peter.chen@freescale.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/net2272.c')
-rw-r--r--drivers/usb/gadget/net2272.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/net2272.c b/drivers/usb/gadget/net2272.c
index ca15405583e2..059cfe527982 100644
--- a/drivers/usb/gadget/net2272.c
+++ b/drivers/usb/gadget/net2272.c
@@ -1453,7 +1453,7 @@ static int net2272_start(struct usb_gadget *_gadget,
struct net2272 *dev;
unsigned i;
- if (!driver || !driver->unbind || !driver->setup ||
+ if (!driver || !driver->setup ||
driver->max_speed != USB_SPEED_HIGH)
return -EINVAL;