pci: call reset unconditionally
authorAnthony Liguori <aliguori@us.ibm.com>
Sun, 4 Dec 2011 17:40:58 +0000 (11:40 -0600)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 27 Jan 2012 16:28:30 +0000 (10:28 -0600)
Because now all PCI devices are converted to qdev.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/pci.c

index 54400ac134fae6bd7fa80a6eb94e46307abe4a14..ab3b53d985784d130e8ca11c208a0b13d20f1384 100644 (file)
--- a/hw/pci.c
+++ b/hw/pci.c
@@ -159,11 +159,8 @@ void pci_device_deassert_intx(PCIDevice *dev)
 void pci_device_reset(PCIDevice *dev)
 {
     int r;
-    /* TODO: call the below unconditionally once all pci devices
-     * are qdevified */
-    if (dev->qdev.info) {
-        qdev_reset_all(&dev->qdev);
-    }
+
+    qdev_reset_all(&dev->qdev);
 
     dev->irq_state = 0;
     pci_update_irq_status(dev);