From c6889816d8ae8c0f15b7707820e6c40c311d5393 Mon Sep 17 00:00:00 2001 From: Felix Held Date: Wed, 14 Aug 2024 17:55:41 +0200 Subject: soc/intel/xeon_sp/uncore_acpi: use is_dev_on_domain0 where possible Replace 'is_domain0(dev_get_domain(dev))' with 'is_dev_on_domain0(dev)' which is a helper function that does exactly the same, but slightly simplifies the call. Signed-off-by: Felix Held Change-Id: I8b0c52a9176288039e6414a09c3fe0662db79e4b Reviewed-on: https://review.coreboot.org/c/coreboot/+/83908 Tested-by: build bot (Jenkins) Reviewed-by: Shuo Liu Reviewed-by: Elyes Haouas --- src/soc/intel/xeon_sp/uncore_acpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/soc/intel') diff --git a/src/soc/intel/xeon_sp/uncore_acpi.c b/src/soc/intel/xeon_sp/uncore_acpi.c index 0b2b9f4107..baffdd0e96 100644 --- a/src/soc/intel/xeon_sp/uncore_acpi.c +++ b/src/soc/intel/xeon_sp/uncore_acpi.c @@ -532,7 +532,7 @@ static unsigned long acpi_fill_dmar(unsigned long current) struct device *dev = NULL; struct device *iommu0 = NULL; while ((dev = dev_find_device(PCI_VID_INTEL, MMAP_VTD_CFG_REG_DEVID, dev))) { - if (is_domain0(dev_get_domain(dev))) { + if (is_dev_on_domain0(dev)) { iommu0 = dev; continue; } -- cgit v1.2.3