summaryrefslogtreecommitdiff
path: root/hw/pci.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2009-08-03 17:35:19 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-08-10 13:05:50 -0500
commit54586bd17dcb56fecdf283fa5e47dfa6389132e6 (patch)
tree45cd9672014f8a4429623b07b8c9fe7d211d6345 /hw/pci.c
parent313feaabc600b0eaf4e60d591b9a1f6bdf680efc (diff)
downloadqemu-54586bd17dcb56fecdf283fa5e47dfa6389132e6.tar.gz
qdev/prop: convert pci.c to helper macros.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
Diffstat (limited to 'hw/pci.c')
-rw-r--r--hw/pci.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/hw/pci.c b/hw/pci.c
index 4d0cdc7824..27eac04b52 100644
--- a/hw/pci.c
+++ b/hw/pci.c
@@ -60,13 +60,8 @@ static struct BusInfo pci_bus_info = {
.size = sizeof(PCIBus),
.print_dev = pcibus_dev_print,
.props = (Property[]) {
- {
- .name = "addr",
- .info = &qdev_prop_pci_devfn,
- .offset = offsetof(PCIDevice, devfn),
- .defval = (uint32_t[]) { -1 },
- },
- {/* end of list */}
+ DEFINE_PROP_PCI_DEVFN("addr", PCIDevice, devfn, -1),
+ DEFINE_PROP_END_OF_LIST()
}
};