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>
This commit is contained in:
@@ -71,7 +71,7 @@ static unsigned long acpi_create_igfx_rmrr(const unsigned long current)
|
|||||||
{
|
{
|
||||||
const u32 base_mask = ~(u32)(MiB - 1);
|
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)
|
if (!host)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user