summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2019-02-08 18:42:19 +0200
committerKyösti Mälkki <kyosti.malkki@gmail.com>2019-02-10 09:15:13 +0000
commit19bad30c75601158aaa177c2eeef91e2efb77827 (patch)
treea510c08e24a09165851876843868422a6470d148
parentf813b84486228bdb1739ae58853f59aae08d8cc8 (diff)
downloadcoreboot-19bad30c75601158aaa177c2eeef91e2efb77827.tar.xz
nb/intel/sandybridge: Use pcidev_on_root()
Change-Id: I959dfd1c10bc1ab85c6392e0090b022934468770 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/31292 Reviewed-by: Felix Held <felix-coreboot@felixheld.de> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r--src/northbridge/intel/sandybridge/acpi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/northbridge/intel/sandybridge/acpi.c b/src/northbridge/intel/sandybridge/acpi.c
index 48be666367..c2743189fb 100644
--- a/src/northbridge/intel/sandybridge/acpi.c
+++ b/src/northbridge/intel/sandybridge/acpi.c
@@ -71,7 +71,7 @@ static unsigned long acpi_create_igfx_rmrr(const unsigned long current)
{
const u32 base_mask = ~(u32)(MiB - 1);
- struct device *const host = dev_find_slot(0, PCI_DEVFN(0, 0));
+ struct device *const host = pcidev_on_root(0, 0);
if (!host)
return 0;