summaryrefslogtreecommitdiffstats
path: root/hw/spapr_pci.c
diff options
context:
space:
mode:
authorAndreas Färber2012-08-20 19:07:56 +0200
committerAnthony Liguori2012-08-22 17:47:15 +0200
commit4240abff5a6fb5d88867b51f46c0235518dac564 (patch)
tree455a0f7d9c63c7ccb2452f6fb32bcbb85a606eb5 /hw/spapr_pci.c
parentvirtio-blk: hide VIRTIO_BLK_F_CONFIG_WCE from old machine types (diff)
downloadqemu-4240abff5a6fb5d88867b51f46c0235518dac564.tar.gz
qemu-4240abff5a6fb5d88867b51f46c0235518dac564.tar.xz
qemu-4240abff5a6fb5d88867b51f46c0235518dac564.zip
pci: Make host bridge TypeInfos const
During the QOM migration they were amended with further info but this is no longer the case. All static TypeInfos can be const these days. Signed-off-by: Andreas Färber <afaerber@suse.de> Acked-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/spapr_pci.c')
-rw-r--r--hw/spapr_pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/spapr_pci.c b/hw/spapr_pci.c
index b92583a991..c57ab1ee2b 100644
--- a/hw/spapr_pci.c
+++ b/hw/spapr_pci.c
@@ -612,7 +612,7 @@ static void spapr_phb_class_init(ObjectClass *klass, void *data)
dc->props = spapr_phb_properties;
}
-static TypeInfo spapr_phb_info = {
+static const TypeInfo spapr_phb_info = {
.name = "spapr-pci-host-bridge",
.parent = TYPE_SYS_BUS_DEVICE,
.instance_size = sizeof(sPAPRPHBState),