]> git.proxmox.com Git - mirror_qemu.git/blobdiff - hw/pci/pcie.c
qdev: pass an Object * to qbus_set_hotplug_handler()
[mirror_qemu.git] / hw / pci / pcie.c
index 230478faab121e86309f8d3c578e29cf833af447..3f7c36609313d12da6dd9ae1f3c6e60725433e06 100644 (file)
@@ -543,7 +543,7 @@ void pcie_cap_slot_init(PCIDevice *dev, uint16_t slot)
     dev->exp.hpev_notified = false;
 
     qbus_set_hotplug_handler(BUS(pci_bridge_get_sec_bus(PCI_BRIDGE(dev))),
-                             DEVICE(dev), NULL);
+                             OBJECT(dev), NULL);
 }
 
 void pcie_cap_slot_reset(PCIDevice *dev)