From a6c7c1c49c358b80b313b95eed2e199133f4dab2 Mon Sep 17 00:00:00 2001 From: Peter Chen Date: Wed, 21 May 2014 09:04:20 +0800 Subject: [PATCH] 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 Signed-off-by: Felipe Balbi --- drivers/usb/gadget/net2272.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2