From 9af1d3f85727342a0105eecdc2bbee4fca71b0b2 Mon Sep 17 00:00:00 2001 From: Felix Held Date: Wed, 24 Jul 2024 23:58:07 +0200 Subject: acpi,soc: use is_domain0 function No need to open-code this when we have a function for this. Signed-off-by: Felix Held Change-Id: Iae570ba750cb29456436349b4263808e2e410e2e Reviewed-on: https://review.coreboot.org/c/coreboot/+/83643 Reviewed-by: Matt DeVillier Tested-by: build bot (Jenkins) Reviewed-by: Angel Pons Reviewed-by: Shuo Liu Reviewed-by: Paul Menzel --- src/soc/amd/common/block/data_fabric/domain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/soc/amd') 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); -- cgit v1.2.3