Message ID | 20171128055111.10101-2-ybettan@redhat.com |
---|---|
State | New |
Headers | show |
Series | [1/2] pci: removed the is_express field since a uniform interface was inserted | expand |
diff --git a/hw/pci/pci.c b/hw/pci/pci.c index 02f6f2f37a..d2bf749251 100644 --- a/hw/pci/pci.c +++ b/hw/pci/pci.c @@ -2014,7 +2014,7 @@ static void pci_qdev_realize(DeviceState *qdev, Error **errp) { PCIDevice *pci_dev = (PCIDevice *)qdev; PCIDeviceClass *pc = PCI_DEVICE_GET_CLASS(pci_dev); - ObjectClass *klass = &(pc->parent_class.parent_class); + ObjectClass *klass = OBJECT_CLASS(pc); Error *local_err = NULL; PCIBus *bus; bool is_default_rom;
Signed-off-by: Yoni Bettan <ybettan@redhat.com> --- hw/pci/pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)