“824a1bc045cef278aec15bef35d8d0b59ce77856”上不存在“drivers/extcon/extcon.c”
提交 634395d2 编写于 作者: A Aaro Koskinen 提交者: Greg Kroah-Hartman

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

[ Upstream commit 6ca6695f576b8453fe68865e84d25946d63b10ad ]

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: NAaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: NFelipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: NSasha Levin <sashal@kernel.org>
上级 27b61cba
...@@ -2041,7 +2041,7 @@ static inline int machine_without_vbus_sense(void) ...@@ -2041,7 +2041,7 @@ static inline int machine_without_vbus_sense(void)
static int omap_udc_start(struct usb_gadget *g, static int omap_udc_start(struct usb_gadget *g,
struct usb_gadget_driver *driver) struct usb_gadget_driver *driver)
{ {
int status = -ENODEV; int status;
struct omap_ep *ep; struct omap_ep *ep;
unsigned long flags; unsigned long flags;
...@@ -2079,6 +2079,7 @@ static int omap_udc_start(struct usb_gadget *g, ...@@ -2079,6 +2079,7 @@ static int omap_udc_start(struct usb_gadget *g,
goto done; goto done;
} }
} else { } else {
status = 0;
if (can_pullup(udc)) if (can_pullup(udc))
pullup_enable(udc); pullup_enable(udc);
else else
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册