summaryrefslogtreecommitdiff
path: root/src/device
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2019-07-03 07:51:43 +0300
committerKyösti Mälkki <kyosti.malkki@gmail.com>2019-11-21 19:43:34 +0000
commitbd585fa89f9d0abf9c15e1495b1b3b925504456d (patch)
tree84cfe791f8590c8dff5a4ef7525156e9a5c5149a /src/device
parent79ca4b55c5034e459e33bcce51456ea2a0420cf1 (diff)
downloadcoreboot-bd585fa89f9d0abf9c15e1495b1b3b925504456d.tar.xz
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>
Diffstat (limited to 'src/device')
-rw-r--r--src/device/device_const.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/device/device_const.c b/src/device/device_const.c
index 5a3e89bfb9..c46f283608 100644
--- a/src/device/device_const.c
+++ b/src/device/device_const.c
@@ -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;