]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
usb, ohci-hdc: fix warning 'ohci_pci_ids' defined but not used
authorHeiko Schocher <hs@denx.de>
Tue, 16 Jul 2019 08:49:03 +0000 (10:49 +0200)
committerMarek Vasut <marex@denx.de>
Thu, 8 Aug 2019 09:35:02 +0000 (11:35 +0200)
var ohci_pci_ids is only used if DM_USB is not enabled.
So define this varaible only if
!CONFIG_IS_ENABLED(DM_USB)

Signed-off-by: Heiko Schocher <hs@denx.de>
drivers/usb/host/ohci-hcd.c

index 2b0df88f49ecb0cbe580cda005fb89aee37f5d69..bd498da096a7e69f88895f06a38209afa284f9eb 100644 (file)
@@ -64,6 +64,7 @@
 #define OHCI_CONTROL_INIT \
        (OHCI_CTRL_CBSR & 0x3) | OHCI_CTRL_IE | OHCI_CTRL_PLE
 
+#if !CONFIG_IS_ENABLED(DM_USB)
 #ifdef CONFIG_PCI_OHCI
 static struct pci_device_id ohci_pci_ids[] = {
        {0x10b9, 0x5237},       /* ULI1575 PCI OHCI module ids */
@@ -73,6 +74,7 @@ static struct pci_device_id ohci_pci_ids[] = {
        {0, 0}
 };
 #endif
+#endif
 
 #ifdef CONFIG_PCI_EHCI_DEVNO
 static struct pci_device_id ehci_pci_ids[] = {