Commit 6ca6695f authored by Aaro Koskinen's avatar Aaro Koskinen Committed by Felipe Balbi
Browse files

USB: omap_udc: fix omap_udc_start() on 15xx machines



On OMAP 15xx machines there are no transceivers, and omap_udc_start()
always fails as it forgot to adjust the default return value.

Signed-off-by: default avatarAaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
parent 99f70036
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2041,7 +2041,7 @@ static inline int machine_without_vbus_sense(void)
static int omap_udc_start(struct usb_gadget *g,
		struct usb_gadget_driver *driver)
{
	int		status = -ENODEV;
	int		status;
	struct omap_ep	*ep;
	unsigned long	flags;

@@ -2079,6 +2079,7 @@ static int omap_udc_start(struct usb_gadget *g,
			goto done;
		}
	} else {
		status = 0;
		if (can_pullup(udc))
			pullup_enable(udc);
		else