Patrick Rudolph has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/86491?usp=email )
Change subject: device/pci_device: Fix leftover devices ......................................................................
device/pci_device: Fix leftover devices
Don't print leftover devices when they are disabled in the devicetree. It's expected to not find a device when it's not enabled.
Change-Id: Ia6e998d3088fbd329f976e66a92e08ecae9f760a Signed-off-by: Patrick Rudolph patrick.rudolph@9elements.com --- M src/device/pci_device.c 1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/91/86491/1
diff --git a/src/device/pci_device.c b/src/device/pci_device.c index d03d88d..90f5226 100644 --- a/src/device/pci_device.c +++ b/src/device/pci_device.c @@ -1523,7 +1523,7 @@ * and it has a Vendor ID of 0 (the default for a device that * could not be probed). */ - if (dev->vendor != 0 || dev->hidden) { + if (dev->vendor != 0 || dev->hidden || !dev->enabled) { prev = &dev->sibling; continue; }