Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a6c7c1c4 authored by Peter Chen's avatar Peter Chen Committed by Felipe Balbi
Browse files

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: default avatarPeter Chen <peter.chen@freescale.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 7a61612a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;