aboutsummaryrefslogtreecommitdiff
path: root/src/soc/intel/skylake/romstage/systemagent.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/intel/skylake/romstage/systemagent.c')
-rw-r--r--src/soc/intel/skylake/romstage/systemagent.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/soc/intel/skylake/romstage/systemagent.c b/src/soc/intel/skylake/romstage/systemagent.c
index 71a9bee1e0..00f620ff14 100644
--- a/src/soc/intel/skylake/romstage/systemagent.c
+++ b/src/soc/intel/skylake/romstage/systemagent.c
@@ -26,8 +26,8 @@
static void systemagent_vtd_init(void)
{
- const struct device *const root_dev = dev_find_slot(0, SA_DEVFN_ROOT);
- const struct device *const igd_dev = dev_find_slot(0, SA_DEVFN_IGD);
+ const struct device *const root_dev = pcidev_path_on_root(SA_DEVFN_ROOT);
+ const struct device *const igd_dev = pcidev_path_on_root(SA_DEVFN_IGD);
const struct soc_intel_skylake_config *config = NULL;
if (root_dev)