[Arm-dev] [PATCH v1 86/87] PCI: ThunderX: fix build issue

Vadim Lomovtsev Vadim.Lomovtsev at caviumnetworks.com
Thu Aug 13 13:19:23 UTC 2015


Fix build issue in case CONFIG_ACPI is not set.

Signed-off-by: Vadim Lomovtsev <Vadim.Lomovtsev at caviumnetworks.com>
---
 drivers/pci/pci.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
index 79c34d4..a73dd56 100644
--- a/drivers/pci/pci.c
+++ b/drivers/pci/pci.c
@@ -4490,10 +4490,12 @@ void pci_bus_assign_domain_nr(struct pci_bus *bus, struct device *parent)
        static int use_dt_domains = -1;
        int domain;
 
+#ifdef CONFIG_ACPI
        if (!acpi_disabled) {
 	       domain = PCI_CONTROLLER(bus)->segment;
 	       goto out;
        }
+#endif
 
        domain = of_get_pci_domain_nr(parent->of_node);
 
-- 
2.4.3



More information about the Arm-dev mailing list