diff options
author | Peter Chen <peter.chen@freescale.com> | 2014-05-21 09:04:20 +0800 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2014-06-30 13:25:19 -0500 |
commit | a6c7c1c49c358b80b313b95eed2e199133f4dab2 (patch) | |
tree | 4ef3a8c5c1b5c20b7be4b10aab680a00b4f210cd /drivers/usb/gadget/net2272.c | |
parent | 7a61612aef56244cbb31e5e54c9df8c599b25f55 (diff) | |
download | linux-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.c | 2 |
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; |