]> git.baikalelectronics.ru Git - uboot.git/commit
usb: dwc3-generic: Disable host driver definition if gadget only
authorKunihiko Hayashi <hayashi.kunihiko@socionext.com>
Wed, 12 May 2021 14:11:14 +0000 (23:11 +0900)
committerMarek Vasut <marex@denx.de>
Sun, 16 May 2021 17:01:45 +0000 (19:01 +0200)
commitb4061913f30743cae18aab294f1e6d640b1494d8
tree986a3475baf9be67b01681b2bb30e8bbddf4ab5b
parent34c3e84b502f89d042af56c3ed8603c1b288bc96
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>
drivers/usb/dwc3/dwc3-generic.c