diff options
author | Peter Chen <peter.chen@freescale.com> | 2014-05-21 01:04:20 (GMT) |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2014-06-30 18:25:19 (GMT) |
commit | a6c7c1c49c358b80b313b95eed2e199133f4dab2 (patch) | |
tree | 4ef3a8c5c1b5c20b7be4b10aab680a00b4f210cd /drivers | |
parent | 7a61612aef56244cbb31e5e54c9df8c599b25f55 (diff) | |
download | linux-a6c7c1c49c358b80b313b95eed2e199133f4dab2.tar.xz |
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')
-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 ca15405..059cfe5 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; |