mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-27 16:01:27 +00:00
usb: dwc3-generic: Disable host driver definition if gadget only
Even if only USB gadget is defined, dwc3 generic driver enables a definition and probe/remove functions for host driver. This enables the definition if USB_HOST is enabled only. Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
This commit is contained in:
parent
1027f28bd4
commit
a5f9be1ed5
1 changed files with 2 additions and 1 deletions
|
@ -163,7 +163,8 @@ U_BOOT_DRIVER(dwc3_generic_peripheral) = {
|
|||
};
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_SPL_USB_HOST_SUPPORT) || !defined(CONFIG_SPL_BUILD)
|
||||
#if defined(CONFIG_SPL_USB_HOST_SUPPORT) || \
|
||||
!defined(CONFIG_SPL_BUILD) && defined(CONFIG_USB_HOST)
|
||||
static int dwc3_generic_host_probe(struct udevice *dev)
|
||||
{
|
||||
struct xhci_hcor *hcor;
|
||||
|
|
Loading…
Add table
Reference in a new issue