mb/{kontron,supermicro}: Use pcidev_on_root()

Change-Id: I61b3e5c92830f02d61a108dadde25ff261099e57
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/31051
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Tristan Corrick <tristan@corrick.kiwi>
This commit is contained in:
Elyes HAOUAS
2019-01-23 14:18:34 +01:00
committed by Patrick Georgi
parent b32347415d
commit d2abe9314e
4 changed files with 5 additions and 6 deletions

View File

@@ -173,7 +173,7 @@ static void mainboard_init(void *chip_info)
if (!ethernet_disable)
continue;
printk(BIOS_DEBUG, "Disabling Ethernet NIC #%d\n", i);
dev = dev_find_slot(0, PCI_DEVFN(28, i - 1));
dev = pcidev_on_root(28, i - 1);
if (dev == NULL) {
printk(BIOS_ERR,
"Disabling Ethernet NIC: Cannot find 00:1c.%d!\n",