diff options
Diffstat (limited to 'src/soc/intel/common/block')
-rw-r--r-- | src/soc/intel/common/block/chip/chip.c | 2 | ||||
-rw-r--r-- | src/soc/intel/common/block/gspi/gspi.c | 2 | ||||
-rw-r--r-- | src/soc/intel/common/block/i2c/i2c.c | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/soc/intel/common/block/chip/chip.c b/src/soc/intel/common/block/chip/chip.c index aecf060e3f..3dae6214ff 100644 --- a/src/soc/intel/common/block/chip/chip.c +++ b/src/soc/intel/common/block/chip/chip.c @@ -22,7 +22,7 @@ const struct soc_intel_common_config *chip_get_common_soc_structure(void) const struct soc_intel_common_config *soc_config; const config_t *config; int devfn = SA_DEVFN_ROOT; - const struct device *dev = dev_find_slot(0, devfn); + const struct device *dev = pcidev_path_on_root(devfn); if (!dev || !dev->chip_info) die("Could not find SA_DEV_ROOT devicetree config!\n"); diff --git a/src/soc/intel/common/block/gspi/gspi.c b/src/soc/intel/common/block/gspi/gspi.c index d4cb9f20ff..445da363b9 100644 --- a/src/soc/intel/common/block/gspi/gspi.c +++ b/src/soc/intel/common/block/gspi/gspi.c @@ -236,7 +236,7 @@ static uintptr_t gspi_calc_base_addr(unsigned int gspi_bus) if (devfn < 0) return 0; - dev = dev_find_slot(0, devfn); + dev = pcidev_path_on_root(devfn); if (!dev || !dev->enabled) return 0; diff --git a/src/soc/intel/common/block/i2c/i2c.c b/src/soc/intel/common/block/i2c/i2c.c index 01a9bc3ff7..f72adfce8a 100644 --- a/src/soc/intel/common/block/i2c/i2c.c +++ b/src/soc/intel/common/block/i2c/i2c.c @@ -65,7 +65,7 @@ static int lpss_i2c_early_init_bus(unsigned int bus) /* Look up the controller device in the devicetree */ dev = PCI_DEV(0, PCI_SLOT(devfn), PCI_FUNC(devfn)); - tree_dev = dev_find_slot(0, devfn); + tree_dev = pcidev_path_on_root(devfn); if (!tree_dev || !tree_dev->enabled) { printk(BIOS_ERR, "I2C%u device not enabled\n", bus); return -1; @@ -134,7 +134,7 @@ uintptr_t dw_i2c_base_address(unsigned int bus) return (uintptr_t)NULL; /* devfn -> dev */ - dev = dev_find_slot(0, devfn); + dev = pcidev_path_on_root(devfn); if (!dev || !dev->enabled) return (uintptr_t)NULL; |