usb: gadget: net2272: do not need to judge gadget driver's .unbind
authorPeter Chen <peter.chen@freescale.com>
Wed, 21 May 2014 01:04:20 +0000 (09:04 +0800)
committerFelipe Balbi <balbi@ti.com>
Mon, 30 Jun 2014 18:25:19 +0000 (13:25 -0500)
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>
drivers/usb/gadget/net2272.c

index ca15405583e20bf1ad58b89e749ca293a013dfc8..059cfe527982fbad2912cfdb61733560ba4ac589 100644 (file)
@@ -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;