diff options
Diffstat (limited to 'src/soc')
-rw-r--r-- | src/soc/amd/common/block/data_fabric/domain.c | 2 | ||||
-rw-r--r-- | src/soc/cavium/cn81xx/soc.c | 3 | ||||
-rw-r--r-- | src/soc/intel/xeon_sp/uncore_acpi.c | 2 |
3 files changed, 3 insertions, 4 deletions
diff --git a/src/soc/amd/common/block/data_fabric/domain.c b/src/soc/amd/common/block/data_fabric/domain.c index b056d607c7..c419fe02ce 100644 --- a/src/soc/amd/common/block/data_fabric/domain.c +++ b/src/soc/amd/common/block/data_fabric/domain.c @@ -206,7 +206,7 @@ void amd_pci_domain_read_resources(struct device *domain) read_non_pci_resources(domain, &idx); /* Only add the SoC's DRAM memory map and fixed resources once */ - if (domain->path.domain.domain == 0) { + if (is_domain0(domain)) { add_pci_cfg_resources(domain, &idx); read_soc_memmap_resources(domain, &idx); diff --git a/src/soc/cavium/cn81xx/soc.c b/src/soc/cavium/cn81xx/soc.c index 81c9a648e5..e0caea6cd7 100644 --- a/src/soc/cavium/cn81xx/soc.c +++ b/src/soc/cavium/cn81xx/soc.c @@ -386,8 +386,7 @@ static struct device_operations soc_ops = { static void enable_soc_dev(struct device *dev) { - if (dev->path.type == DEVICE_PATH_DOMAIN && - dev->path.domain.domain == 0) { + if (is_domain0(dev)) { dev->ops = &pci_domain_ops_ecam0; } else if (dev->path.type == DEVICE_PATH_CPU_CLUSTER) { dev->ops = &soc_ops; diff --git a/src/soc/intel/xeon_sp/uncore_acpi.c b/src/soc/intel/xeon_sp/uncore_acpi.c index 22f8b6fed0..0b2b9f4107 100644 --- a/src/soc/intel/xeon_sp/uncore_acpi.c +++ b/src/soc/intel/xeon_sp/uncore_acpi.c @@ -560,7 +560,7 @@ unsigned long northbridge_write_acpi_tables(const struct device *device, unsigne struct acpi_rsdp *rsdp) { /* Only write uncore ACPI tables for domain0 */ - if (device->path.domain.domain != 0) + if (!is_domain0(device)) return current; acpi_srat_t *srat; |