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>
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user