summaryrefslogtreecommitdiff
path: root/src/acpi/acpigen_pci_root_resource_producer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/acpi/acpigen_pci_root_resource_producer.c')
-rw-r--r--src/acpi/acpigen_pci_root_resource_producer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/acpi/acpigen_pci_root_resource_producer.c b/src/acpi/acpigen_pci_root_resource_producer.c
index 78e1a89a3b..ce57b9cc79 100644
--- a/src/acpi/acpigen_pci_root_resource_producer.c
+++ b/src/acpi/acpigen_pci_root_resource_producer.c
@@ -60,7 +60,7 @@ void pci_domain_fill_ssdt(const struct device *domain)
acpigen_resource_producer_bus_number(domain->downstream->secondary,
domain->downstream->max_subordinate);
- if (domain->path.domain.domain == 0) {
+ if (is_domain0(domain)) {
/* ACPI 6.4.2.5 I/O Port Descriptor */
acpigen_write_io16(PCI_IO_CONFIG_INDEX, PCI_IO_CONFIG_LAST_PORT, 1,
PCI_IO_CONFIG_PORT_COUNT, 1);