device/pci: Reduce scope of dev_find_slot()

We only keep it around because soc/intel debugging
still depends on it.

Change-Id: I3ea37c097bbcc3cf5c0574c7d727eae4f5bee307
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/34084
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
This commit is contained in:
Kyösti Mälkki 2019-07-03 07:51:43 +03:00
parent 79ca4b55c5
commit bd585fa89f
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,8 @@ DEVTREE_CONST struct device * DEVTREE_CONST all_devices = &dev_root;
* @param devfn A device/function number.
* @return Pointer to the device structure (if found), 0 otherwise.
*/
DEVTREE_CONST struct device *dev_find_slot(unsigned int bus,
static DEVTREE_CONST struct device *dev_find_slot(unsigned int bus,
unsigned int devfn)
{
DEVTREE_CONST struct device *dev, *result;

View File

@ -306,7 +306,6 @@ DEVTREE_CONST struct bus *pci_root_bus(void);
* devices in all_devices singly-linked list as well as the time
* when this function is called (secondary reflecting topology).
*/
DEVTREE_CONST struct device *dev_find_slot(unsigned int bus, unsigned int devfn);
DEVTREE_CONST struct device *pcidev_path_on_root_debug(pci_devfn_t devfn, const char *func);
/* Robust discovery of chip_info. */