From: Anthony Liguori Date: Sun, 4 Dec 2011 17:40:58 +0000 (-0600) Subject: pci: call reset unconditionally X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=6fc4925bf612e00c149d23ef1761dedc8aae1a46;p=qemu-xen-4.4-testing.git pci: call reset unconditionally Because now all PCI devices are converted to qdev. Signed-off-by: Anthony Liguori --- diff --git a/hw/pci.c b/hw/pci.c index 54400ac13..ab3b53d98 100644 --- 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);