提交 bc8d51ea 编写于 作者: J Jan Beulich 提交者: Greg Kroah-Hartman

fix build of EHCI debug port code when USB_CHIPIDEA but !USB_EHCI_HCD

Relax condition of building the reset interface stubs in
drivers/usb/early/ehci-dbgp.c from USB_EHCI_HCD to just USB, to also
cover the chipidea driver re-using code from ehci-hcd.
Reported-by: NRandy Dunlap <rdunlap@xenotime.net>
Signed-off-by: NJan Beulich <jbeulich@suse.com>
Acked-by: NAlan Stern <stern@rowland.harvard.edu>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 09f6ffde
...@@ -974,7 +974,7 @@ struct console early_dbgp_console = { ...@@ -974,7 +974,7 @@ struct console early_dbgp_console = {
.index = -1, .index = -1,
}; };
#if IS_ENABLED(CONFIG_USB_EHCI_HCD) #if IS_ENABLED(CONFIG_USB)
int dbgp_reset_prep(struct usb_hcd *hcd) int dbgp_reset_prep(struct usb_hcd *hcd)
{ {
int ret = xen_dbgp_reset_prep(hcd); int ret = xen_dbgp_reset_prep(hcd);
...@@ -1008,7 +1008,7 @@ int dbgp_external_startup(struct usb_hcd *hcd) ...@@ -1008,7 +1008,7 @@ int dbgp_external_startup(struct usb_hcd *hcd)
return xen_dbgp_external_startup(hcd) ?: _dbgp_external_startup(); return xen_dbgp_external_startup(hcd) ?: _dbgp_external_startup();
} }
EXPORT_SYMBOL_GPL(dbgp_external_startup); EXPORT_SYMBOL_GPL(dbgp_external_startup);
#endif /* USB_EHCI_HCD */ #endif /* USB */
#ifdef CONFIG_KGDB #ifdef CONFIG_KGDB
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册