diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2018-06-21 16:20:55 +0300 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2019-01-06 13:09:54 +0000 |
commit | e7377556cc33b10fdba6d956ac83d823478f5eb4 (patch) | |
tree | 8843182316aed1730edb12aa0fbc18de4d3be414 /src/soc/intel/fsp_broadwell_de | |
parent | c70eed1e6202c928803f3e7f79161cd247a62b23 (diff) | |
download | coreboot-e7377556cc33b10fdba6d956ac83d823478f5eb4.tar.xz |
device: Use pcidev_path_on_root()
Change-Id: I2e28b9f4ecaf258bff8a062b5a54cb3d8e2bb9b0
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/30400
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Diffstat (limited to 'src/soc/intel/fsp_broadwell_de')
-rw-r--r-- | src/soc/intel/fsp_broadwell_de/acpi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/soc/intel/fsp_broadwell_de/acpi.c b/src/soc/intel/fsp_broadwell_de/acpi.c index 0b07ea8c4c..71aa0a3459 100644 --- a/src/soc/intel/fsp_broadwell_de/acpi.c +++ b/src/soc/intel/fsp_broadwell_de/acpi.c @@ -312,7 +312,7 @@ void acpi_fill_in_fadt(acpi_fadt_t *fadt, acpi_facs_t *facs, void *dsdt) static unsigned long acpi_fill_dmar(unsigned long current) { uint32_t vtbar, tmp = current; - struct device *dev = dev_find_slot(0, VTD_DEV_FUNC); + struct device *dev = pcidev_path_on_root(VTD_DEV_FUNC); uint16_t bdf, hpet_bdf[8]; uint8_t i, j; @@ -329,7 +329,7 @@ static unsigned long acpi_fill_dmar(unsigned long current) current += acpi_create_dmar_ds_ioapic(current, 9, 0, 5, 4); /* Get the PCI BDF for the PCH I/O APIC */ - dev = dev_find_slot(0, LPC_DEV_FUNC); + dev = pcidev_path_on_root(LPC_DEV_FUNC); bdf = pci_read_config16(dev, 0x6c); current += acpi_create_dmar_ds_ioapic(current, 8, (bdf >> 8), PCI_SLOT(bdf), PCI_FUNC(bdf)); |