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/northbridge | |
parent | ad7674ed00a810b472b2f66b3f5b2e0edbea02de (diff) | |
download | coreboot-98a917443efa7429dd92b073e00876cfb274a058.tar.xz |
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/northbridge')
-rw-r--r-- | src/northbridge/intel/gm45/northbridge.c | 2 | ||||
-rw-r--r-- | src/northbridge/intel/x4x/northbridge.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/northbridge/intel/gm45/northbridge.c b/src/northbridge/intel/gm45/northbridge.c index a04f7f3ea2..014de26bbb 100644 --- a/src/northbridge/intel/gm45/northbridge.c +++ b/src/northbridge/intel/gm45/northbridge.c @@ -289,7 +289,7 @@ static void gm45_init(void *const chip_info) { int dev, fn, bit_base; - struct device *const d0f0 = dev_find_slot(0, 0); + struct device *const d0f0 = pcidev_on_root(0x0, 0); /* Hide internal functions based on devicetree info. */ for (dev = 3; dev > 0; --dev) { diff --git a/src/northbridge/intel/x4x/northbridge.c b/src/northbridge/intel/x4x/northbridge.c index af3019c1cd..ab58c94b44 100644 --- a/src/northbridge/intel/x4x/northbridge.c +++ b/src/northbridge/intel/x4x/northbridge.c @@ -239,7 +239,7 @@ static void x4x_init(void *const chip_info) { int dev, fn, bit_base; - struct device *const d0f0 = dev_find_slot(0, 0); + struct device *const d0f0 = pcidev_on_root(0x0, 0); /* Hide internal functions based on devicetree info. */ for (dev = 6; dev > 0; --dev) { |