From e7377556cc33b10fdba6d956ac83d823478f5eb4 Mon Sep 17 00:00:00 2001 From: Kyösti Mälkki Date: Thu, 21 Jun 2018 16:20:55 +0300 Subject: device: Use pcidev_path_on_root() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I2e28b9f4ecaf258bff8a062b5a54cb3d8e2bb9b0 Signed-off-by: Kyösti Mälkki Reviewed-on: https://review.coreboot.org/c/30400 Tested-by: build bot (Jenkins) Reviewed-by: Felix Held --- src/mainboard/google/octopus/mainboard.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mainboard/google/octopus/mainboard.c') diff --git a/src/mainboard/google/octopus/mainboard.c b/src/mainboard/google/octopus/mainboard.c index 57a614ee34..5b011c8f19 100644 --- a/src/mainboard/google/octopus/mainboard.c +++ b/src/mainboard/google/octopus/mainboard.c @@ -36,7 +36,7 @@ static bool is_cnvi_held_in_reset(void) { - struct device *dev = dev_find_slot(0, PCH_DEVFN_CNVI); + struct device *dev = pcidev_path_on_root(PCH_DEVFN_CNVI); uint32_t reg = pci_read_config32(dev, PCI_VENDOR_ID); /* @@ -167,7 +167,7 @@ static void wifi_device_update(void) else devfn = PCH_DEVFN_PCIE1; - dev = dev_find_slot(0, devfn); + dev = pcidev_path_on_root(devfn); if (dev) dev->enabled = 0; } -- cgit v1.2.3