diff options
author | Anthony Liguori | 2011-12-04 18:40:58 +0100 |
---|---|---|
committer | Anthony Liguori | 2012-01-27 17:28:30 +0100 |
commit | 6fc4925bf612e00c149d23ef1761dedc8aae1a46 (patch) | |
tree | 8ee92aedea8e68fddb984d57fef8d85fa6b1d585 /hw/pci.c | |
parent | openpic: remove dead code to make a PCI device version (diff) | |
download | qemu-6fc4925bf612e00c149d23ef1761dedc8aae1a46.tar.gz qemu-6fc4925bf612e00c149d23ef1761dedc8aae1a46.tar.xz qemu-6fc4925bf612e00c149d23ef1761dedc8aae1a46.zip |
pci: call reset unconditionally
Because now all PCI devices are converted to qdev.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/pci.c')
-rw-r--r-- | hw/pci.c | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -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); |