diff options
author | Andreas Färber <afaerber@suse.de> | 2012-08-20 19:08:08 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2012-08-22 10:47:17 -0500 |
commit | 8558d942b665a9ff0847851615e107308f6386a5 (patch) | |
tree | e7686af2dc1fd9bc80b8a67baebd2b232347c2ce /hw/dec_pci.c | |
parent | b44ff9d430c5f2b51872f542d9562a15f0061a82 (diff) | |
download | hqemu-8558d942b665a9ff0847851615e107308f6386a5.zip hqemu-8558d942b665a9ff0847851615e107308f6386a5.tar.gz |
pci: Derive PCI host bridges from TYPE_PCI_HOST_BRIDGE
Use PCIHostState and PCI_HOST_BRIDGE() where appropriate.
Signed-off-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/dec_pci.c')
-rw-r--r-- | hw/dec_pci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/dec_pci.c b/hw/dec_pci.c index 19aed1b..de16361 100644 --- a/hw/dec_pci.c +++ b/hw/dec_pci.c @@ -91,7 +91,7 @@ static int pci_dec_21154_device_init(SysBusDevice *dev) { PCIHostState *phb; - phb = FROM_SYSBUS(PCIHostState, dev); + phb = PCI_HOST_BRIDGE(dev); memory_region_init_io(&phb->conf_mem, &pci_host_conf_le_ops, dev, "pci-conf-idx", 0x1000); @@ -136,7 +136,7 @@ static void pci_dec_21154_device_class_init(ObjectClass *klass, void *data) static const TypeInfo pci_dec_21154_device_info = { .name = TYPE_DEC_21154, - .parent = TYPE_SYS_BUS_DEVICE, + .parent = TYPE_PCI_HOST_BRIDGE, .instance_size = sizeof(DECState), .class_init = pci_dec_21154_device_class_init, }; |