Skip to content
Snippets Groups Projects
Commit 6fc4925b authored by Anthony Liguori's avatar Anthony Liguori
Browse files

pci: call reset unconditionally


Because now all PCI devices are converted to qdev.

Signed-off-by: default avatarAnthony Liguori <aliguori@us.ibm.com>
parent 8a5faa1d
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment