Skip to content

Commit 6ca6695

Browse files
aakoskinFelipe Balbi
authored andcommitted
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: Aaro Koskinen <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
1 parent 99f7003 commit 6ca6695

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/usb/gadget/udc/omap_udc.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2041,7 +2041,7 @@ static inline int machine_without_vbus_sense(void)
20412041
static int omap_udc_start(struct usb_gadget *g,
20422042
struct usb_gadget_driver *driver)
20432043
{
2044-
int status = -ENODEV;
2044+
int status;
20452045
struct omap_ep *ep;
20462046
unsigned long flags;
20472047

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

0 commit comments

Comments
 (0)