summaryrefslogtreecommitdiff
path: root/src/soc/amd
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/amd')
-rw-r--r--src/soc/amd/common/pi/agesawrapper.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/soc/amd/common/pi/agesawrapper.c b/src/soc/amd/common/pi/agesawrapper.c
index 2539a1d68a..beae4baa9c 100644
--- a/src/soc/amd/common/pi/agesawrapper.c
+++ b/src/soc/amd/common/pi/agesawrapper.c
@@ -260,8 +260,7 @@ static AGESA_STATUS amd_init_late(AMD_LATE_PARAMS *LateParams)
{
AGESA_STATUS Status;
- const struct device *dev = pcidev_path_on_root(IOMMU_DEVFN);
- if (dev && dev->enabled) {
+ if (is_dev_enabled(DEV_PTR(iommu))) {
LateParams->GnbLateConfiguration.GnbIoapicId = GNB_IOAPIC_ID;
LateParams->GnbLateConfiguration.FchIoapicId = FCH_IOAPIC_ID;
}