]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
pci: usb: ohci: Test on PCI not DM_PCI
authorSimon Glass <sjg@chromium.org>
Mon, 2 Aug 2021 00:54:26 +0000 (18:54 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 5 Aug 2021 23:45:54 +0000 (19:45 -0400)
Now that DM_PCI is always enabled, check on CONFIG_PCI instead.

Signed-off-by: Simon Glass <sjg@chromium.org>
[trini: Update for non-PCI users of this code, reword]
Signed-off-by: Tom Rini <trini@konsulko.com>
drivers/usb/host/ohci-hcd.c

index c62d8feecce1faca101386372d65274fb5d4b158..fedf0db9c7e4f081ae6f73e594cc5c25bf2de416 100644 (file)
@@ -54,7 +54,7 @@
 
 #if defined(CONFIG_CPU_ARM920T) || \
        defined(CONFIG_PCI_OHCI) || \
-       defined(CONFIG_DM_PCI) || \
+       defined(CONFIG_PCI) || \
        defined(CONFIG_SYS_OHCI_USE_NPS)
 # define OHCI_USE_NPS          /* force NoPowerSwitching mode */
 #endif