Kyösti Mälkki has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/34084 )
Change subject: device/pci: Reduce scope of dev_find_slot() ......................................................................
device/pci: Reduce scope of dev_find_slot()
We only keep it around because amdfam10 does not yet work correctly without it.
Change-Id: I3ea37c097bbcc3cf5c0574c7d727eae4f5bee307 Signed-off-by: Kyösti Mälkki kyosti.malkki@gmail.com --- M src/device/device_const.c 1 file changed, 3 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/84/34084/1
diff --git a/src/device/device_const.c b/src/device/device_const.c index c1b0b06..691cd80 100644 --- a/src/device/device_const.c +++ b/src/device/device_const.c @@ -35,6 +35,8 @@ * @param devfn A device/function number. * @return Pointer to the device structure (if found), 0 otherwise. */ + +#if CONFIG(NORTHBRIDGE_AMD_AMDFAM10) DEVTREE_CONST struct device *dev_find_slot(unsigned int bus, unsigned int devfn) { @@ -51,6 +53,7 @@ } return result; } +#endif
/** * Given a Device Path Type, find the device structure.