pci: use EAL exposed configuration
[dpdk.git] / lib / librte_eal / linuxapp / eal / eal_pci.c
index 3a853a6..cee4b94 100644 (file)
@@ -457,7 +457,7 @@ rte_pci_scan(void)
        struct rte_pci_addr addr;
 
        /* for debug purposes, PCI can be disabled */
-       if (internal_config.no_pci)
+       if (!rte_eal_has_pci())
                return 0;
 
 #ifdef VFIO_PRESENT