[PULL 16/19] Revert "hw/ppc/spapr_pci: Do not create DT for disabled PCI device"

Michael S. Tsirkin posted 19 patches 3 months, 3 weeks ago
[PULL 16/19] Revert "hw/ppc/spapr_pci: Do not create DT for disabled PCI device"
Posted by Michael S. Tsirkin 3 months, 3 weeks ago
This reverts commit 723c5b4628d047e43825a046c6ee517b82b88117.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
---
 hw/ppc/spapr_pci.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/hw/ppc/spapr_pci.c b/hw/ppc/spapr_pci.c
index f63182a03c..7cf9904c35 100644
--- a/hw/ppc/spapr_pci.c
+++ b/hw/ppc/spapr_pci.c
@@ -1296,10 +1296,6 @@ static void spapr_dt_pci_device_cb(PCIBus *bus, PCIDevice *pdev,
         return;
     }
 
-    if (!pdev->enabled) {
-        return;
-    }
-
     err = spapr_dt_pci_device(p->sphb, pdev, p->fdt, p->offset);
     if (err < 0) {
         p->err = err;
-- 
MST