diff options
author | Andreas Färber <afaerber@suse.de> | 2012-08-20 19:07:56 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2012-08-22 10:47:15 -0500 |
commit | 4240abff5a6fb5d88867b51f46c0235518dac564 (patch) | |
tree | 455a0f7d9c63c7ccb2452f6fb32bcbb85a606eb5 /hw/gt64xxx.c | |
parent | ea776abca628d855e03c4929da3864985afd8aae (diff) | |
download | hqemu-4240abff5a6fb5d88867b51f46c0235518dac564.zip hqemu-4240abff5a6fb5d88867b51f46c0235518dac564.tar.gz |
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/gt64xxx.c')
-rw-r--r-- | hw/gt64xxx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/gt64xxx.c b/hw/gt64xxx.c index a2d0e5a..04831bb 100644 --- a/hw/gt64xxx.c +++ b/hw/gt64xxx.c @@ -1147,7 +1147,7 @@ static void gt64120_pci_class_init(ObjectClass *klass, void *data) k->class_id = PCI_CLASS_BRIDGE_HOST; } -static TypeInfo gt64120_pci_info = { +static const TypeInfo gt64120_pci_info = { .name = "gt64120_pci", .parent = TYPE_PCI_DEVICE, .instance_size = sizeof(PCIDevice), @@ -1161,7 +1161,7 @@ static void gt64120_class_init(ObjectClass *klass, void *data) sdc->init = gt64120_init; } -static TypeInfo gt64120_info = { +static const TypeInfo gt64120_info = { .name = "gt64120", .parent = TYPE_SYS_BUS_DEVICE, .instance_size = sizeof(GT64120State), |