diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2018-05-21 21:29:16 +0300 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2019-01-04 12:17:52 +0000 |
commit | 98a917443efa7429dd92b073e00876cfb274a058 (patch) | |
tree | 00f0b56191323e4e41d987707c303c409c051eac /src/mainboard/emulation | |
parent | ad7674ed00a810b472b2f66b3f5b2e0edbea02de (diff) |
device: Replace ugly cases of dev_find_slot()
These few cases lacked a proper devfn parameter in the
form of PCI_DEVFN(dev, fn).
Change-Id: Iad0b214df12dee65360d07e887a960b0c73a3e4f
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/26481
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Werner Zeh <werner.zeh@siemens.com>
Diffstat (limited to 'src/mainboard/emulation')
-rw-r--r-- | src/mainboard/emulation/qemu-i440fx/northbridge.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mainboard/emulation/qemu-i440fx/northbridge.c b/src/mainboard/emulation/qemu-i440fx/northbridge.c index 9d9225ccc4..764e8a08c8 100644 --- a/src/mainboard/emulation/qemu-i440fx/northbridge.c +++ b/src/mainboard/emulation/qemu-i440fx/northbridge.c @@ -53,7 +53,7 @@ static void cpu_pci_domain_set_resources(struct device *dev) static void cpu_pci_domain_read_resources(struct device *dev) { - u16 nbid = pci_read_config16(dev_find_slot(0, 0), PCI_DEVICE_ID); + u16 nbid = pci_read_config16(pcidev_on_root(0x0, 0), PCI_DEVICE_ID); int i440fx = (nbid == 0x1237); int q35 = (nbid == 0x29c0); struct resource *res; |