diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2018-05-23 20:00:16 +0300 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2019-01-06 13:10:27 +0000 |
commit | a144e4d6fa93b9ba129b3aa8991cc5fb2ec3c8a6 (patch) | |
tree | 32c23066cb4ab18a20c6c7c71395a709c01d0130 /src/mainboard/roda | |
parent | e7377556cc33b10fdba6d956ac83d823478f5eb4 (diff) |
device: Use pcidev_path_behind()
Change-Id: Iac16f9412d0e6aac908d873c61a4de3935e5318a
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/26518
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/roda')
-rw-r--r-- | src/mainboard/roda/rk9/ti_pci7xx1.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mainboard/roda/rk9/ti_pci7xx1.c b/src/mainboard/roda/rk9/ti_pci7xx1.c index 584285efda..4f72f9d829 100644 --- a/src/mainboard/roda/rk9/ti_pci7xx1.c +++ b/src/mainboard/roda/rk9/ti_pci7xx1.c @@ -24,7 +24,6 @@ static void pci7xx1_enable(struct device *const dev) { printk(BIOS_DEBUG, "%s: TI PCI7xx1 media controller\n", __func__); if (PCI_FUNC(dev->path.pci.devfn) == 0) { - const uint16_t secondary = dev->bus->secondary; const unsigned slot = PCI_SLOT(dev->path.pci.devfn); int fn; @@ -33,7 +32,7 @@ static void pci7xx1_enable(struct device *const dev) u16 gcr = pci_read_config16(dev, 0x86); for (fn = 5; fn > 0; --fn) { const struct device *const d = - dev_find_slot(secondary, PCI_DEVFN(slot, fn)); + pcidev_path_behind(dev->bus, PCI_DEVFN(slot, fn)); if (!d || d->enabled) continue; printk(BIOS_DEBUG, "%s: Hiding function #%d.\n", __func__, fn); |