diff mbox series

[2/2] hw/pci/pci.c : changed the access to ObjectClass to use OBJECT_CLASS macro

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

Commit Message

Yoni Bettan Nov. 28, 2017, 5:51 a.m. UTC
Signed-off-by: Yoni Bettan <ybettan@redhat.com>
---
 hw/pci/pci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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;