From 4bc8dfb8207ae13140b3e5b01d3f3e36d66143d6 Mon Sep 17 00:00:00 2001 From: Nico Huber Date: Fri, 31 Jul 2020 11:31:49 +0200 Subject: Revert "device/pci_device.c: Do not complain about disabled devices" This reverts commit ad247ac5d8ef4a38bd1d61fbd28076f343a46c5c. It doesn't work like this. The `dev->enable` field has already been updated and is always `0` at this point. Change-Id: I5b3560dcea2f226c841f4823526db2fdab149d22 Signed-off-by: Nico Huber Reviewed-on: https://review.coreboot.org/c/coreboot/+/44078 Tested-by: build bot (Jenkins) Reviewed-by: Angel Pons --- src/device/pci_device.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/device/pci_device.c b/src/device/pci_device.c index f3cced94f0..3623c3b564 100644 --- a/src/device/pci_device.c +++ b/src/device/pci_device.c @@ -1297,10 +1297,6 @@ void pci_scan_bus(struct bus *bus, unsigned int min_devfn, /* Unlink it from list. */ *prev = dev->sibling; - /* If disabled in devicetree, do not print any messages. */ - if (!dev->enabled) - continue; - if (!once++) printk(BIOS_WARNING, "PCI: Leftover static devices:\n"); printk(BIOS_WARNING, "%s\n", dev_path(dev)); -- cgit v1.2.3