diff options
author | Oleksandr Suvorov <oleksandr.suvorov@foundries.io> | 2023-08-25 13:42:39 +0300 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2023-09-04 15:51:38 +0200 |
commit | da93ea6a9aa42d62de861b414eaeaa5d7a639fe3 (patch) | |
tree | 839b433d3007c36fdb5e729e6f98779d92a63eb0 | |
parent | 8999257f219d1e371c2fd66f255b8782897944d9 (diff) |
usb: dwc3: Fix renaming SPL_USB_HOST_SUPPORT to SPL_USB_HOST
In the usb/dwc3-layerscape driver the first option should be renamed
to the latter as well. Do it.
Fix original logic in dwc3_layerscape_bind() - do not enable
Fixes: 333e4a621df ("Rename SPL_USB_HOST_SUPPORT to SPL_USB_HOST")
Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@foundries.io>
-rw-r--r-- | drivers/usb/dwc3/dwc3-layerscape.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/usb/dwc3/dwc3-layerscape.c b/drivers/usb/dwc3/dwc3-layerscape.c index 79cf71f7a8..58baa017ad 100644 --- a/drivers/usb/dwc3/dwc3-layerscape.c +++ b/drivers/usb/dwc3/dwc3-layerscape.c @@ -134,8 +134,7 @@ U_BOOT_DRIVER(dwc3_layerscape_peripheral) = { }; #endif -#if defined(CONFIG_SPL_USB_HOST_SUPPORT) || \ - !defined(CONFIG_SPL_BUILD) && defined(CONFIG_USB_HOST) +#if CONFIG_IS_ENABLED(USB_HOST) static int dwc3_layerscape_host_probe(struct udevice *dev) { struct xhci_hcor *hcor; @@ -194,7 +193,7 @@ static int dwc3_layerscape_bind(struct udevice *dev) driver = "dwc3-layerscape-peripheral"; break; #endif -#if defined(CONFIG_SPL_USB_HOST_SUPPORT) || !defined(CONFIG_SPL_BUILD) +#if defined(CONFIG_SPL_USB_HOST) || !defined(CONFIG_SPL_BUILD) case USB_DR_MODE_HOST: dev_dbg(dev, "Using host mode\n"); driver = "dwc3-layerscape-host"; |